Commit bd1efda4 authored by Brenden Blanco's avatar Brenden Blanco

Add v6 headers to proto.h

Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
parent e00be4a8
......@@ -61,6 +61,37 @@ struct ip_t {
unsigned int dst; // byte 16
} BPF_PACKET_HEADER;
struct icmp_t {
unsigned char type;
unsigned char code;
unsigned short checksum;
} BPF_PACKET_HEADER;
struct ip6_t {
unsigned int ver:4;
unsigned int priority:8;
unsigned int flow_label:20;
unsigned short payload_len;
unsigned char next_header;
unsigned char hop_limit;
unsigned long long src_hi;
unsigned long long src_lo;
unsigned long long dst_hi;
unsigned long long dst_lo;
} BPF_PACKET_HEADER;
struct ip6_opt_t {
unsigned char next_header;
unsigned char ext_len;
unsigned char pad[6];
} BPF_PACKET_HEADER;
struct icmp6_t {
unsigned char type;
unsigned char code;
unsigned short checksum;
} BPF_PACKET_HEADER;
struct udp_t {
unsigned short sport;
unsigned short dport;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment