* Re: Notifier chains bug ? [not found] ` <5e9821061003012150y15e543cdkf6f23c3a7a47e4a3@mail.gmail.com> @ 2010-03-02 15:42 ` Américo Wang 2010-03-02 15:57 ` Atis Elsts [not found] ` <7f9bf5711003020755p653a0b8cq707e9b1e12b44c98@mail.gmail.com> 0 siblings, 2 replies; 3+ messages in thread From: Américo Wang @ 2010-03-02 15:42 UTC (permalink / raw) To: Oleg Kutkov; +Cc: Américo Wang, linux-kernel, netdev On Tue, Mar 02, 2010 at 07:50:01AM +0200, Oleg Kutkov wrote: >2010/3/2 Américo Wang <xiyou.wangcong@gmail.com>: >> On Tue, Mar 2, 2010 at 8:08 AM, Oleg Kutkov <elenbert@gmail.com> wrote: >>> Hello. >>> I try to used notifier chains for monitoring network devices events. >>> All works perfectly when just i'm connecting/disconnecting network cable or >>> up/down interface via ifconfig. >>> But when i try to change interface address - nothing happens. Notifier is >>> don't send any events :( >> >> I think you mean IP address? No, NETDEV_CHANGEADDR is for hardware >> address, not for IP address. >> >> If you were changing mac address, you will receive NETDEV_CHANGEADDR. >> > >Thank for quick answer. >Yes, i mean IP address. And what about NETDEV_CHANGE ? It is for rtnetlink state transition. >Is there possible for monitoring IP address/netmask changing ? > AFAIK, no. Cc'ing netdev experts... ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Notifier chains bug ? 2010-03-02 15:42 ` Notifier chains bug ? Américo Wang @ 2010-03-02 15:57 ` Atis Elsts [not found] ` <7f9bf5711003020755p653a0b8cq707e9b1e12b44c98@mail.gmail.com> 1 sibling, 0 replies; 3+ messages in thread From: Atis Elsts @ 2010-03-02 15:57 UTC (permalink / raw) To: Oleg Kutkov; +Cc: netdev I'm no expert, but IMHO for handling IP address changes you should use function register_inetaddr_notifier() to register you callback and then wait for NETDEV_UP and NETDEV_DOWN events. On Tue, Mar 2, 2010 at 5:42 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote: > On Tue, Mar 02, 2010 at 07:50:01AM +0200, Oleg Kutkov wrote: >>2010/3/2 Américo Wang <xiyou.wangcong@gmail.com>: >>> On Tue, Mar 2, 2010 at 8:08 AM, Oleg Kutkov <elenbert@gmail.com> wrote: >>>> Hello. >>>> I try to used notifier chains for monitoring network devices events. >>>> All works perfectly when just i'm connecting/disconnecting network cable or >>>> up/down interface via ifconfig. >>>> But when i try to change interface address - nothing happens. Notifier is >>>> don't send any events :( >>> >>> I think you mean IP address? No, NETDEV_CHANGEADDR is for hardware >>> address, not for IP address. >>> >>> If you were changing mac address, you will receive NETDEV_CHANGEADDR. >>> >> >>Thank for quick answer. >>Yes, i mean IP address. And what about NETDEV_CHANGE ? > > It is for rtnetlink state transition. > >>Is there possible for monitoring IP address/netmask changing ? >> > > AFAIK, no. > > Cc'ing netdev experts... > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ~Atis ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <7f9bf5711003020755p653a0b8cq707e9b1e12b44c98@mail.gmail.com>]
* Re: Notifier chains bug ? [not found] ` <7f9bf5711003020755p653a0b8cq707e9b1e12b44c98@mail.gmail.com> @ 2010-03-04 10:08 ` Américo Wang 0 siblings, 0 replies; 3+ messages in thread From: Américo Wang @ 2010-03-04 10:08 UTC (permalink / raw) To: Atis Elsts; +Cc: Oleg Kutkov, LKML, Linux Kernel Network Developers On Tue, Mar 2, 2010 at 11:55 PM, Atis Elsts <atis.elsts@gmail.com> wrote: > I'm no expert, but IMHO for handling IP address changes you should use > function register_inetaddr_notifier() to register you callback and > then wait for NETDEV_UP and NETDEV_DOWN events. > Oh, I think you are right. Btw, please don't drop Cc's. Thanks. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-04 10:08 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <4B8C56F0.5090700@gmail.com> [not found] ` <2375c9f91003011924k43f03649y5b4df405d6247a79@mail.gmail.com> [not found] ` <5e9821061003012150y15e543cdkf6f23c3a7a47e4a3@mail.gmail.com> 2010-03-02 15:42 ` Notifier chains bug ? Américo Wang 2010-03-02 15:57 ` Atis Elsts [not found] ` <7f9bf5711003020755p653a0b8cq707e9b1e12b44c98@mail.gmail.com> 2010-03-04 10:08 ` Américo Wang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).