Skip to contentSkip to conversation

nft: arp: inhibate -l option so only a fixed size arhln is in use

PATCH Applied Tomasz Bursztyka 2 participants 2 messages Nov 7, 2013 – Nov 8, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

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.

---
 iptables/xtables-arp.c | 7 +++++++
 1 file changed, 7 insertions(+)
iptables/xtables-arp.c +7 -0
index 18f285c..5ab0fb4 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 2 lines · Tomasz Bursztyka

This is a temporary workaround mechanism until variable interface hardware address length can be handled through nftables.

Applied, thanks.