diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 13:53:38 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 14:00:15 +0100 |
commit | 10a52254aeb943a15518461c055429cc42a305ef (patch) | |
tree | fb84630725fb805a48ac6ceda30aff47554de155 /print-sl.c | |
parent | 61c422a88caefe986c2bc0a7f2f3028f696fa5cd (diff) | |
download | tcpdump-10a52254aeb943a15518461c055429cc42a305ef.tar.gz |
Use more the EXTRACT_U_1() macro (44/n)
In: switch (... p[n] ...) ...
Diffstat (limited to 'print-sl.c')
-rw-r--r-- | print-sl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,7 +155,7 @@ sliplink_print(netdissect_options *ndo, ND_PRINT((ndo, "%02x: ", EXTRACT_U_1(p + SLX_CHDR + CHDR_LEN - 1))); return; } - switch (p[SLX_CHDR] & 0xf0) { + switch (EXTRACT_U_1(p + SLX_CHDR) & 0xf0) { case TYPE_IP: ND_PRINT((ndo, "ip %d: ", length + SLIP_HDRLEN)); |