From: bodea Date: Mon, 14 Nov 2005 09:49:01 +0000 (+0000) Subject: exclude counter when comparing filter rules X-Git-Tag: release_2_1_11~2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/e6208f516d2437f7effeee7305bd3ecae93e4c11?ds=inline;hp=0dc8fc58d5e86e164c3f85e63cad8d270d12cee2 exclude counter when comparing filter rules --- diff --git a/Changes b/Changes index 2e4efa7..40f7944 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,6 @@ * Mon Nov 14 2005 Brendan O'Dea 2.1.11 - Fix fragment handling in ip_filter. +- Exclude counter when comparing filter rules. * Sat Nov 5 2005 Brendan O'Dea 2.1.10 - Add scripts/l2tpns-capture. diff --git a/cli.c b/cli.c index 80b92a9..c2e0c13 100644 --- a/cli.c +++ b/cli.c @@ -2,9 +2,10 @@ // vim: sw=8 ts=8 char const *cvs_name = "$Name: $"; -char const *cvs_id_cli = "$Id: cli.c,v 1.66 2005/09/01 06:59:06 bodea Exp $"; +char const *cvs_id_cli = "$Id: cli.c,v 1.67 2005/11/14 09:49:01 bodea Exp $"; #include +#include #include #include #include @@ -2884,7 +2885,7 @@ static int cmd_ip_access_list_rule(struct cli_def *cli, char *command, char **ar return CLI_OK; } - if (!memcmp(&ip_filters[filt].rules[i], rule, sizeof(*rule))) + if (!memcmp(&ip_filters[filt].rules[i], rule, offsetof(ip_filter_rulet, counter))) return CLI_OK; }