Allow users to specify a port range in sets:
[...]
rule
(tcp.dport) in { 11, 22, 33-44 }
[...]
This rule would be converted to a set containing { 11, 22, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 }.
That being said, what should be printed by bfcli ruleset get when printing such a set? Should we try to factorize the elements to print the range (keeping in mind the sets are not sorted)?
Allow users to specify a port range in sets:
This rule would be converted to a set containing
{ 11, 22, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 }.That being said, what should be printed by
bfcli ruleset getwhen printing such a set? Should we try to factorize the elements to print the range (keeping in mind the sets are not sorted)?