##summary
IP4 route register a call back notify in IPv4 address.
When a address is added, fib_inetaddr_event
will be called.
and then 4 route entry maybe added in fib_add_ifaddr
1 | 1273 int register_inetaddr_notifier(struct notifier_block *nb) |
1 | 1075 static struct notifier_block fib_inetaddr_notifier = { |
1 | 1008 static int fib_inetaddr_event(struct notifier_block *this, unsigned long event, void *ptr) |
1 | 734 void fib_add_ifaddr(struct in_ifaddr *ifa) |