ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Marat Khairullin <xmm@rambler.ru>
To: ALTLinux Sisyphus <sisyphus@altlinux.ru>
Subject: [sisyphus] iptables.c or sscanf error
Date: Sat, 23 Mar 2002 00:52:17 +0300
Message-ID: <20020323005217.618a5c0c.xmm@rambler.ru> (raw)

iptables-1.2.5-alt2
glibc-2.2.5-alt1

# iptables -t filter --set-counters 71 23181 -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
iptables v1.2.5: -c packet counter not numeric
Try `iptables -h' or 'iptables --help' for more information.

Та же ошибка в iptables-restore
решается с помощью патча:

--- iptables.c.old	Tue Mar  5 15:22:45 2002
+++ iptables.c	Sat Mar 23 00:40:52 2002
@@ -1989,12 +1989,12 @@
 					"-%c requires packet and byte counter",
 					opt2char(OPT_COUNTERS));
 
-			if (sscanf(pcnt, "%llu", &fw.counters.pcnt) != 1)
+			if (sscanf(pcnt, "%Lu", &fw.counters.pcnt) != 1)
 				exit_error(PARAMETER_PROBLEM,
 					"-%c packet counter not numeric",
 					opt2char(OPT_COUNTERS));
 
-			if (sscanf(bcnt, "%llu", &fw.counters.bcnt) != 1)
+			if (sscanf(bcnt, "%Lu", &fw.counters.bcnt) != 1)
 				exit_error(PARAMETER_PROBLEM,
 					"-%c byte counter not numeric",
 					opt2char(OPT_COUNTERS));
--- По манам параметры %ll и %L эквивалентны
+++ 
-- 
Marat Khairullin        8->     mailto:xmm@rambler.ru
               	                Marat.Khairullin@f92.n5049.z2.fidonet.org



             reply	other threads:[~2002-03-22 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 21:52 Marat Khairullin [this message]
2002-03-25 17:56 ` Konstantin Volckov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020323005217.618a5c0c.xmm@rambler.ru \
    --to=xmm@rambler.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git