diff options
-rw-r--r-- | net/core/neighbour.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 0841ac78c67d..d1f8f7847f7c 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -1589,9 +1589,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb, | |||
1589 | struct ndtmsg *ndtmsg; | 1589 | struct ndtmsg *ndtmsg; |
1590 | 1590 | ||
1591 | nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); | 1591 | nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); |
1592 | ndtmsg = NLMSG_DATA(nlh); | 1592 | nlh->nlmsg_flags |= NLM_F_MULTI; |
1593 | 1593 | ||
1594 | NLMSG_SET_MULTIPART(nlh); | 1594 | ndtmsg = NLMSG_DATA(nlh); |
1595 | 1595 | ||
1596 | read_lock_bh(&tbl->lock); | 1596 | read_lock_bh(&tbl->lock); |
1597 | ndtmsg->ndtm_family = tbl->family; | 1597 | ndtmsg->ndtm_family = tbl->family; |
@@ -1674,9 +1674,9 @@ static int neightbl_fill_param_info(struct neigh_table *tbl, | |||
1674 | struct nlmsghdr *nlh; | 1674 | struct nlmsghdr *nlh; |
1675 | 1675 | ||
1676 | nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); | 1676 | nlh = NLMSG_PUT_ANSWER(skb, cb, RTM_NEWNEIGHTBL, sizeof(struct ndtmsg)); |
1677 | ndtmsg = NLMSG_DATA(nlh); | 1677 | nlh->nlmsg_flags |= NLM_F_MULTI; |
1678 | 1678 | ||
1679 | NLMSG_SET_MULTIPART(nlh); | 1679 | ndtmsg = NLMSG_DATA(nlh); |
1680 | 1680 | ||
1681 | read_lock_bh(&tbl->lock); | 1681 | read_lock_bh(&tbl->lock); |
1682 | ndtmsg->ndtm_family = tbl->family; | 1682 | ndtmsg->ndtm_family = tbl->family; |