diff options
author | Phil Sutter <phil@nwl.cc> | 2023-12-13 21:14:58 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-01-10 16:07:31 +0100 |
commit | 955654c4fc34cf3ff4e64d3340c124b17605ae34 (patch) | |
tree | 59b550056ffa85834c587f3b5819fbab51785bbf /libxtables | |
parent | 810f8568f44f5863c2350a39f4f5c8d60f762958 (diff) |
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.
Diffstat (limited to 'libxtables')
-rw-r--r-- | libxtables/xtoptions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libxtables/xtoptions.c b/libxtables/xtoptions.c index 7a0e44b3..f622f4c6 100644 --- a/libxtables/xtoptions.c +++ b/libxtables/xtoptions.c @@ -71,6 +71,7 @@ static uint8_t afinfo_family(void) { switch (afinfo->family) { case NFPROTO_ARP: + case NFPROTO_BRIDGE: return NFPROTO_IPV4; default: return afinfo->family; |