Skip to contentSkip to conversation

bug: set output inconsistent syntax and missing information

nftables Florian Zumbiehl 1 participant 1 message Jan 5, 2020 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

... and then I stumbled upon yet another bug:

| # nft 'table ip foobartest { set s { type ipv4_addr; flags interval,timeout; elements={ 0.0.0.0/0 timeout 1d comment foo }; }; }'
| # nft list set foobartest s
| table ip foobartest {
|         set s {
|                 type ipv4_addr
|                 flags interval,timeout
|                 elements = { 0.0.0.0-255.255.255.255 }
|         }
| }

Any "trailing" ranges in a set that reach to the end of the address space are
(a) output as ranges rather than prefixes and (b) lack the comment and timeout info.

My guess would be that that is due to the trailing special case at the end of interval_map_decompose()?

Regards, Florian