Here is a quick and dirty patch.

--
*John HUGHES*
Directeur technique
*CalvaEDI*
An Esker Company
58/A rue du Dessous des Berges, 75013 Paris
Tel. : (+33) 1 4313 3131
Description: allow --numeric on -Z command (or -L -Z command)
 fix a regression where the --numeric option was not allowed on iptables -L -Z
 iptables (1.8.11-2jh1) unstable; urgency=medium
 .
   * Allow -n option to -Z -L
Author: John Hughes <[email protected]>

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug-Debian: https://bugs.debian.org/1120683
Last-Update: 2025-11-14

--- iptables-1.8.11.orig/iptables/xshared.c
+++ iptables-1.8.11/iptables/xshared.c
@@ -943,7 +943,7 @@ static void parse_rule_range(struct xt_c
 #define CMD_IDRAC	CMD_INSERT | CMD_DELETE | CMD_REPLACE | \
 			CMD_APPEND | CMD_CHECK | CMD_CHANGE_COUNTERS
 static const unsigned int options_v_commands[NUMBER_OF_OPT] = {
-/*OPT_NUMERIC*/		CMD_LIST,
+/*OPT_NUMERIC*/		CMD_LIST | CMD_ZERO,
 /*OPT_SOURCE*/		CMD_IDRAC,
 /*OPT_DESTINATION*/	CMD_IDRAC,
 /*OPT_PROTOCOL*/	CMD_IDRAC,

Reply via email to