From c9e72388f19ed7e4600ee0d31c46ad5217c284d7 Mon Sep 17 00:00:00 2001 From: Hideaki Yoshifuji Date: Wed, 11 Feb 2004 05:10:23 -0800 Subject: [PATCH] [IPV6]: Kill remaining in6_u.u6_addrX uses. --- net/ipv6/addrconf.c | 2 +- net/ipv6/netfilter/ip6t_eui64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index f397596bd3bcb..c8e6d980236bd 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -231,7 +231,7 @@ int ipv6_addr_type(const struct in6_addr *addr) if ((addr->s6_addr32[0] | addr->s6_addr32[1]) == 0) { if (addr->s6_addr32[2] == 0) { - if (addr->in6_u.u6_addr32[3] == 0) + if (addr->s6_addr32[3] == 0) return IPV6_ADDR_ANY; if (addr->s6_addr32[3] == htonl(0x00000001)) diff --git a/net/ipv6/netfilter/ip6t_eui64.c b/net/ipv6/netfilter/ip6t_eui64.c index 42fda4283a881..b6199f25a7633 100644 --- a/net/ipv6/netfilter/ip6t_eui64.c +++ b/net/ipv6/netfilter/ip6t_eui64.c @@ -50,7 +50,7 @@ match(const struct sk_buff *skb, eui64[0] |= 0x02; i=0; - while ((skb->nh.ipv6h->saddr.in6_u.u6_addr8[8+i] == + while ((skb->nh.ipv6h->saddr.s6_addr[8+i] == eui64[i]) && (i<8)) i++; if ( i == 8 ) -- 2.53.0