ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] iptables.c or sscanf error
@ 2002-03-22 21:52 Marat Khairullin
  2002-03-25 17:56 ` Konstantin Volckov
  0 siblings, 1 reply; 2+ messages in thread
From: Marat Khairullin @ 2002-03-22 21:52 UTC (permalink / raw)
  To: ALTLinux Sisyphus

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sisyphus] iptables.c or sscanf error
  2002-03-22 21:52 [sisyphus] iptables.c or sscanf error Marat Khairullin
@ 2002-03-25 17:56 ` Konstantin Volckov
  0 siblings, 0 replies; 2+ messages in thread
From: Konstantin Volckov @ 2002-03-25 17:56 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

On Sat, 23 Mar 2002 00:52:17 +0300
Marat Khairullin <xmm@rambler.ru> wrote:

Hi!

Спасибо за патч - будет наложен на следующий релиз.

[skip]

> -- 
> Marat Khairullin        8->     mailto:xmm@rambler.ru
>                	                Marat.Khairullin@f92.n5049.z2.fid
>                	                onet.org


-- 
Успехов,
Konstantin

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-25 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-22 21:52 [sisyphus] iptables.c or sscanf error Marat Khairullin
2002-03-25 17:56 ` Konstantin Volckov

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