http2_hpack_int_decode.h (snort3-3.1.29.0) | : | http2_hpack_int_decode.h (snort3-3.1.30.0) | ||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
// You should have received a copy of the GNU General Public License along | // You should have received a copy of the GNU General Public License along | |||
// with this program; if not, write to the Free Software Foundation, Inc., | // with this program; if not, write to the Free Software Foundation, Inc., | |||
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
//-------------------------------------------------------------------------- | //-------------------------------------------------------------------------- | |||
// http2_hpack_int_decode.h author Maya Dagon <mdagon@cisco.com> | // http2_hpack_int_decode.h author Maya Dagon <mdagon@cisco.com> | |||
#ifndef HTTP2_HPACK_INT_DECODE_H | #ifndef HTTP2_HPACK_INT_DECODE_H | |||
#define HTTP2_HPACK_INT_DECODE_H | #define HTTP2_HPACK_INT_DECODE_H | |||
#include "http2_enum.h" | #include "http2_enum.h" | |||
#include "http2_varlen_int_decode.h" | ||||
#include "main/snort_types.h" | #include "main/snort_types.h" | |||
#include "utils/event_gen.h" | #include "utils/event_gen.h" | |||
#include "utils/infractions.h" | #include "utils/infractions.h" | |||
using Http2Infractions = Infractions<Http2Enums::INF__MAX_VALUE, Http2Enums::INF __NONE>; | using Http2Infractions = Infractions<Http2Enums::INF__MAX_VALUE, Http2Enums::INF __NONE>; | |||
using Http2EventGen = EventGen<Http2Enums::EVENT__MAX_VALUE, Http2Enums::EVENT__ NONE, | using Http2EventGen = EventGen<Http2Enums::EVENT__MAX_VALUE, Http2Enums::EVENT__ NONE, | |||
Http2Enums::HTTP2_GID>; | Http2Enums::HTTP2_GID>; | |||
class Http2HpackIntDecode | using Http2HpackIntDecode = VarLengthIntDecode<Http2EventGen, Http2Infractions>; | |||
{ | ||||
public: | ||||
Http2HpackIntDecode(uint8_t prefix); | ||||
bool translate(const uint8_t* in_buff, const uint32_t in_len, uint32_t& byte | ||||
s_consumed, | ||||
uint64_t& result, Http2EventGen* const events, Http2Infractions* const i | ||||
nfractions, | ||||
bool partial_header) const; | ||||
private: | ||||
const uint8_t prefix_mask; | ||||
}; | ||||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
13 lines changed or deleted | 3 lines changed or added |