*/intnfnlmsg_put(struct nl_msg *msg,uint32_tpid,uint32_tseq,uint8_tsubsys_id,uint8_ttype,intflags,uint8_tfamily,uint16_tres_id){structnlmsghdr*nlh;nlh =nlmsg_put(msg, pid, seq, NFNLMSG_TYPE(subsys_id, type),0, flags);if(nlh ==NULL)return-NLE_MSGSIZE;returnnfnlmsg_append(msg...
函数原型:static inline struct nlmsghdr *nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int payload, int flags) 返回类型:struct nlmsghdr 参数: 类型参数名称 struct sk_buff * skb u32 portid u32 seq int type int payload int flags 852...
void *ptr if (sp->this_idx < sp->start_idx) goto out; - nlh = NLMSG_PUT(skb, NETLINK_CB(in_skb).pid, - sp->nlmsg_seq, - XFRM_MSG_NEWPOLICY, sizeof(*p)); + nlh = nlmsg_put(skb, NETLINK_CB(in_skb).pid, sp->nlmsg_seq, + XFRM_MSG_NEWPOLICY, sizeof(*p), sp->nlms...
Fixes data remnant seen when we fail to reserve space for a nexthop group during a larger dump. If we fail the reservation, we goto nla_put_failure and cancel the message. Reproduce with the following iproute2 commands: === ip link add dummy1 type dummy ip link add dummy2 type dummy...