Line
Link Here
|
0 |
-- ipt_ipp2p.c.orig 2007-05-22 10:15:29.000000000 -0300 |
0 |
++ ipt_ipp2p.c 2007-05-22 10:15:56.000000000 -0300 |
Lines 2-8
Link Here
|
2 |
#include <linux/modversions.h> |
2 |
#include <linux/modversions.h> |
3 |
#endif |
3 |
#endif |
4 |
#include <linux/module.h> |
4 |
#include <linux/module.h> |
5 |
#include <linux/netfilter_ipv4/ip_tables.h> |
5 |
#include <linux/netfilter/x_tables.h> |
6 |
#include <linux/version.h> |
6 |
#include <linux/version.h> |
7 |
//#include <linux/netfilter_ipv4/ipt_ipp2p.h> |
7 |
//#include <linux/netfilter_ipv4/ipt_ipp2p.h> |
8 |
#include "ipt_ipp2p.h" |
8 |
#include "ipt_ipp2p.h" |
Lines 843-849
Link Here
|
843 |
} |
843 |
} |
844 |
static struct ipt_match ipp2p_match = { |
844 |
static struct xt_match ipp2p_match = { |
845 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) |
845 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) |
846 |
{ NULL, NULL }, |
846 |
{ NULL, NULL }, |
847 |
"ipp2p", |
847 |
"ipp2p", |
Lines 854-859
Link Here
|
854 |
#endif |
854 |
#endif |
855 |
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) |
855 |
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) |
856 |
.name = "ipp2p", |
856 |
.name = "ipp2p", |
|
|
857 |
.family = AF_INET, |
857 |
.match = &match, |
858 |
.match = &match, |
858 |
.checkentry = &checkentry, |
859 |
.checkentry = &checkentry, |
859 |
.me = THIS_MODULE, |
860 |
.me = THIS_MODULE, |
Lines 871-882
Link Here
|
871 |
static int __init init(void) |
872 |
static int __init init(void) |
872 |
{ |
873 |
{ |
873 |
printk(KERN_INFO "IPP2P v%s loading\n", IPP2P_VERSION); |
874 |
printk(KERN_INFO "IPP2P v%s loading\n", IPP2P_VERSION); |
874 |
return ipt_register_match(&ipp2p_match); |
875 |
return xt_register_match(&ipp2p_match); |
875 |
} |
876 |
} |
876 |
static void __exit fini(void) |
877 |
static void __exit fini(void) |
877 |
{ |
878 |
{ |
878 |
ipt_unregister_match(&ipp2p_match); |
879 |
xt_unregister_match(&ipp2p_match); |
879 |
printk(KERN_INFO "IPP2P v%s unloaded\n", IPP2P_VERSION); |
880 |
printk(KERN_INFO "IPP2P v%s unloaded\n", IPP2P_VERSION); |
880 |
} |
881 |
} |