Thread (14 messages) flat view 14 messages, 4 authors, 2017-05-02

Re: [PATCH net-next iproute2 1/3] netlink: import netlink message parsing from kernel

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-05-02 18:03:17

On Tue, 02 May 2017 13:00:32 -0400 (EDT)
David Miller [off-list ref] wrote:
From: David Ahern <redacted>
Date: Tue, 2 May 2017 10:51:23 -0600
quoted
On 5/2/17 9:25 AM, Stephen Hemminger wrote:  
quoted
Please either use existing netlink attribute code in libnetlink.h
(rta_getattr_u32 etc) or use libmnl like devlink.  
All of the existing rta_ functions take a struct rta_attr; netlink
messages use struct nlattr. It's just wrong to use rta functions for
netlink messages.  
Agreed.
quoted
There is no existing parse function for nlattr. There is no existing
validate function - for nlattr or rta_attr. So I do not see any overlap
with existing code.  
Also agreed.
Then use libmnl it is already used in several other places in iproute2.
Eventually, I would like to use it everywhere and get rid of old netlink parser.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help