]> git.ipfire.org Git - thirdparty/nftables.git/commit
reject: Unify inet, netdev and bridge delinearization
authorPhil Sutter <phil@nwl.cc>
Tue, 26 Jan 2021 17:37:12 +0000 (18:37 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 27 Jan 2021 16:21:25 +0000 (17:21 +0100)
commit7ca3368cd7575e710114fc60e8ecc8ffba95154d
tree554026eda46d9f43cc58d63152934f765a03061d
parenta206f22bdbd03a9c8dcf2f98e3ed7566b198d281
reject: Unify inet, netdev and bridge delinearization

Postprocessing for inet family did not attempt to kill any existing
payload dependency, although it is perfectly fine to do so. The mere
culprit is to not abbreviate default code rejects as that would drop
needed protocol info as a side-effect. Since postprocessing is then
almost identical to that of bridge and netdev families, merge them.

While being at it, extend tests/py/netdev/reject.t by a few more tests
taken from inet/reject.t so this covers icmpx rejects as well.

Cc: Jose M. Guisado Gomez <guigom@riseup.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/netlink_delinearize.c
tests/py/inet/reject.t
tests/py/inet/reject.t.json.output
tests/py/netdev/reject.t
tests/py/netdev/reject.t.json
tests/py/netdev/reject.t.payload