]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_HMARK: Review HMARK_parse()
authorPhil Sutter <phil@nwl.cc>
Wed, 20 Dec 2023 01:54:07 +0000 (02:54 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Jan 2024 15:07:31 +0000 (16:07 +0100)
commitf4721951baca81b7d74c5551d0f5c599dbb89bf1
tree773f12b6dd2eff03eca445694de708350ba763a3
parentfb7228d4781b181b078404b82988c456b58430de
extensions: libxt_HMARK: Review HMARK_parse()

* With XTOPT_NBO support in UINT types, the manual byteorder conversion
  calls are no longer needed
* Setting bits in cb->xflags is done by xtables_option_parse() already
* Since O_HMARK_* values match XT_HMARK_* ones, all but the O_HMARK_TYPE
  case fold together into a single default one
extensions/libxt_HMARK.c