#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 */ body>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-09-30 09:14:06 -0700
committerMark Brown <broonie@kernel.org>2016-09-30 09:14:06 -0700
commit1a8dabf88dbd053f95b97cfb087d352c20101d4d (patch)
treee4edadc04f63d17e2ba491baef4596159093e393
parent07216b5503f328b756b5f06da9908ce5f404d1e6 (diff)
parent323117ab60156d5ef021eeef260c4e7e0a7f520e (diff)
Merge remote-tracking branch 'spi/topic/core' into spi-next