diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-04-15 06:11:23 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-04-15 06:11:23 +0000 |
commit | d80f43d15f4e1fb9c8c45fdafc7f0c8838573047 (patch) | |
tree | a2f4cbd0b328b674326665e96c88fd493ef8dc00 /package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch | |
parent | ece27874c17a3f84bae9af15399c0d92beb2620e (diff) | |
download | mtk-20170518-d80f43d15f4e1fb9c8c45fdafc7f0c8838573047.zip mtk-20170518-d80f43d15f4e1fb9c8c45fdafc7f0c8838573047.tar.gz mtk-20170518-d80f43d15f4e1fb9c8c45fdafc7f0c8838573047.tar.bz2 |
update iptables to 1.4.0 (2.6 kernels only), refresh kernel patches
SVN-Revision: 10843
Diffstat (limited to 'package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch')
-rw-r--r-- | package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch b/package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch new file mode 100644 index 0000000..c88f759 --- /dev/null +++ b/package/iptables/patches/1.3.8/003-layer7_2.17_pktmatch.patch @@ -0,0 +1,42 @@ +Index: iptables-1.3.8/extensions/libipt_layer7.c +=================================================================== +--- iptables-1.3.8.orig/extensions/libipt_layer7.c ++++ iptables-1.3.8/extensions/libipt_layer7.c +@@ -37,7 +37,8 @@ static void help(void) + "LAYER7 match v%s options:\n" + "--l7dir <directory> : Look for patterns here instead of /etc/l7-protocols/\n" + " (--l7dir must be specified before --l7proto if used!)\n" +- "--l7proto [!] <name> : Match the protocol defined in /etc/l7-protocols/name.pat\n", ++ "--l7proto [!] <name> : Match the protocol defined in /etc/l7-protocols/name.pat\n" ++ "--l7pkt : Skip connection tracking and match individual packets\n", + IPTABLES_VERSION); + fputc('\n', stdout); + } +@@ -45,6 +46,7 @@ static void help(void) + static struct option opts[] = { + { .name = "l7proto", .has_arg = 1, .flag = 0, .val = '1' }, + { .name = "l7dir", .has_arg = 1, .flag = 0, .val = '2' }, ++ { .name = "l7pkt", .has_arg = 0, .flag = 0, .val = '3' }, + { .name = 0 } + }; + +@@ -333,6 +335,9 @@ static int parse(int c, char **argv, int + + *flags = 1; + break; ++ case '3': ++ layer7info->pkt = 1; ++ break; + + default: + return 0; +@@ -365,6 +370,9 @@ static void print(const struct ipt_ip *i + + print_protocol(((struct ipt_layer7_info *)match->data)->protocol, + ((struct ipt_layer7_info *)match->data)->invert, numeric); ++ ++ if (((struct ipt_layer7_info *)match->data)->pkt) ++ printf("l7pkt "); + } + /* Saves the union ipt_matchinfo in parsable form to stdout. */ + static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) |