Hi,
On Tue, 2015-04-21 at 11:30 +0200, Thiemo van Engelen wrote:
> When new iptables are commited, the counters in the kernel are reset and
> the values of the old tables are returned. By keeping track of the original
> index of an iptable entry, the new table can be updated with the original
> counter values.
> When a policy of a builtin chain is changed, its counter value is reset.
> When new rules are added, their counter is preset to 0.
Something went a bit wrong in this patch. Compiling I get lots of:
CC src/src_connmand-plugin.o
In file included from src/connman.h:129:0,
from src/iptables.c:38:
src/iptables.c: In function ‘print_entry’:
./include/connman/log.h:76:16: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 8 has type ‘__u64’ [-Werror=format=]
static struct connman_debug_desc __connman_debug_desc \
^
src/iptables.c:256:2: note: in expansion of macro ‘DBG’
DBG("entry %p hook %u offset %u size %u packets %"PRIu64" bytes %"PRIu64,
^
./include/connman/log.h:76:16: error: format ‘%lu’ expects argument of type
‘long unsigned int’, but argument 9 has type ‘__u64’ [-Werror=format=]
static struct connman_debug_desc __connman_debug_desc \
^
src/iptables.c:256:2: note: in expansion of macro ‘DBG’
DBG("entry %p hook %u offset %u size %u packets %"PRIu64" bytes %"PRIu64,
^
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman