提交 4b6ea82d 编写于 作者: T Thomas Graf 提交者: David S. Miller

[NETLINK]: Kill bogus NLMSG_SET_MULTIPART uses.

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c52a3f89
...@@ -1589,9 +1589,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb, ...@@ -1589,9 +1589,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb,
struct ndtmsg *ndtmsg; struct ndtmsg *ndtmsg;
nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg));
ndtmsg = NLMSG_DATA(nlh); nlh->nlmsg_flags |= NLM_F_MULTI;
NLMSG_SET_MULTIPART(nlh); ndtmsg = NLMSG_DATA(nlh);
read_lock_bh(&tbl->lock); read_lock_bh(&tbl->lock);
ndtmsg->ndtm_family = tbl->family; ndtmsg->ndtm_family = tbl->family;
...@@ -1674,9 +1674,9 @@ static int neightbl_fill_param_info(struct neigh_table *tbl, ...@@ -1674,9 +1674,9 @@ static int neightbl_fill_param_info(struct neigh_table *tbl,
struct nlmsghdr *nlh; struct nlmsghdr *nlh;
nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg));
ndtmsg = NLMSG_DATA(nlh); nlh->nlmsg_flags |= NLM_F_MULTI;
NLMSG_SET_MULTIPART(nlh); ndtmsg = NLMSG_DATA(nlh);
read_lock_bh(&tbl->lock); read_lock_bh(&tbl->lock);
ndtmsg->ndtm_family = tbl->family; ndtmsg->ndtm_family = tbl->family;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册