diff options
author | fxlb <fx.lebail@yahoo.com> | 2013-11-12 11:01:20 +0100 |
---|---|---|
committer | fxlb <fx.lebail@yahoo.com> | 2013-11-12 11:01:20 +0100 |
commit | 7be1e976c946be21b8ca3b5a77efa21c32f2516f (patch) | |
tree | 2f4c97f8e511934589687156adc8e683606819bf /ip6.h | |
parent | 1dcb5526b1b9e69883a8f46e01c11f12b9fdee1f (diff) | |
download | tcpdump-7be1e976c946be21b8ca3b5a77efa21c32f2516f.tar.gz |
print-ip6: add a test on the header version value
Diffstat (limited to 'ip6.h')
-rw-r--r-- | ip6.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -89,6 +89,7 @@ struct ip6_hdr { } UNALIGNED; #define ip6_vfc ip6_ctlun.ip6_un2_vfc +#define IP6_VERSION(ip6_hdr) (((ip6_hdr)->ip6_vfc & 0xf0) >> 4) #define ip6_flow ip6_ctlun.ip6_un1.ip6_un1_flow #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt |