Hi On Sun, Apr 13, 2008 at 5:14 PM, Kris van Rens <krisvanrens.list@xxxxxxxxx> wrote: > Hi there, > > Is there a way to monitor IP-address changes without using polling? In > other words; is there some kind of event mechanism in the Linux kernel > with which I could implement this more elegantly? > > From user space I can use all kinds of scripting methods to monitor > the IP-address of a certain interface or build a program that > constantly polls for IP-addresses. > > I have a network device driver that provides a network interface, and > a test application that sends packets to this network interface. But > suppose I change the IP-address of this interface; what would be the > best way for the test application to monitor/get hold of this change? never did that before, but I think by strace-ing ifconfig and see what syscall/ioctl ifconfig might issue, you might get the idea. Then, depending on the facts you found, use systemtap/linux security module(LSM) hook/kprobe/netfilter/etc to "detect" the event. regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ