#ifndef IPV6_H #define IPV6_H #include #include "built_in.h" /* * IPv6 fixed header * * BEWARE, it is incorrect. The first 4 bits of flow_lbl * are glued to priority now, forming "class". */ struct ipv6hdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __extension__ uint8_t priority:4, version:4; #elif defined(__BIG_ENDIAN_BITFIELD) __extension__ uint8_t version:4, priority:4; #else # error "Please fix " #endif uint8_t flow_lbl[3]; uint16_t payload_len; uint8_t nexthdr; uint8_t hop_limit; struct in6_addr saddr; struct in6_addr daddr; } __packed; #endif /* IPV6_H */ head>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-01-25 15:36:57 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-01-25 16:00:33 +0100
commit42f82e2e62ae748a27741e63dbb035bfbe3353c9 (patch)
tree3df8323f9fd2577225b689a5a17c6ce5a86dd9fe /include/trace
parent1331b62c97217459780e040e8a66bb609f2acd20 (diff)
wireless: radiotap: rewrite the radiotap header file
The header file has grown a lot of #define's etc, but they are nicer as enums, so rewrite the file from the documentation as such. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/trace')