函数源码 |
Source File:lib\nlattr.c |
Create Date:2022-07-27 08:14:59 |
首页 | Copyright©Brick |
866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 | /** * nla_put_nohdr - Add a netlink attribute without header * @skb: socket buffer to add attribute to * @attrlen: length of attribute payload * @data: head of attribute payload * * Returns -EMSGSIZE if the tailroom of the skb is insufficient to store * the attribute payload. */ int nla_put_nohdr( struct sk_buff *skb, int attrlen, const void *data) { if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) return -EMSGSIZE; __nla_put_nohdr(skb, attrlen, data); return 0; } |