trafgen: remove write-only variable pkt
[netsniff-ng-new.git] / ipv6.h
blob29e86a07514d0a7cea32a6073c6add2b23432310
1 #ifndef IPV6_H
2 #define IPV6_H
4 #include <asm/byteorder.h>
6 #include "built_in.h"
8 /*
9 * IPv6 fixed header
11 * BEWARE, it is incorrect. The first 4 bits of flow_lbl
12 * are glued to priority now, forming "class".
14 struct ipv6hdr {
15 #if defined(__LITTLE_ENDIAN_BITFIELD)
16 __extension__ uint8_t priority:4,
17 version:4;
18 #elif defined(__BIG_ENDIAN_BITFIELD)
19 __extension__ uint8_t version:4,
20 priority:4;
21 #else
22 # error "Please fix <asm/byteorder.h>"
23 #endif
24 uint8_t flow_lbl[3];
25 uint16_t payload_len;
26 uint8_t nexthdr;
27 uint8_t hop_limit;
28 struct in6_addr saddr;
29 struct in6_addr daddr;
30 } __packed;
32 #endif /* IPV6_H */