summaryrefslogtreecommitdiff
path: root/print-ip6.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 09:56:29 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 09:56:29 +0100
commit3a7639e545c0543bcec19c4321dd3ba397fbe6fa (patch)
tree44decbbcb2ea9fd9aff7d0b86a4698a2b74a4fea /print-ip6.c
parent58010245a5c050e543862c068d1f182fc70623c7 (diff)
downloadtcpdump-3a7639e545c0543bcec19c4321dd3ba397fbe6fa.tar.gz
Use more the EXTRACT_U_1() macro (49/n)
Assignment, *(p)
Diffstat (limited to 'print-ip6.c')
-rw-r--r--print-ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ip6.c b/print-ip6.c
index 5f6c647f..bdc79f9c 100644
--- a/print-ip6.c
+++ b/print-ip6.c
@@ -78,7 +78,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst,
*/
ND_TCHECK_2(cp);
advance = (EXTRACT_U_1(cp + 1) + 1) << 3;
- nh = *cp;
+ nh = EXTRACT_U_1(cp);
break;
case IPPROTO_FRAGMENT:
@@ -89,7 +89,7 @@ ip6_finddst(netdissect_options *ndo, struct in6_addr *dst,
*/
ND_TCHECK_1(cp);
advance = sizeof(struct ip6_frag);
- nh = *cp;
+ nh = EXTRACT_U_1(cp);
break;
case IPPROTO_ROUTING: