Re: Query on Netlink sockets on debian etch

2009-10-05 Thread Ben Hutchings
On Mon, 2009-10-05 at 11:18 +0530, sathya sai wrote: > Hi Ben, > > Thanks for your mail. > > As there were two RTM_DELADDR, I am not sure on how the parsing of > this msg would result in identifying the notification type. In the RT-netlink API, the netmask is part of the address, and addresses

Re: Query on Netlink sockets on debian etch

2009-10-04 Thread sathya sai
Hi Ben, Thanks for your mail. As there were two RTM_DELADDR, I am not sure on how the parsing of this msg would result in identifying the notification type. Even I could get the following ioctl command with strace when tried with netmask, -- ioctl(4, SIOCSIFADDR, 0xbfb3f740) = 0 ioctl(4, S

Re: Query on Netlink sockets on debian etch

2009-10-03 Thread Ben Hutchings
On Sat, 2009-10-03 at 09:02 +0530, sathya sai wrote: > Hi Ben, > > Thanks for the mail. > > Is there any means by which I can identify if the notification is for > IP address (or) netmask address for RTM_NEWADDR? Changing netmask results in a deletion of the existing address and addition of a ne

Re: Query on Netlink sockets on debian etch

2009-10-02 Thread sathya sai
Hi Ben, Thanks for the mail. Is there any means by which I can identify if the notification is for IP address (or) netmask address for RTM_NEWADDR? Thanks and regards, Sathya On Sat, Oct 3, 2009 at 3:59 AM, Ben Hutchings wrote: > On Fri, 2009-10-02 at 23:40 +0530, sathya sai wrote: > [...] >

Re: Query on Netlink sockets on debian etch

2009-10-02 Thread Ben Hutchings
On Fri, 2009-10-02 at 23:40 +0530, sathya sai wrote: [...] > But, when I reconfigure my network interface with the below ifconfig > command, I am shocked that the above netlink program is giving me two > notifications with RTM_NEWADDR (new address being added to an > interface) > > I am not sure w

Query on Netlink sockets on debian etch

2009-10-02 Thread sathya sai
Hello Debian forum, This is Sathya and am presently using debian etch platform as my development. I am using program which creates a netlink sockets and registers for a IPv4 address notifications on a interface. #include #incl