@ -338,10 +338,9 @@ void in6_dev_finish_destroy(struct inet6_dev *idev)
snmp6_free_dev ( idev ) ;
call_rcu ( & idev - > rcu , in6_dev_finish_destroy_rcu ) ;
}
EXPORT_SYMBOL ( in6_dev_finish_destroy ) ;
static struct inet6_dev * ipv6_add_dev ( struct net_device * dev )
static struct inet6_dev * ipv6_add_dev ( struct net_device * dev )
{
struct inet6_dev * ndev ;
@ -442,7 +441,7 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev)
return ndev ;
}
static struct inet6_dev * ipv6_find_idev ( struct net_device * dev )
static struct inet6_dev * ipv6_find_idev ( struct net_device * dev )
{
struct inet6_dev * idev ;
@ -712,12 +711,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
struct inet6_ifaddr * ifa , * ifn ;
struct inet6_dev * idev = ifp - > idev ;
int state ;
int hash ;
int deleted = 0 , onlink = 0 ;
unsigned long expires = jiffies ;
hash = ipv6_addr_hash ( & ifp - > addr ) ;
spin_lock_bh ( & ifp - > state_lock ) ;
state = ifp - > state ;
ifp - > state = INET6_IFADDR_STATE_DEAD ;
@ -1342,7 +1338,6 @@ int ipv6_chk_prefix(struct in6_addr *addr, struct net_device *dev)
rcu_read_unlock ( ) ;
return onlink ;
}
EXPORT_SYMBOL ( ipv6_chk_prefix ) ;
struct inet6_ifaddr * ipv6_get_ifaddr ( struct net * net , const struct in6_addr * addr ,
@ -1529,7 +1524,7 @@ static int addrconf_ifid_arcnet(u8 *eui, struct net_device *dev)
if ( dev - > addr_len ! = ARCNET_ALEN )
return - 1 ;
memset ( eui , 0 , 7 ) ;
eui [ 7 ] = * ( u8 * ) dev - > dev_addr ;
eui [ 7 ] = * ( u8 * ) dev - > dev_addr ;
return 0 ;
}
@ -1657,7 +1652,8 @@ out:
in6_dev_put ( idev ) ;
}
static int __ipv6_try_regen_rndid ( struct inet6_dev * idev , struct in6_addr * tmpaddr ) {
static int __ipv6_try_regen_rndid ( struct inet6_dev * idev , struct in6_addr * tmpaddr )
{
int ret = 0 ;
if ( tmpaddr & & memcmp ( idev - > rndid , & tmpaddr - > s6_addr [ 8 ] , 8 ) = = 0 )
@ -1864,7 +1860,7 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len)
/* Try to figure out our local address for this prefix */
if ( pinfo - > autoconf & & in6_dev - > cnf . autoconf ) {
struct inet6_ifaddr * ifp ;
struct inet6_ifaddr * ifp ;
struct in6_addr addr ;
int create = 0 , update_lft = 0 ;
@ -2290,9 +2286,9 @@ static void sit_add_v4_addrs(struct inet6_dev *idev)
}
for_each_netdev ( net , dev ) {
struct in_device * in_dev = __in_dev_get_rtnl ( dev ) ;
struct in_device * in_dev = __in_dev_get_rtnl ( dev ) ;
if ( in_dev & & ( dev - > flags & IFF_UP ) ) {
struct in_ifaddr * ifa ;
struct in_ifaddr * ifa ;
int flag = scope ;
@ -2338,7 +2334,7 @@ static void init_loopback(struct net_device *dev)
static void addrconf_add_linklocal ( struct inet6_dev * idev , struct in6_addr * addr )
{
struct inet6_ifaddr * ifp ;
struct inet6_ifaddr * ifp ;
u32 addr_flags = IFA_F_PERMANENT ;
# ifdef CONFIG_IPV6_OPTIMISTIC_DAD
@ -2359,7 +2355,7 @@ static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr
static void addrconf_dev_config ( struct net_device * dev )
{
struct in6_addr addr ;
struct inet6_dev * idev ;
struct inet6_dev * idev ;
ASSERT_RTNL ( ) ;
@ -2472,7 +2468,7 @@ static void addrconf_ip6_tnl_config(struct net_device *dev)
}
static int addrconf_notify ( struct notifier_block * this , unsigned long event ,
void * data )
void * data )
{
struct net_device * dev = ( struct net_device * ) data ;
struct inet6_dev * idev = __in6_dev_get ( dev ) ;
@ -3700,7 +3696,7 @@ static int inet6_dump_ifacaddr(struct sk_buff *skb, struct netlink_callback *cb)
return inet6_dump_addr ( skb , cb , type ) ;
}
static int inet6_rtm_getaddr ( struct sk_buff * in_skb , struct nlmsghdr * nlh ,
static int inet6_rtm_getaddr ( struct sk_buff * in_skb , struct nlmsghdr * nlh ,
void * arg )
{
struct net * net = sock_net ( in_skb - > sk ) ;