X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Fipv6.h;h=c2810a38d27487c3952da058f756a50d3448284d;hb=351dd3b194833c923bad0292e9019320fb2a41fa;hp=a98561db42f51e8526a09cd64c1736ebe6d13b4c;hpb=6c5a509b5e14e097ca537c539bc9babe3b8f0c4c;p=tpg%2Facess2.git diff --git a/Modules/IPStack/ipv6.h b/Modules/IPStack/ipv6.h index a98561db..c2810a38 100644 --- a/Modules/IPStack/ipv6.h +++ b/Modules/IPStack/ipv6.h @@ -11,11 +11,18 @@ typedef struct sIPv6Header tIPv6Header; struct sIPv6Header { + #if 1 + // High 4: Version + // Next: Traffic Class + // Low 20: Flow Label + Uint32 Head; + #else struct { unsigned Version: 4; unsigned TrafficClass: 8; unsigned FlowLabel: 20; }; + #endif Uint16 PayloadLength; Uint8 NextHeader; // Type of payload data Uint8 HopLimit;