Re: [PATCH V6 net-next iproute] ip: Add support for netdev events to monitor

2017-05-31 Thread Vlad Yasevich
On 05/30/2017 02:26 PM, Vlad Yasevich wrote: > On 05/30/2017 01:12 PM, Stephen Hemminger wrote: >> On Sat, 27 May 2017 10:14:36 -0400 >> Vladislav Yasevich wrote: >> >>> >>> +static const char *netdev_events[] = {"NONE", >>> + "REBOOT", >>> +

Re: [PATCH V6 net-next iproute] ip: Add support for netdev events to monitor

2017-05-30 Thread Vlad Yasevich
On 05/30/2017 01:12 PM, Stephen Hemminger wrote: > On Sat, 27 May 2017 10:14:36 -0400 > Vladislav Yasevich wrote: > >> >> +static const char *netdev_events[] = {"NONE", >> + "REBOOT", >> + "FEATURE CHANGE", >> +

Re: [PATCH V6 net-next iproute] ip: Add support for netdev events to monitor

2017-05-30 Thread Stephen Hemminger
On Sat, 27 May 2017 10:14:36 -0400 Vladislav Yasevich wrote: > > +static const char *netdev_events[] = {"NONE", > + "REBOOT", > + "FEATURE CHANGE", > + "BONDING FAILOVER", > +

Re: [PATCH V6 net-next iproute] ip: Add support for netdev events to monitor

2017-05-30 Thread David Ahern
On 5/27/17 8:14 AM, Vladislav Yasevich wrote: > diff --git a/ip/ipaddress.c b/ip/ipaddress.c > index b8d9c7d..c6e7413 100644 > --- a/ip/ipaddress.c > +++ b/ip/ipaddress.c > @@ -753,6 +753,24 @@ int print_linkinfo_brief(const struct sockaddr_nl *who, > return 0; > } > > +static const char *

[PATCH V6 net-next iproute] ip: Add support for netdev events to monitor

2017-05-27 Thread Vladislav Yasevich
Add IFLA_EVENT handling so that event types can be viewed with 'monitor' command. This gives a little more information for why a given message was receivied. Signed-off-by: Vladislav Yasevich --- include/linux/if_link.h | 11 +++ ip/ipaddress.c | 21 + 2 fil