struct ndtmsg *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);
ndtmsg->ndtm_family = tbl->family;
struct nlmsghdr *nlh;
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);
ndtmsg->ndtm_family = tbl->family;