netlink: add struct nlmsgerr definition
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
f137a7b552
commit
b978ff245e
1 changed files with 16 additions and 0 deletions
|
|
@ -420,6 +420,22 @@ struct nlmsghdr
|
|||
/* Data follows */
|
||||
};
|
||||
|
||||
struct nlmsgerr
|
||||
{
|
||||
int error;
|
||||
struct nlmsghdr msg;
|
||||
/**
|
||||
* Followed by the message contents unless NETLINK_CAP_ACK was set
|
||||
* or the ACK indicates success (error == 0)
|
||||
* message length is aligned with NLMSG_ALIGN()
|
||||
*/
|
||||
|
||||
/**
|
||||
* Followed by TLVs defined in enum nlmsgerr_attrs
|
||||
* if NETLINK_EXT_ACK was set
|
||||
*/
|
||||
};
|
||||
|
||||
/* NETLINK_ROUTE Message Structures *****************************************/
|
||||
|
||||
/* RTM_NEWLINK, RTM_DELLINK, RTM_GETLINK
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue