Can we add this to libnl?

Andy Grover agrover at redhat.com
Wed Jul 16 09:32:29 PDT 2014


On 07/16/2014 01:57 AM, Thomas Graf wrote:
> On 07/15/14 at 08:57pm, Andy Grover wrote:
>> Hi all,
>>
>> I was in the process of writing some genl code, and happened upon code
>> implementing nl_get_multicast_id() in the iw repo[1] that did exactly what I
>> needed... and in fact the source file has a comment "this ought to be
>> provided by libnl" :-)
>>
>> So before I cut and paste this code into my project, what do you all think
>> about doing just that, and including this function in libnl?
>>
>> Code attached.
>
> If i'm not mistaken libnl already provides such an API [0]:

> int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family_name,
>                            const char *grp_name)
>
> [0] http://www.infradead.org/~tgr/libnl/doc/api/group__genl__ctrl.html#gae4be9d99838db33cabc818cd6db6e26c
>

How nice!! Thanks I'll just use that! :)

-- Andy (libnl neophyte)



More information about the libnl mailing list