On Sun, 8 Jul 2007, Satyam Sharma wrote:
> On Sun, 8 Jul 2007, KII Keiichi wrote:
> [...]
> > But, in the case, we must think of the case of changing IP address
> > because we can change IP address without disabling the network device and
> > can't hook the event of changing IP address.
>
> Well, updating the local _IP_ address (for a particular interface) as
> and when it changes would also be good ... it is another piece of info
> exposed (read-write) to userspace through configfs, so makes sense to
> keep it uptodate.
> [...] (as long as it doesn't break
> anything, as Matt warned earlier). I'm not aware of any existing
> netdevice notifier that'll do this, so I'll look around (or trace
> an ifconfig(8) / ip(8) to see what actually happens).
I think inetaddr_chain / register_inetaddr_notifier() are what I'm
looking for. I'll see if this does the job for us without breaking
anything else.
Satyam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]