Re: [PATCH iproute2 WIP] ifstat: use new RTM_GETSTATS api

2016-04-20 Thread Roopa Prabhu
On 4/20/16, 11:53 AM, Stephen Hemminger wrote: > On Wed, 20 Apr 2016 09:16:15 -0700 > Roopa Prabhu wrote: > >> +int rtnl_wilddump_stats_req_filter(struct rtnl_handle *rth, int family, int >> type, >> + __u32 filt_mask) >> +{ >> +struct { >> +struct nl

Re: [PATCH iproute2 WIP] ifstat: use new RTM_GETSTATS api

2016-04-20 Thread Stephen Hemminger
On Wed, 20 Apr 2016 09:16:15 -0700 Roopa Prabhu wrote: > +int rtnl_wilddump_stats_req_filter(struct rtnl_handle *rth, int family, int > type, > +__u32 filt_mask) > +{ > + struct { > + struct nlmsghdr nlh; > + struct if_stats_msg ifsm; >

[PATCH iproute2 WIP] ifstat: use new RTM_GETSTATS api

2016-04-20 Thread Roopa Prabhu
From: Roopa Prabhu sample hacked up patch currently used for testing. needs re-work if ifstat will move to RTM_GETSTATS. Signed-off-by: Roopa Prabhu --- include/libnetlink.h | 6 ++ include/linux/if_link.h | 22 ++ include/linux/rtnetlink.h | 5 + lib/libne