Home
last modified time | relevance | path

Searched refs:icmpv6h (Results 1 – 9 of 9) sorted by relevance

/dports/security/suricata/suricata-6.0.4/src/
H A Ddecode-icmpv6.h102 #define ICMPV6_GET_TYPE(p) (p)->icmpv6h->type
104 #define ICMPV6_GET_CODE(p) (p)->icmpv6h->code
106 #define ICMPV6_GET_RAW_CSUM(p) SCNtohs((p)->icmpv6h->csum)
107 #define ICMPV6_GET_CSUM(p) (p)->icmpv6h->csum
117 #define ICMPV6_GET_UNUSED(p) (p)->icmpv6h->icmpv6b.icmpv6e.unused
119 #define ICMPV6_GET_ERROR_PTR(p) (p)->icmpv6h->icmpv6b.icmpv6e.error_ptr
122 #define ICMPV6_HAS_MTU(p) ((p)->icmpv6h->type == ICMP6_PACKET_TOO_BIG)
124 #define ICMPV6_GET_MTU(p) SCNtohl((p)->icmpv6h->icmpv6b.icmpv6e.mtu)
190 (p)->icmpv6h = NULL; \
H A Ddetect-icmpv6hdr.c108 if (p->icmpv6h == NULL) { in GetData()
112 if (((uint8_t *)p->icmpv6h + (ptrdiff_t)hlen) > in GetData()
116 ((uint8_t *)p->icmpv6h + (ptrdiff_t)hlen), in GetData()
122 const uint8_t *data = (const uint8_t *)p->icmpv6h; in GetData()
H A Ddecode-icmpv6.c213 p->icmpv6h->code); in DecodeICMPV6()
280 p->icmpv6h->icmpv6b.icmpv6i.id, p->icmpv6h->icmpv6b.icmpv6i.seq); in DecodeICMPV6()
293 p->icmpv6h->icmpv6b.icmpv6i.id, p->icmpv6h->icmpv6b.icmpv6i.seq); in DecodeICMPV6()
629 FAIL_IF(p->icmpv6h == NULL); in ICMPV6ParamProbTest01()
744 FAIL_IF_NULL(p->icmpv6h); in ICMPV6TimeExceedTest01()
803 FAIL_IF_NULL(p->icmpv6h); in ICMPV6DestUnreachTest01()
850 FAIL_IF_NULL(p->icmpv6h); in ICMPV6EchoReqTest01()
896 FAIL_IF_NULL(p->icmpv6h); in ICMPV6EchoRepTest01()
949 FAIL_IF_NULL(p->icmpv6h); in ICMPV6ParamProbTest02()
992 FAIL_IF_NULL(p->icmpv6h); in ICMPV6PktTooBigTest02()
[all …]
H A Ddetect-csum.c811 … if (p->ip6h == NULL || p->icmpv6h == NULL || p->proto != IPPROTO_ICMPV6 || PKT_IS_PSEUDOPKT(p) || in DetectICMPV6CsumMatch()
812 (GET_PKT_LEN(p) - ((uint8_t *)p->icmpv6h - GET_PKT_DATA(p))) <= 0) { in DetectICMPV6CsumMatch()
822 ((uint8_t *)p->icmpv6h - (uint8_t *)p->ip6h - IPV6_HEADER_LEN); in DetectICMPV6CsumMatch()
824 (uint16_t *)p->icmpv6h, in DetectICMPV6CsumMatch()
828 if (p->level4_comp_csum == p->icmpv6h->csum && cd->valid == 1) in DetectICMPV6CsumMatch()
830 else if (p->level4_comp_csum != p->icmpv6h->csum && cd->valid == 0) in DetectICMPV6CsumMatch()
H A Dutil-validate.h84 BUG_ON((p)->icmpv6h == NULL); \
H A Dflow-util.c183 } else if (p->icmpv6h != NULL) { in FlowInit()
H A Ddecode.h263 #define PKT_IS_ICMPV6(p) (((p)->icmpv6h != NULL))
538 ICMPV6Hdr *icmpv6h; member
805 if ((p)->icmpv6h != NULL) { \
H A Doutput-json.c920 if (p->icmpv6h) { in CreateEveHeader()
921 jb_set_uint(js, "icmp_type", p->icmpv6h->type); in CreateEveHeader()
922 jb_set_uint(js, "icmp_code", p->icmpv6h->code); in CreateEveHeader()
/dports/security/suricata/suricata-6.0.4/
H A DChangeLog110 Bug #4336: ICMPv6 failed assert p->icmpv6h == NULL with icmpv6.hdr