Mitigator BPF API
Functions and types programs can use to filter packets.
IcmpHeader Struct Reference

ICMP and ICMPv6 header. More...

#include <mitigator_bpf.h>

Detailed Description

ICMP and ICMPv6 header.

Note
ICMP and ICMPv6 share header structure but not types and codes.
If you modify the fields of this header and return RESULT_PASS from the filter, call set_packet_mangled() to update checksums.
See also
https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Datagram_structure
https://tools.ietf.org/html/rfc792

The documentation for this struct was generated from the following file: