summaryrefslogtreecommitdiff
path: root/print-sl.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-03 13:53:38 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-03 14:00:15 +0100
commit10a52254aeb943a15518461c055429cc42a305ef (patch)
treefb84630725fb805a48ac6ceda30aff47554de155 /print-sl.c
parent61c422a88caefe986c2bc0a7f2f3028f696fa5cd (diff)
downloadtcpdump-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-sl.c b/print-sl.c
index ed29874e..a0be3250 100644
--- a/print-sl.c
+++ b/print-sl.c
@@ -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));