summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 16:12:16 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-07-16 16:12:16 +0000
commit96c7e2683bd59830d2aaebfd2956afa3bce9323d (patch)
tree9890f5cc1f5ae73015b15463ae9e638007de9361 /sys/netinet6
parent76e68cee595bb0e514f24534e339a911d8f08032 (diff)
Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.
ok guenther@, henning@
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6_rtr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 28ef3f8e674..e3fcac55eb2 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.109 2015/07/16 15:31:35 mpi Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.110 2015/07/16 16:12:15 mpi Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -433,7 +433,7 @@ nd6_ra_input(struct mbuf *m, int off, int icmp6len)
dr0.ifp = ifp;
/* unspecified or not? (RFC 2461 6.3.4) */
if (advreachable) {
- NTOHL(advreachable);
+ advreachable = ntohl(advreachable);
if (advreachable <= MAX_REACHABLE_TIME &&
ndi->basereachable != advreachable) {
ndi->basereachable = advreachable;