Skip to content

fix ether address formatting

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3datatype: ll: use big endian byte orderingsrc/datatype.c src/proto.c+6 -51 reply
2/3tests: catch ordering issue w. ether settests/py/bridge/ether.t tests/py/bridge/ether.t.payload+3 -31 reply
3/3payload: remove byteorder conversionsrc/netlink_delinearize.c+0 -21 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPablo Neira Ayuso
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH nft 0/3] fix ether address formatting

ether addresses were listed as HOST_ENDIAN.
This did not show up for plain payload expressions because the payload expression postprocessing contained a byteorder conversion for HOST_ENDIAN.

It also did not show up when testing payload statements because test suite conveniently used ff:ff:ff ...

So,
1. switch the data type to BIG_ENDIAN
2. fix test case to catch bogus formatting
3. remove the payload byte order conversion, I do not think it is required (all tests pass without it after patch #1).