diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-11 00:50:15 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-11 00:50:15 -0800 |
commit | 2de3a27ab75415237de96d2539e86b959ad0a9d0 (patch) | |
tree | 1e238eb04ec86a90dab18b6d341bdee8f3812a9d /print-tcp.c | |
parent | d8bf24c8743edcd257e2e76b1ed15a2b49208051 (diff) | |
download | tcpdump-2de3a27ab75415237de96d2539e86b959ad0a9d0.tar.gz |
Have all Internet-checksum computing routines return a uint16_t.
Those checksums are 16-bit; change the return types of those routines
appropriately.
Diffstat (limited to 'print-tcp.c')
-rw-r--r-- | print-tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tcp.c b/print-tcp.c index 1886044b..ef7bcf6c 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -136,7 +136,7 @@ static const struct tok tcp_option_values[] = { { 0, NULL } }; -static int +static uint16_t tcp_cksum(netdissect_options *ndo, const struct ip *ip, const struct tcphdr *tp, @@ -146,7 +146,7 @@ tcp_cksum(netdissect_options *ndo, IPPROTO_TCP); } -static int +static uint16_t tcp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, const struct tcphdr *tp, |