Linux Netfilter discussions
 help / color / mirror / Atom feed
* nft named set address types
@ 2021-11-01 20:46 Matt Zagrabelny
  2021-11-02 19:39 ` Matt Zagrabelny
  2021-11-02 19:53 ` Florian Westphal
  0 siblings, 2 replies; 12+ messages in thread
From: Matt Zagrabelny @ 2021-11-01 20:46 UTC (permalink / raw)
  To: netfilter

Hello,

I'd like to use the "inet" address family in a named set. I see nft
supports the following address families [AF] (among others):

       ip       IPv4 address family.

       ip6      IPv6 address family.

       inet     Internet (IPv4/IPv6) address
                family.

However, looking at the named sets, I do not see the "inet" AF:

type  string: ipv4_addr, ipv6_addr, ether_addr, inet_proto, inet_service, mark

Are there plans to add "inet_addr" AF to the types of named sets?

I wouldn't mind using the symbolic variables (define variable = expr)
to achieve a combined ipv4, ipv6 set, but from the docs the variable
doesn't appear to be global in scope - unless they are defined at a
top level.

"""
Symbolic variables can be defined using the define statement. Variable
references are
expressions and can be used to initialize other variables. The scope
of a definition is the
current block and all blocks contained within.
"""

Any feedback about combined ipv4 and ipv6 address families in named
sets? or why an inet family does not exist for named sets?

Thanks for the help!

-m

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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-01 20:46 nft named set address types Matt Zagrabelny
2021-11-02 19:39 ` Matt Zagrabelny
2021-11-02 20:23   ` Pablo Neira Ayuso
2021-11-02 20:56     ` Matt Zagrabelny
2021-11-15 17:40     ` Matt Zagrabelny
2021-11-15 17:59       ` Eugene Crosser
2021-11-15 19:00       ` Kerin Millar
2021-11-15 19:47       ` Pablo Neira Ayuso
2021-11-16  2:20         ` Pablo Neira Ayuso
2021-11-16  2:55           ` Matt Zagrabelny
2021-11-16  8:35             ` Pablo Neira Ayuso
2021-11-02 19:53 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox