diff options
author | cmetz <cmetz@cvs.openbsd.org> | 1999-03-24 02:28:25 +0000 |
---|---|---|
committer | cmetz <cmetz@cvs.openbsd.org> | 1999-03-24 02:28:25 +0000 |
commit | 41be57199cb2faa999e1c99f32c7a2c5478964ad (patch) | |
tree | 6111a7bf6fe7d22863e667e27ca6a76d5ec8cef5 /sys/netinet6/ipv6_rtrequest.c | |
parent | 60e37adc52ae8ca7f288f3f3de5b71cc6872b462 (diff) |
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)))) { |