diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2010-09-08 20:43:19 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2010-09-08 20:43:19 +0000 |
commit | dfacac4421d55ab861f637c4c5390f625742dc82 (patch) | |
tree | 007486ee9e3e4774308ff16918dbab9e28a3bdff /epan/dissectors/packet-tcp.h | |
parent | 4c6864b29b5f909bcec4dda6cfad72ef8a561a93 (diff) |
Expand the TCP flags to include the low nibble of the byte that has
the header length in the high nibble. The only new flag is nonce (NS);
the remaining three bits are still reserved.
svn path=/trunk/; revision=34084
Diffstat (limited to 'epan/dissectors/packet-tcp.h')
-rw-r--r-- | epan/dissectors/packet-tcp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-tcp.h b/epan/dissectors/packet-tcp.h index fcbf313eac..7816e1db77 100644 --- a/epan/dissectors/packet-tcp.h +++ b/epan/dissectors/packet-tcp.h @@ -37,6 +37,8 @@ #define TH_URG 0x20 #define TH_ECN 0x40 #define TH_CWR 0x80 +#define TH_NS 0x100 +#define TH_RES 0xE00 /* 3 reserved bits */ /* Idea for gt: either x > y, or y is much bigger (assume wrap) */ #define GT_SEQ(x, y) ((gint32)((y) - (x)) < 0) @@ -55,7 +57,7 @@ typedef struct tcpheader { guint16 th_sport; guint16 th_dport; guint8 th_hlen; - guint8 th_flags; + guint16 th_flags; address ip_src; address ip_dst; } tcp_info_t; |