[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <30fa885d-67a7-e04d-3f17-07b7cdc599f7@gmail.com>
Date: Thu, 30 May 2019 13:59:27 -0600
From: David Ahern <dsahern@...il.com>
To: Roopa Prabhu <roopa@...ulusnetworks.com>,
David Ahern <dsahern@...nel.org>
Cc: Stephen Hemminger <stephen@...workplumber.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH iproute2-next 5/9] libnetlink: Add helper to create
nexthop dump request
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.
Powered by blists - more mailing lists