On 5/30/19 1:56 PM, Roopa Prabhu wrote: >> diff --git a/lib/libnetlink.c b/lib/libnetlink.c >> index eb85bbdf01ee..c1cdda3b8d4e 100644 >> --- a/lib/libnetlink.c >> +++ b/lib/libnetlink.c >> @@ -25,6 +25,7 @@ >> #include <linux/fib_rules.h> >> #include <linux/if_addrlabel.h> >> #include <linux/if_bridge.h> >> +#include <linux/nexthop.h> >> >> #include "libnetlink.h" >> >> @@ -252,6 +253,32 @@ int rtnl_open(struct rtnl_handle *rth, unsigned int >> subscriptions) >> return rtnl_open_byproto(rth, subscriptions, NETLINK_ROUTE); >> } >> >> +int rtnl_nexthopdump_req(struct rtnl_handle *rth, int family, >> + req_filter_fn_t filter_fn) >> +{ >> + struct { >> + struct nlmsghdr nlh; >> + struct nhmsg nhm; >> + char buf[128]; >> + } req = { >> + .nlh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)), > > sizeof(struct nhmsg) ? >
good catch. fixed.