netlink: add struct nlmsgerr definition

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-01-05 20:48:14 +08:00 committed by Xiang Xiao
parent f137a7b552
commit b978ff245e

View file

@ -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