summaryrefslogtreecommitdiff
path: root/print-llc.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 21:53:35 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 22:23:47 +0100
commitcb9b66505924ae735e5ef772a434e72089231076 (patch)
tree47df75adb4f99b60e9ba6755ff2bb9c65de41429 /print-llc.c
parentfe1c2f0d7fb9221936b0d54a670b9f2eea2b72c4 (diff)
downloadtcpdump-cb9b66505924ae735e5ef772a434e72089231076.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (18/n)
Assignment, *(p op e) Partial list.
Diffstat (limited to 'print-llc.c')
-rw-r--r--print-llc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-llc.c b/print-llc.c
index b3fbef0f..699cc63c 100644
--- a/print-llc.c
+++ b/print-llc.c
@@ -167,7 +167,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
}
dsap_field = *p;
- ssap_field = *(p + 1);
+ ssap_field = EXTRACT_8BITS(p + 1);
/*
* OK, what type of LLC frame is this? The length
@@ -175,7 +175,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
* have a two-byte control field, and U frames have
* a one-byte control field.
*/
- control = *(p + 2);
+ control = EXTRACT_8BITS(p + 2);
if ((control & LLC_U_FMT) == LLC_U_FMT) {
/*
* U frame.