]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: xtoptions: Treat NFPROTO_BRIDGE as IPv4
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Dec 2023 20:14:58 +0000 (21:14 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Jan 2024 15:07:31 +0000 (16:07 +0100)
commit955654c4fc34cf3ff4e64d3340c124b17605ae34
tree59b550056ffa85834c587f3b5819fbab51785bbf
parent810f8568f44f5863c2350a39f4f5c8d60f762958
libxtables: xtoptions: Treat NFPROTO_BRIDGE as IPv4

When parsing for XTTYPE_HOST(MASK), the return value of afinfo_family()
is used to indicate the expected address family.

Make guided option parser expect IPv4 by default for ebtables as this is
the more common case. The exception is libebt_ip6, which will
temporarily adjust afinfo->family while parsing.
libxtables/xtoptions.c