From bd1efda424c28f25500d468c12d434a5459cd594 Mon Sep 17 00:00:00 2001 From: Brenden Blanco Date: Mon, 29 Feb 2016 14:32:23 -0800 Subject: [PATCH] Add v6 headers to proto.h Signed-off-by: Brenden Blanco --- src/cc/export/proto.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/cc/export/proto.h b/src/cc/export/proto.h index b2f50ed..40e209d 100644 --- a/src/cc/export/proto.h +++ b/src/cc/export/proto.h @@ -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; -- 2.7.4