summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-01 15:19:56 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-01 15:48:41 +0100
commit505cd1fe15916e21abd6f2aa43a07bba649689cf (patch)
treead9455fdb50141b6e2f212f1a38a0af48b748bbc /print-ipx.c
parent7199dd316fde2a4705cb122863f5f58eb5aa0752 (diff)
downloadtcpdump-505cd1fe15916e21abd6f2aa43a07bba649689cf.tar.gz
Use more the EXTRACT_U_1() macro (39/n)
In some macros and functions call, p[n]
Diffstat (limited to 'print-ipx.c')
-rw-r--r--print-ipx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/print-ipx.c b/print-ipx.c
index 0c42c54d..7640fa0b 100644
--- a/print-ipx.c
+++ b/print-ipx.c
@@ -101,7 +101,9 @@ ipxaddr_string(uint32_t net, const u_char *node)
static char line[256];
snprintf(line, sizeof(line), "%08x.%02x:%02x:%02x:%02x:%02x:%02x",
- net, node[0], node[1], node[2], node[3], node[4], node[5]);
+ net, EXTRACT_U_1(node), EXTRACT_U_1(node + 1),
+ EXTRACT_U_1(node + 2), EXTRACT_U_1(node + 3),
+ EXTRACT_U_1(node + 4), EXTRACT_U_1(node + 5));
return line;
}