From b97cbc0112cd59f5a7997332fba5e876c23a1a14 Mon Sep 17 00:00:00 2001 From: cmetz Date: Wed, 24 Mar 1999 02:28:21 +0000 Subject: Replace 'in6a_words' (old NRL convention) with 's6_addr32' (new BSDI et al. convention that is more common and more specific as to the access size) --- sys/netinet6/ipv6_rtrequest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netinet6/ipv6_rtrequest.c') diff --git a/sys/netinet6/ipv6_rtrequest.c b/sys/netinet6/ipv6_rtrequest.c index 84489c22218..2f0ef99c668 100644 --- a/sys/netinet6/ipv6_rtrequest.c +++ b/sys/netinet6/ipv6_rtrequest.c @@ -339,10 +339,10 @@ ipv6_setrtifa(rt) /* * If v4-compatible, use v4-compatible source address. */ - if (ifa == NULL && (sin6->sin6_addr.in6a_words[0] == 0 && - sin6->sin6_addr.in6a_words[1] == 0 && - sin6->sin6_addr.in6a_words[2] == 0 && - sin6->sin6_addr.in6a_words[3] != htonl(1) && + if (ifa == NULL && (sin6->sin6_addr.s6_addr32[0] == 0 && + sin6->sin6_addr.s6_addr32[1] == 0 && + sin6->sin6_addr.s6_addr32[2] == 0 && + sin6->sin6_addr.s6_addr32[3] != htonl(1) && (mask == NULL || mask->sin6_len >= sizeof(*mask) - sizeof(struct in_addr)))) { -- cgit v1.2.3-59-g8ed1b