nft: arp: inhibate -l option so only a fixed size arhln is in use
PATCH v2 1/1 nft: arp: inhibate -l option so only a fixed size arhln is in use
This is a temporary workaround mechanism until variable interface hardware address length can be handled through nftables.
Signed-off-by Tomasz Bursztyka <[email protected]>
--- iptables/xtables-arp.c | 7 +++++++ 1 file changed, 7 insertions(+)
iptables/xtables-arp.c +7 -0
@@ -1145,6 +1145,13 @@ int do_commandarp(struct nft_handle *h, int argc, char *argv[], char **table) invert);getlength_and_mask (argv[optind -1 ], &fw.arp.arhln, &fw.arp.arhln_mask); + +if (fw.arp.arhln !=6 ) { +xtables_error (PARAMETER_PROBLEM , +"Only harware address length of" +" 6 is supported currently." ); + } +break ;case 8 :/* protocol length */
Signature · 1 line
1.8.4.2
Quoted 2 lines · Tomasz Bursztyka
This is a temporary workaround mechanism until variable interface hardware address length can be handled through nftables.
Applied, thanks.