Re: [nft PATCH 6/6] netlink: Call tunnel getters unconditionally

Pablo Neira Ayuso <[email protected]> Wed, 22 Jul 2026 18:57:10 +0200
Newsgroups gmane.comp.security.firewalls.netfilter.devel
Message-ID <amD2ZqPDRpu0R4ia@chamomile>
On Fri, Jul 03, 2026 at 11:55:23AM +0200, Phil Sutter wrote:
> Hi Pablo,
> 
> On Fri, Jun 26, 2026 at 01:53:27PM +0200, Pablo Neira Ayuso wrote:
> > Series LGTM, only one nitpick, see below.
> 
> Thanks for your review!
> 
> [...]
> > >  static struct expr *
> > > -netlink_obj_tunnel_parse_addr(struct nftnl_obj *nlo, int attr)
> > > +netlink_obj_tunnel_parse_addr(struct nftnl_obj *nlo, int attr, int alt_attr)
> > 
> > Maybe I would suggest:
> > 
> > netlink_obj_tunnel_parse_addr(struct nftnl_obj *nlo, int ipv4_attr, int ipv6_attr)
> > 
> > for easier reading.
> 
> Fine with me! I'll introduce 'int attr' auto-variable then, because the
> code would otherwise conditionally do 'ipv4_attr = ipv6_attr' which is
> more confusing than the original version.

Ok, thanks. Feel free to merge this series once you're done with it.