Re: [PATCH net-next 1/3] rtnetlink: add AF_PACKET multicast dumps
From: Yuyang Huang
Date: Tue Sep 08 2026 - 21:17:27 EST
On Wed, Sep 9, 2026 at 12:56 AM David Ahern <dsahern@xxxxxxxxxx> wrote:
>
> On 9/5/26 4:39 AM, Yuyang Huang wrote:
> > +static int rtnl_dump_mcaddr(struct sk_buff *skb, struct netlink_callback *cb)
> > +{
> > + struct net *net = sock_net(skb->sk);
> > + unsigned int flags = NLM_F_MULTI;
> > + struct {
> > + unsigned long ifindex;
> > + int addr_idx;
> > + } *ctx = (void *)cb->ctx;
> > + struct net_device *dev;
> > + int ifindex = 0;
> > + int err = 0;
> > +
> > + if (cb->strict_check) {
>
> this is new code. It should only work with strict checking.
Thanks for the advice, I will fix it in patchset v2.
Thanks,
Yuyang