diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-10 16:23:34 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-10 16:23:34 -0800 |
commit | 3f3f2505f2a02fcc471f7baba884959ccb2233c9 (patch) | |
tree | 7d3eaab1e2ead51f2b0ead6b42ee0e6e3c031ee8 /print-sl.c | |
parent | fa2faabe6139e9d4b2596b3989318d965075a197 (diff) | |
download | tcpdump-3f3f2505f2a02fcc471f7baba884959ccb2233c9.tar.gz |
Make nd_uint8_t and nd_int8_t arrays, to catch direct references.
This catches direct references, so we can change them to use EXTRACT_U_1
or EXTRACT_S_1.
Also, change some structures to use the nd_ types that weren't already
using them.
Then make the appropriate EXTRACT_{U,S}_1() changes.
Diffstat (limited to 'print-sl.c')
-rw-r--r-- | print-sl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -167,7 +167,7 @@ sliplink_print(netdissect_options *ndo, * Get it from the link layer since sl_uncompress_tcp() * has restored the IP header copy to IPPROTO_TCP. */ - lastconn = ((const struct ip *)(p + SLX_CHDR))->ip_p; + lastconn = EXTRACT_U_1(((const struct ip *)(p + SLX_CHDR))->ip_p); ND_PRINT((ndo, "utcp %d: ", lastconn)); if (dir == -1) { /* Direction is bogus, don't use it */ |