suricata
|
Go to the source code of this file.
Data Structures | |
struct | ICMPV4Hdr_ |
struct | ICMPV4ExtHdr_ |
struct | ICMPV4Vars_ |
struct | ICMPV4RtrAdvert_ |
struct | ICMPV4Timestamp_ |
Macros | |
#define | ICMPV4_HEADER_LEN 8 |
#define | ICMPV4_GET_TYPE(p) (p)->icmpv4h->type |
#define | ICMPV4_GET_CODE(p) (p)->icmpv4h->code |
#define | CLEAR_ICMPV4_PACKET(p) |
#define | ICMPV4_HEADER_PKT_OFFSET 8 |
#define | ICMPV4_GET_TYPE(p) (p)->icmpv4h->type |
#define | ICMPV4_GET_CODE(p) (p)->icmpv4h->code |
#define | ICMPV4_GET_RAW_CSUM(p) SCNtohs((p)->icmpv4h->checksum) |
#define | ICMPV4_GET_CSUM(p) (p)->icmpv4h->checksum |
#define | ICMPV4_GET_ID(p) ((p)->icmpv4vars.id) |
#define | ICMPV4_GET_SEQ(p) ((p)->icmpv4vars.seq) |
#define | ICMPV4_GET_EMB_PROTO(p) (p)->icmpv4vars.emb_ip4_proto |
#define | ICMPV4_GET_EMB_IPV4(p) (p)->icmpv4vars.emb_ipv4h |
#define | ICMPV4_GET_EMB_TCP(p) (p)->icmpv4vars.emb_tcph |
#define | ICMPV4_GET_EMB_UDP(p) (p)->icmpv4vars.emb_udph |
#define | ICMPV4_GET_EMB_ICMPV4H(p) (p)->icmpv4vars.emb_icmpv4h |
#define | ICMPV4_GET_HLEN_ICMPV4H(p) (p)->icmpv4vars.hlen |
#define | ICMPV4_DEST_UNREACH_IS_VALID(p) |
#define | ICMPV4_IS_ERROR_MSG(p) |
Typedefs | |
typedef struct ICMPV4ExtHdr_ | ICMPV4ExtHdr |
typedef struct ICMPV4Vars_ | ICMPV4Vars |
Functions | |
struct ICMPV4Hdr_ | __attribute__ ((__packed__)) ICMPV4Hdr |
DNP3 link header. More... | |
void | DecodeICMPV4RegisterTests (void) |
Registers ICMPV4 unit test. More... | |
int | ICMPv4GetCounterpart (uint8_t type) |
Variables | |
uint8_t | type |
uint8_t | code |
uint16_t | checksum |
uint8_t | naddr |
uint8_t | addr_sz |
uint32_t | orig_ts |
uint32_t | rx_ts |
uint32_t | tx_ts |
Definition in file decode-icmpv4.h.
#define CLEAR_ICMPV4_PACKET | ( | p | ) |
Definition at line 227 of file decode-icmpv4.h.
#define ICMPV4_DEST_UNREACH_IS_VALID | ( | p | ) |
macro for checking if a ICMP DEST UNREACH packet is valid for use in other parts of the engine, such as the flow engine.
Definition at line 270 of file decode-icmpv4.h.
#define ICMPV4_GET_CODE | ( | p | ) | (p)->icmpv4h->code |
marco for icmpv4 code access
macro for icmpv4 "code" access
Definition at line 238 of file decode-icmpv4.h.
#define ICMPV4_GET_CODE | ( | p | ) | (p)->icmpv4h->code |
marco for icmpv4 code access
macro for icmpv4 "code" access
Definition at line 238 of file decode-icmpv4.h.
#define ICMPV4_GET_CSUM | ( | p | ) | (p)->icmpv4h->checksum |
Definition at line 241 of file decode-icmpv4.h.
#define ICMPV4_GET_EMB_ICMPV4H | ( | p | ) | (p)->icmpv4vars.emb_icmpv4h |
macro for icmpv4 embedded "icmpv4h" header access
Definition at line 261 of file decode-icmpv4.h.
#define ICMPV4_GET_EMB_IPV4 | ( | p | ) | (p)->icmpv4vars.emb_ipv4h |
macro for icmpv4 embedded "ipv4h" header access
Definition at line 255 of file decode-icmpv4.h.
#define ICMPV4_GET_EMB_PROTO | ( | p | ) | (p)->icmpv4vars.emb_ip4_proto |
macro for icmpv4 embedded "protocol" access
Definition at line 253 of file decode-icmpv4.h.
#define ICMPV4_GET_EMB_TCP | ( | p | ) | (p)->icmpv4vars.emb_tcph |
macro for icmpv4 embedded "tcph" header access
Definition at line 257 of file decode-icmpv4.h.
#define ICMPV4_GET_EMB_UDP | ( | p | ) | (p)->icmpv4vars.emb_udph |
macro for icmpv4 embedded "udph" header access
Definition at line 259 of file decode-icmpv4.h.
#define ICMPV4_GET_HLEN_ICMPV4H | ( | p | ) | (p)->icmpv4vars.hlen |
macro for icmpv4 header length
Definition at line 263 of file decode-icmpv4.h.
#define ICMPV4_GET_ID | ( | p | ) | ((p)->icmpv4vars.id) |
macro for icmpv4 "id" access
Definition at line 246 of file decode-icmpv4.h.
macro for icmpv4 "csum" access
Definition at line 240 of file decode-icmpv4.h.
#define ICMPV4_GET_SEQ | ( | p | ) | ((p)->icmpv4vars.seq) |
macro for icmpv4 "seq" access
Definition at line 248 of file decode-icmpv4.h.
#define ICMPV4_GET_TYPE | ( | p | ) | (p)->icmpv4h->type |
marco for icmpv4 type access
macro for icmpv4 "type" access
Definition at line 236 of file decode-icmpv4.h.
#define ICMPV4_GET_TYPE | ( | p | ) | (p)->icmpv4h->type |
marco for icmpv4 type access
macro for icmpv4 "type" access
Definition at line 236 of file decode-icmpv4.h.
#define ICMPV4_HEADER_LEN 8 |
Definition at line 33 of file decode-icmpv4.h.
#define ICMPV4_HEADER_PKT_OFFSET 8 |
Definition at line 233 of file decode-icmpv4.h.
#define ICMPV4_IS_ERROR_MSG | ( | p | ) |
marco for checking if a ICMP packet is an error message or an query message.
Definition at line 287 of file decode-icmpv4.h.
typedef struct ICMPV4ExtHdr_ ICMPV4ExtHdr |
typedef struct ICMPV4Vars_ ICMPV4Vars |
void DecodeICMPV4RegisterTests | ( | void | ) |
Registers ICMPV4 unit test.
Definition at line 827 of file decode-icmpv4.c.
References UtRegisterTest().
int ICMPv4GetCounterpart | ( | uint8_t | type | ) |
type | counterpart type or -1 |
Definition at line 360 of file decode-icmpv4.c.
References CASE_CODE, and type.
Referenced by DecodeICMPV4().
uint8_t addr_sz |
Size of each advertised address
Definition at line 4 of file decode-icmpv4.h.
uint16_t checksum |
Definition at line 2 of file decode-icmpv4.h.
uint8_t code |
Definition at line 1 of file decode-icmpv4.h.
Referenced by DatasetAddSerialized(), DatasetRemoveSerialized(), and DecodeRegisterPerfCounters().
uint8_t naddr |
Number of advertised addresses
Definition at line 1 of file decode-icmpv4.h.
uint32_t orig_ts |
Definition at line 0 of file decode-icmpv4.h.
uint32_t rx_ts |
Definition at line 1 of file decode-icmpv4.h.
uint32_t tx_ts |
Definition at line 2 of file decode-icmpv4.h.
uint8_t type |
Definition at line 0 of file decode-icmpv4.h.
Referenced by BloomFilterCountingInit(), DecodeNull(), DetectEngineFrameInspectEngineRegister(), DetectEngineFrameMpmRegister(), DetectFrameInspectEngineRegister(), DetectFrameMpmRegister(), DetectSigmatchListEnumToString(), DetectVarStoreMatch(), DetectVarStoreMatchKeyValue(), ICMPv4GetCounterpart(), ICMPv6GetCounterpart(), Ja3IsDisabled(), LoadHashTable(), OutputRegisterStreamingLogger(), TmThreadAppend(), TmThreadGetNbThreads(), TmThreadSetCPU(), VarNameStoreLookupById(), and VarNameStoreLookupByName().