X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/5a3b9184c8d1ab6c494ae62272e5d6c6fcd874ff..951e323abd5ad7d7e253d04d6ff8c0a7a2c52b82:/cli.c diff --git a/cli.c b/cli.c index 3d5e223..5815658 100644 --- a/cli.c +++ b/cli.c @@ -2,7 +2,7 @@ // vim: sw=8 ts=8 char const *cvs_name = "$Name: $"; -char const *cvs_id_cli = "$Id: cli.c,v 1.35 2004/11/29 03:55:19 bodea Exp $"; +char const *cvs_id_cli = "$Id: cli.c,v 1.37 2004/11/29 12:36:54 bodea Exp $"; #include #include @@ -2688,6 +2688,12 @@ ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char * if (a < argc && MATCH("fragments", argv[a])) { + if (rule.src_ports.op || rule.dst_ports.op || rule.tcp_flag_op) + { + cli_print(cli, "Can't specify \"fragments\" on rules with layer 4 matches"); + return NULL; + } + rule.frag = 1; a++; }