[iptables PATCH 01/13] xshared: do_parse: Skip option checking for CMD_DELETE_NUM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This command will delete a rule by its number, not rule spec. No -i/-o
options are expected on commandline.

Signed-off-by: Phil Sutter <phil@xxxxxx>
---
 iptables/xshared.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/iptables/xshared.c b/iptables/xshared.c
index dca744773d773..53e6720169950 100644
--- a/iptables/xshared.c
+++ b/iptables/xshared.c
@@ -1837,7 +1837,6 @@ void do_parse(int argc, char *argv[],
 
 	if (p->command == CMD_APPEND ||
 	    p->command == CMD_DELETE ||
-	    p->command == CMD_DELETE_NUM ||
 	    p->command == CMD_CHECK ||
 	    p->command == CMD_INSERT ||
 	    p->command == CMD_REPLACE) {
-- 
2.41.0





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux