diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-11 00:17:47 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-11 00:17:47 -0800 |
commit | 0f328b4aa16b0b47f05a85c440ce1d07719e3cac (patch) | |
tree | a5a9a3a1dad2f4ce32c9116665d420ae06c448dc /print-tcp.c | |
parent | e1dd70a1b6754ba6946095cdbdb7850c08541117 (diff) | |
download | tcpdump-0f328b4aa16b0b47f05a85c440ce1d07719e3cac.tar.gz |
More nd_ification of structures.
We don't need to use & to get a pointer to an nd_uintN_t/nd_intN_t type,
as they're arrays.
Diffstat (limited to 'print-tcp.c')
-rw-r--r-- | print-tcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-tcp.c b/print-tcp.c index 68705b63..67c15edd 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -76,8 +76,8 @@ struct tha { struct tcp_seq_hash { struct tcp_seq_hash *nxt; struct tha addr; - tcp_seq seq; - tcp_seq ack; + uint32_t seq; + uint32_t ack; }; struct tha6 { @@ -89,8 +89,8 @@ struct tha6 { struct tcp_seq_hash6 { struct tcp_seq_hash6 *nxt; struct tha6 addr; - tcp_seq seq; - tcp_seq ack; + uint32_t seq; + uint32_t ack; }; #define TSEQ_HASHSIZE 919 @@ -238,7 +238,7 @@ tcp_print(netdissect_options *ndo, return; } - flags = tp->th_flags; + flags = EXTRACT_U_1(tp->th_flags); ND_PRINT((ndo, "Flags [%s]", bittok2str_nosep(tcp_flag_values, "none", flags))); if (!ndo->ndo_Sflag && (flags & TH_ACK)) { |