diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-10 15:17:06 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-10 15:17:06 +0100 |
commit | e44bc94ad0969b1bf2747518dbd0ebe4608152ee (patch) | |
tree | cc03f2b52637f6a58d81233e71ed924f54c55c6a /print-sl.c | |
parent | 6bb65331a5f9d35186238af0ed736a3949616bc2 (diff) | |
download | tcpdump-e44bc94ad0969b1bf2747518dbd0ebe4608152ee.tar.gz |
Use pointer expressions like in most similar cases
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 = ((const struct ip *)(p + SLX_CHDR))->ip_p; ND_PRINT((ndo, "utcp %d: ", lastconn)); if (dir == -1) { /* Direction is bogus, don't use it */ |