All of lore.kernel.org
 help / color / mirror / Atom feed
* redefining a variable
@ 2021-11-12 17:26 Matt Zagrabelny
  2021-11-14 11:04 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Zagrabelny @ 2021-11-12 17:26 UTC (permalink / raw)
  To: netfilter-devel

Greetings,

I would like to be able to redefine variables in nft.

Would you folks consider a switch or a new keyword to achieve something like:

define ints = eth0

define --redefine-ok ints = { $ints, eth1 }

define_or_redefine ints = { $ints, eth2 }

?

Thanks for your help and support.

-m

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: redefining a variable
  2021-11-12 17:26 redefining a variable Matt Zagrabelny
@ 2021-11-14 11:04 ` Florian Westphal
  2021-11-15 16:27   ` Matt Zagrabelny
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2021-11-14 11:04 UTC (permalink / raw)
  To: Matt Zagrabelny; +Cc: netfilter-devel

Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
> Greetings,
> 
> I would like to be able to redefine variables in nft.
> 
> Would you folks consider a switch or a new keyword to achieve something like:
> 
> define ints = eth0
> 
> define --redefine-ok ints = { $ints, eth1 }
> 
> define_or_redefine ints = { $ints, eth2 }
> 
> Thanks for your help and support.

nft has undefine & redefine keywords.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: redefining a variable
  2021-11-14 11:04 ` Florian Westphal
@ 2021-11-15 16:27   ` Matt Zagrabelny
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Zagrabelny @ 2021-11-15 16:27 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

Hey Florian,

Thanks for the reply!

On Sun, Nov 14, 2021 at 5:04 AM Florian Westphal <fw@strlen.de> wrote:
>
> Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:
> > Greetings,
> >
> > I would like to be able to redefine variables in nft.
> >
> > Would you folks consider a switch or a new keyword to achieve something like:
> >
> > define ints = eth0
> >
> > define --redefine-ok ints = { $ints, eth1 }
> >
> > define_or_redefine ints = { $ints, eth2 }
> >
> > Thanks for your help and support.
>
> nft has undefine & redefine keywords.

That's perfect. Perhaps add a snippet to the man page?

Thanks again for the reply and help!

-m

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-15 16:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 17:26 redefining a variable Matt Zagrabelny
2021-11-14 11:04 ` Florian Westphal
2021-11-15 16:27   ` Matt Zagrabelny

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.