updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ipp2p / ipp2p-0.8.2-iptables-1.4.1.patch
blobe4def9fdc6191d6e383f90f4538921cb7e1aaa73
1 diff -ruN ipp2p-0.8.2.orig/libipt_ipp2p.c ipp2p-0.8.2/libipt_ipp2p.c
2 --- ipp2p-0.8.2.orig/libipt_ipp2p.c 2009-02-06 15:24:09.000000000 +0100
3 +++ ipp2p-0.8.2/libipt_ipp2p.c 2009-02-06 15:39:25.000000000 +0100
4 @@ -58,7 +58,7 @@
5 { "waste", 0, 0, 'h' },
6 { "xdcc", 0, 0, 'i' },
7 { "debug", 0, 0, 'j' },
8 - {0}
9 + { .name = NULL }
13 @@ -373,13 +373,14 @@
16 static
17 -struct iptables_match ipp2p=
18 +struct xtables_match ipp2p=
20 .next = NULL,
21 .name = "ipp2p",
22 + .family = PF_INET,
23 .version = IPTABLES_VERSION,
24 - .size = IPT_ALIGN(sizeof(struct ipt_p2p_info)),
25 - .userspacesize = IPT_ALIGN(sizeof(struct ipt_p2p_info)),
26 + .size = XT_ALIGN(sizeof(struct ipt_p2p_info)),
27 + .userspacesize = XT_ALIGN(sizeof(struct ipt_p2p_info)),
28 .help = &help,
29 .init = &init,
30 .parse = &parse,
31 @@ -393,6 +394,6 @@
33 void _init(void)
35 - register_match(&ipp2p);
36 + xtables_register_match(&ipp2p);