Blame SOURCES/0049-arptables-Support-set-counters-option.patch

1dc35b
From a4412aa91dff87ab27e4ad6e27f2a6c03ed0b5fb Mon Sep 17 00:00:00 2001
8cce6c
From: Phil Sutter <phil@nwl.cc>
8cce6c
Date: Thu, 22 Nov 2018 20:50:13 +0100
8cce6c
Subject: [PATCH] arptables: Support --set-counters option
8cce6c
8cce6c
Relevant code for this was already present (short option '-c'), just the
8cce6c
long option definition was missing.
8cce6c
8cce6c
While being at it, add '-c' to help text.
8cce6c
8cce6c
Signed-off-by: Phil Sutter <phil@nwl.cc>
8cce6c
Signed-off-by: Florian Westphal <fw@strlen.de>
8cce6c
(cherry picked from commit b0466ae6fbc0a93b69591171c54aa79063e23f3d)
8cce6c
Signed-off-by: Phil Sutter <psutter@redhat.com>
8cce6c
---
8cce6c
 iptables/xtables-arp.c | 3 ++-
8cce6c
 1 file changed, 2 insertions(+), 1 deletion(-)
8cce6c
8cce6c
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
8cce6c
index 18cdced627c55..85bcc841b21f5 100644
8cce6c
--- a/iptables/xtables-arp.c
8cce6c
+++ b/iptables/xtables-arp.c
8cce6c
@@ -144,6 +144,7 @@ static struct option original_opts[] = {
8cce6c
 	{ "help", 2, 0, 'h' },
8cce6c
 	{ "line-numbers", 0, 0, '0' },
8cce6c
 	{ "modprobe", 1, 0, 'M' },
8cce6c
+	{ "set-counters", 1, 0, 'c' },
8cce6c
 	{ 0 }
8cce6c
 };
8cce6c
 
8cce6c
@@ -481,7 +482,7 @@ exit_printhelp(void)
8cce6c
 "  --line-numbers		print line numbers when listing\n"
8cce6c
 "  --exact	-x		expand numbers (display exact values)\n"
8cce6c
 "  --modprobe=<command>		try to insert modules using this command\n"
8cce6c
-"  --set-counters PKTS BYTES	set the counter during insert/append\n"
8cce6c
+"  --set-counters -c PKTS BYTES	set the counter during insert/append\n"
8cce6c
 "[!] --version	-V		print package version.\n");
8cce6c
 	printf(" opcode strings: \n");
8cce6c
         for (i = 0; i < NUMOPCODES; i++)
8cce6c
-- 
1dc35b
2.21.0
8cce6c