lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ