diff options
author | 1999-03-24 02:28:21 +0000 | |
---|---|---|
committer | 1999-03-24 02:28:21 +0000 | |
commit | b97cbc0112cd59f5a7997332fba5e876c23a1a14 (patch) | |
tree | 3cf37569bcc7095f260cd559943d7283258d96b2 /sys/netinet6/ipv6_rtrequest.c | |
parent | arrgghhh! do NOT add pkgdep lines when creating PLIST-auto; (diff) | |
download | wireguard-openbsd-b97cbc0112cd59f5a7997332fba5e876c23a1a14.tar.xz wireguard-openbsd-b97cbc0112cd59f5a7997332fba5e876c23a1a14.zip |
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)
Diffstat (limited to 'sys/netinet6/ipv6_rtrequest.c')
-rw-r--r-- | sys/netinet6/ipv6_rtrequest.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)))) { |