1 Index: iptables-1.3.8/extensions/libipt_layer7.c
2 ===================================================================
3 --- iptables-1.3.8.orig/extensions/libipt_layer7.c
4 +++ iptables-1.3.8/extensions/libipt_layer7.c
5 @@ -37,7 +37,8 @@ static void help(void)
6 "LAYER7 match v%s options:\n"
7 "--l7dir <directory> : Look for patterns here instead of /etc/l7-protocols/\n"
8 " (--l7dir must be specified before --l7proto if used!)\n"
9 - "--l7proto [!] <name> : Match the protocol defined in /etc/l7-protocols/name.pat\n",
10 + "--l7proto [!] <name> : Match the protocol defined in /etc/l7-protocols/name.pat\n"
11 + "--l7pkt : Skip connection tracking and match individual packets\n",
15 @@ -45,6 +46,7 @@ static void help(void)
16 static struct option opts[] = {
17 { .name = "l7proto", .has_arg = 1, .flag = 0, .val = '1' },
18 { .name = "l7dir", .has_arg = 1, .flag = 0, .val = '2' },
19 + { .name = "l7pkt", .has_arg = 0, .flag = 0, .val = '3' },
23 @@ -333,6 +335,9 @@ static int parse(int c, char **argv, int
28 + layer7info->pkt = 1;
33 @@ -365,6 +370,9 @@ static void print(const struct ipt_ip *i
35 print_protocol(((struct ipt_layer7_info *)match->data)->protocol,
36 ((struct ipt_layer7_info *)match->data)->invert, numeric);
38 + if (((struct ipt_layer7_info *)match->data)->pkt)
41 /* Saves the union ipt_matchinfo in parsable form to stdout. */
42 static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)