Skip to content

RFC connlabel set support using extra setter attr

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netfilter: nftables: add connlabel set supportinclude/uapi/linux/netfilter/nf_tables.h net/netfilter/nft_ct.c+53 -27 replies
2/3ct: add label set supportinclude/libnftnl/expr.h include/linux/netfilter/nf_tables.h src/expr/ct.c+34 -00 replies
3/3ct: add conntrack label set supportsrc/evaluate.c src/netlink_delinearize.c src/netlink_linearize.c+50 -132 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] connlabel set support using extra setter attr

Hi Pablo

This attempts to implement the set support via your proposed setter attribute.

IOW instead of taking an sreg and replacing the entire label area with whatever is contained therein take a bit number passed in from userspace and set only that one bit.

So ct label set foo

will really mean 'set the foo bit in the label area', just like iptables -m connlabel --label foo --set

I'm sure that there are better ways to implement the expr <-> attr conversion, see patch #3.

Comments welcome, I'll respin it once -next is open again.

Thanks,
Florian