[sisyphus] iptables.c or sscanf error
Marat Khairullin
=?iso-8859-1?q?xmm_=CE=C1_rambler=2Eru?=
Сб Мар 23 00:52:17 MSK 2002
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
Подробная информация о списке рассылки Sisyphus