Thread (12 messages) flat view 12 messages, 3 authors, 13d ago

Re: [PATCH net-next v2 1/3] rtnetlink: add AF_PACKET multicast dumps

From: Yuyang Huang <hidden>
Date: 2026-09-09 11:15:56
Also in: linux-kselftest, lkml

quoted
+  - IFA_F_PERMANENT marks entries added with SIOCADDMULTI
+    (netdev_hw_addr::global_use, "static" in "ip maddr")
The global flag is also set for addresses added via dev_mc_add_excl(), ie by
some drivers.
Thanks for the reminder, will fix the comment in patchset v3
quoted
+     ifm->ifa_flags = ha->global_use ? IFA_F_PERMANENT : 0;
I wonder if adding a new attribute IFA_F_GLOBAL would not make the API more
understandable.
Good point, IFA_F_GLOBAL is indeed a better API that will fixed in patchset v3.
quoted
+     struct net *net = sock_net(skb->sk);
For consistency with ipv4/ipv6, it would be nice to handle IFA_TARGET_NETNSID.
Will do in v3.

Thanks,

Yuyang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help