On Wed, 23 Jun 2004 10:11:20 +0530 Rajeevalochan <rajeevalochan.ramaswamy@wipro.com> wrote: > hi, > > I am not sure that this query can be asked in this group. If not, please > route me to the respective group. > > I am developing a linux kernel module, which needs to get asynchronous > notifications whenever there is a change in routing table or interface > table or ARP table. At userspace this can be achieved by using netlink > sockets. Can anyone suggest me how to achieve the same in kernel modules. For network devices: register_netdevice_notifier(&mynotifier) For only IP devices: register_inetaddr_notifier(¬ifier) You could also have a kernel thread handling a netlink socket. - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html