(2/5) IPV6 notifier replay changes
Subsystems (3)
PATCH 1/1 (2/5) IPV6 notifier replay changes
Change IPV6 to handle the new case where netdev events are replayed on registration:
* change code ordering so address configuration is ready before registration (this was actually a bug in existing code)
* take out code that capture's existing devices, this is now done in the replay
* make notifier code local to addrconf.c so it can be have smaller scope
include/net/addrconf.h +0 -4
@@ -50,10 +50,6 @@extern void addrconf_init (void );extern void addrconf_cleanup (void ); -extern int addrconf_notify (struct notifier_block *this, -unsigned long event, -void * data); -extern int addrconf_add_ifaddr (void *arg);extern int addrconf_del_ifaddr (void *arg);extern int addrconf_set_dstaddr (void *arg);
include/net/ipv6.h +0 -4
@@ -408,11 +408,7 @@extern void ipv6_packet_init (void ); -extern void ipv6_netdev_notif_init (void ); -extern void ipv6_packet_cleanup (void ); - -extern void ipv6_netdev_notif_cleanup (void );extern int ipv6_recv_error (struct sock *sk,struct msghdr *msg,int len); extern void ipv6_icmp_error(struct sock *sk, struct sk_buff *skb, int err, u16 port,
net/ipv6/addrconf.c +14 -29
76 lines not on this page · raw message
net/ipv6/af_inet6.c +0 -2
@@ -802,7 +802,6 @@if (if6_proc_init ()) goto proc_if6_fail;#endif -ipv6_netdev_notif_init ();ipv6_packet_init ();ip6_route_init ();ip6_flowlabel_init ();
@@ -869,7 +868,6 @@#endif /* Cleanup code parts. */ sit_cleanup (); -ipv6_netdev_notif_cleanup ();ip6_flowlabel_cleanup ();addrconf_cleanup ();ip6_route_cleanup ();
net/ipv6/ipv6_sockglue.c +0 -18
@@ -62,14 +62,6 @@ .func = ipv6_rcv, }; -/* -* addrconf module should be notified of a device going up -*/ -static struct notifier_block ipv6_dev_notf = { - .notifier_call = addrconf_notify, - .priority =0 -}; -struct ip6_ra_chain *ip6_ra_chain;rwlock_t ip6_ra_lock =RW_LOCK_UNLOCKED ;
@@ -707,19 +699,9 @@dev_add_pack (&ipv6_packet_type); } -void __init ipv6_netdev_notif_init (void ) -{ -register_netdevice_notifier (&ipv6_dev_notf); -} -#ifdef MODULE void ipv6_packet_cleanup (void ) {dev_remove_pack (&ipv6_packet_type); -} - -void ipv6_netdev_notif_cleanup (void ) -{ -unregister_netdevice_notifier (&ipv6_dev_notf); }#endif