On 4 June 2018 at 11:58, Máté Eckl <ecklm94@xxxxxxxxx> wrote: > What I'm not sure of is: > - Are these token values considered user-friendly or usable? > - Is printing of these values with their names desired? > > What do you think? > > -- 8< -- > This patch adds the possibility to use textual names to set the chain priority > to basic values so that numeric values do not need to be learnt any more for > basic usage. > > Example: > nft> add table inet x > nft> add chain inet x y {type filter hook prerouting priority PRIO_MANGLE ;} > nft> list ruleset > table inet x { > chain y { > type filter hook prerouting priority -150; policy accept; > } > } > I believe the idea is good. But also, you should print the friendly names instead of the magic numbers :-P -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html