[NETLINK]: Correctly set NLM_F_MULTI without checking the pid
This patch rectifies some rtnetlink message builders that derive the flags from the pid. It is now explicit like the other cases which get it right. Also fixes half a dozen dumpers which did not set NLM_F_MULTI at all. Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

کامیت شده توسط
David S. Miller

والد
1797754ea7
کامیت
b6544c0b4c
@@ -703,7 +703,8 @@ fn_hash_dump_bucket(struct sk_buff *skb, struct netlink_callback *cb,
|
||||
&f->fn_key,
|
||||
fz->fz_order,
|
||||
fa->fa_tos,
|
||||
fa->fa_info) < 0) {
|
||||
fa->fa_info,
|
||||
NLM_F_MULTI) < 0) {
|
||||
cb->args[3] = i;
|
||||
return -1;
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user