Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 120021 Details for
Bug 179425
net-firewall/ipp2p-0.8.2-r2 doesn't work with kernel 2.6.21
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Pragmatic fix
ipp2p-0.8.2-kernel-2.6.21.patch (text/plain), 2.02 KB, created by
Federico Cuello
on 2007-05-22 19:10:14 UTC
(
hide
)
Description:
Pragmatic fix
Filename:
MIME Type:
Creator:
Federico Cuello
Created:
2007-05-22 19:10:14 UTC
Size:
2.02 KB
patch
obsolete
>--- ipp2p-0.8.2.orig/ipt_ipp2p.c 2006-09-27 06:52:00.000000000 -0300 >+++ ipp2p-0.8.2/ipt_ipp2p.c 2007-05-22 15:58:57.000000000 -0300 >@@ -2,9 +2,18 @@ > #include <linux/modversions.h> > #endif > #include <linux/module.h> >-#include <linux/netfilter_ipv4/ip_tables.h> > #include <linux/version.h> >+ >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) >+# include <linux/netfilter/x_tables.h> >+# define ipt_register_match xt_register_match >+# define ipt_unregister_match xt_unregister_match >+# define ipt_match xt_match >+#else >+# include <linux/netfilter_ipv4/ip_tables.h> > //#include <linux/netfilter_ipv4/ipt_ipp2p.h> >+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) */ >+ > #include "ipt_ipp2p.h" > #include <net/tcp.h> > #include <net/udp.h> >@@ -831,7 +840,9 @@ > const struct ipt_ip *ip, > #endif > void *matchinfo, >+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) > unsigned int matchsize, >+#endif > unsigned int hook_mask) > { > /* Must specify -p tcp */ >@@ -843,15 +854,6 @@ > } > > >-// TODO: find out what this structure is for (scheme taken >-// from kernel sources) >-// content seems to have a length of 8 bytes >-// (at least on my x86 machine) >-struct ipp2p_match_info { >- long int dunno_what_this_is_for; >- long int i_also_dunno_what_this_is_for; >-}; >- > static struct ipt_match ipp2p_match = { > #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) > { NULL, NULL }, >@@ -860,17 +862,16 @@ > &checkentry, > NULL, > THIS_MODULE >-#endif >-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) >+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) > .name = "ipp2p", > .match = &match, > .checkentry = &checkentry, > .me = THIS_MODULE, >-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) >+#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) */ > .name = "ipp2p", > .match = &match, > .family = AF_INET, >- .matchsize = sizeof(struct ipp2p_match_info), >+ .matchsize = XT_ALIGN(sizeof(struct ipt_p2p_info)), > .checkentry = &checkentry, > .me = THIS_MODULE, > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179425
:
120001
| 120021