]> git.pld-linux.org Git - packages/iptables.git/blame - iptables-1.2.9rc1-ipt_p2p.patch
- require llh 2.6.7.0-3 (previous versions had broken ip{,6}t API)
[packages/iptables.git] / iptables-1.2.9rc1-ipt_p2p.patch
CommitLineData
3cf2413c 1diff -Naur iptables-1.2.9rc1.orig/extensions/libipt_p2p.c iptables-1.2.9rc1/extensions/libipt_p2p.c
2--- iptables-1.2.9rc1.orig/extensions/libipt_p2p.c 1970-01-01 01:00:00.000000000 +0100
3+++ iptables-1.2.9rc1/extensions/libipt_p2p.c 2003-11-04 22:39:29.000000000 +0100
4@@ -0,0 +1,63 @@
5+/* Shared library add-on to iptables for unclean. */
6+#include <stdio.h>
7+#include <stdlib.h>
8+#include <getopt.h>
9+#include <iptables.h>
10+
11+/* Function which prints out usage message. */
12+static void
13+help(void)
14+{
15+ printf(
16+"p2p v%s takes no options\n"
17+"\n", IPTABLES_VERSION);
18+}
19+
20+static struct option opts[] = {
21+ {0}
22+};
23+
24+/* Initialize the match. */
25+static void
26+init(struct ipt_entry_match *m, unsigned int *nfcache)
27+{
28+ /* Can't cache this. */
29+ *nfcache |= NFC_UNKNOWN;
30+}
31+
32+/* Function which parses command options; returns true if it
33+ ate an option */
34+static int
35+parse(int c, char **argv, int invert, unsigned int *flags,
36+ const struct ipt_entry *entry,
37+ unsigned int *nfcache,
38+ struct ipt_entry_match **match)
39+{
40+ return 0;
41+}
42+
43+/* Final check; must have specified --mac. */
44+static void final_check(unsigned int flags)
45+{
46+}
47+
48+static
49+struct iptables_match p2p
50+= { NULL,
51+ "p2p",
52+ IPTABLES_VERSION,
53+ IPT_ALIGN(0),
54+ IPT_ALIGN(0),
55+ &help,
56+ &init,
57+ &parse,
58+ &final_check,
59+ NULL, /* print */
60+ NULL, /* save */
61+ opts
62+};
63+
64+void _init(void)
65+{
66+ register_match(&p2p);
67+}
68diff -Naur iptables-1.2.9rc1.orig/extensions/Makefile iptables-1.2.9rc1/extensions/Makefile
69--- iptables-1.2.9rc1.orig/extensions/Makefile 2003-11-04 22:41:05.000000000 +0100
70+++ iptables-1.2.9rc1/extensions/Makefile 2003-11-04 22:40:07.000000000 +0100
71@@ -5,7 +5,7 @@
72 # header files are present in the include/linux directory of this iptables
73 # package (HW)
74 #
75-PF_EXT_SLIB:=ah connlimit conntrack dscp ecn esp helper stealth icmp iprange length limit mac mark multiport owner physdev pkttype realm rpc standard state tcp tcpmss tos ttl udp unclean CLASSIFY CONNMARK DNAT DSCP ECN LOG MARK MASQUERADE MIRROR NETMAP NOTRACK REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS TRACE TTL ULOG IMQ
76+PF_EXT_SLIB:=ah connlimit conntrack dscp ecn esp helper stealth icmp iprange length limit mac mark multiport owner physdev pkttype realm rpc standard state tcp tcpmss tos ttl udp unclean CLASSIFY CONNMARK DNAT DSCP ECN LOG MARK MASQUERADE MIRROR NETMAP NOTRACK REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS TRACE TTL ULOG IMQ p2p
77 PF6_EXT_SLIB:=eui64 hl icmpv6 length limit mac mark multiport owner standard tcp udp HL LOG MARK TRACE
78
79 # Optionals
This page took 0.066349 seconds and 4 git commands to generate.