Changeset b917538 in freewrt for target/linux/generic-2.4/patches
- Timestamp:
- Oct 1, 2006, 10:31:51 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- edaeca5
- Parents:
- 2f09cbe
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
target/linux/generic-2.4/patches/601-netfilter_ipp2p.patch
r2f09cbe rb917538 1 diff - urN linux.old/include/linux/netfilter_ipv4/ipt_ipp2p.h linux.dev/include/linux/netfilter_ipv4/ipt_ipp2p.h2 --- linux .old/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +01003 +++ linux .dev/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-03-23 14:37:56.000000000 +01001 diff -Nur linux-2.4.33.3/include/linux/netfilter_ipv4/ipt_ipp2p.h linux-2.4.33.3.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 2 --- linux-2.4.33.3/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +0100 3 +++ linux-2.4.33.3.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-09-30 13:48:52.000000000 +0200 4 4 @@ -0,0 +1,31 @@ 5 5 +#ifndef __IPT_IPP2P_H 6 6 +#define __IPT_IPP2P_H 7 +#define IPP2P_VERSION "0.8. 1_rc1"7 +#define IPP2P_VERSION "0.8.2" 8 8 + 9 9 +struct ipt_p2p_info { … … 34 34 +#define IPP2P_WASTE (1 << 15) 35 35 +#define IPP2P_XDCC (1 << 16) 36 diff - urN linux.old/net/ipv4/netfilter/Config.in linux.dev/net/ipv4/netfilter/Config.in37 --- linux .old/net/ipv4/netfilter/Config.in 2006-03-23 14:35:20.000000000 +010038 +++ linux .dev/net/ipv4/netfilter/Config.in 2006-03-23 14:35:58.000000000 +010039 @@ -2 9,6 +29,7 @@36 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/Config.in linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Config.in 37 --- linux-2.4.33.3/net/ipv4/netfilter/Config.in 2006-08-31 19:03:20.000000000 +0200 38 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Config.in 2006-09-30 13:45:19.000000000 +0200 39 @@ -26,6 +26,7 @@ 40 40 dep_tristate ' TOS match support' CONFIG_IP_NF_MATCH_TOS $CONFIG_IP_NF_IPTABLES 41 41 dep_tristate ' recent match support' CONFIG_IP_NF_MATCH_RECENT $CONFIG_IP_NF_IPTABLES … … 45 45 dep_tristate ' DSCP match support' CONFIG_IP_NF_MATCH_DSCP $CONFIG_IP_NF_IPTABLES 46 46 47 diff -urN linux.old/net/ipv4/netfilter/Makefile linux.dev/net/ipv4/netfilter/Makefile 48 --- linux.old/net/ipv4/netfilter/Makefile 2006-03-23 14:35:20.000000000 +0100 49 +++ linux.dev/net/ipv4/netfilter/Makefile 2006-03-23 14:35:58.000000000 +0100 50 @@ -76,6 +76,7 @@ 51 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 52 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 53 obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o 54 +obj-$(CONFIG_IP_NF_MATCH_IPP2P) += ipt_ipp2p.o 55 56 obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o 57 obj-$(CONFIG_IP_NF_MATCH_MULTIPORT) += ipt_multiport.o 58 diff -urN linux.old/net/ipv4/netfilter/ipt_ipp2p.c linux.dev/net/ipv4/netfilter/ipt_ipp2p.c 59 --- linux.old/net/ipv4/netfilter/ipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 60 +++ linux.dev/net/ipv4/netfilter/ipt_ipp2p.c 2006-03-23 14:37:18.000000000 +0100 61 @@ -0,0 +1,868 @@ 47 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/ipt_ipp2p.c linux-2.4.33.3.ipp2p/net/ipv4/netfilter/ipt_ipp2p.c 48 --- linux-2.4.33.3/net/ipv4/netfilter/ipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 49 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/ipt_ipp2p.c 2006-09-30 13:47:58.000000000 +0200 50 @@ -0,0 +1,894 @@ 62 51 +#if defined(MODVERSIONS) 63 52 +#include <linux/modversions.h> … … 790 779 + const struct net_device *in, 791 780 + const struct net_device *out, 781 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 782 + const struct xt_match *mymatch, 792 783 + const void *matchinfo, 793 784 + int offset, 785 + unsigned int myprotoff, 786 +#else 787 + const void *matchinfo, 788 + int offset, 789 +#endif 794 790 + 795 791 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) … … 878 874 +static int 879 875 +checkentry(const char *tablename, 880 + const struct ipt_ip *ip, 881 + void *matchinfo, 882 + unsigned int matchsize, 883 + unsigned int hook_mask) 876 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 877 + const void *ip, 878 + const struct xt_match *mymatch, 879 +#else 880 + const struct ipt_ip *ip, 881 +#endif 882 + void *matchinfo, 883 + unsigned int matchsize, 884 + unsigned int hook_mask) 884 885 +{ 885 886 + /* Must specify -p tcp */ … … 892 893 + 893 894 + 894 + 895 +// TODO: find out what this structure is for (scheme taken 896 +// from kernel sources) 897 +// content seems to have a length of 8 bytes 898 +// (at least on my x86 machine) 899 +struct ipp2p_match_info { 900 + long int dunno_what_this_is_for; 901 + long int i_also_dunno_what_this_is_for; 902 +}; 895 903 + 896 904 +static struct ipt_match ipp2p_match = { … … 903 911 + THIS_MODULE 904 912 +#endif 905 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)913 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) 906 914 + .name = "ipp2p", 907 915 + .match = &match, 908 916 + .checkentry = &checkentry, 909 917 + .me = THIS_MODULE, 918 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 919 + .name = "ipp2p", 920 + .match = &match, 921 + .family = AF_INET, 922 + .matchsize = sizeof(struct ipp2p_match_info), 923 + .checkentry = &checkentry, 924 + .me = THIS_MODULE, 910 925 +#endif 911 926 +}; … … 928 943 + 929 944 + 945 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/Makefile linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Makefile 946 --- linux-2.4.33.3/net/ipv4/netfilter/Makefile 2006-08-31 19:03:20.000000000 +0200 947 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Makefile 2006-09-30 13:45:19.000000000 +0200 948 @@ -67,6 +67,7 @@ 949 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 950 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 951 obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o 952 +obj-$(CONFIG_IP_NF_MATCH_IPP2P) += ipt_ipp2p.o 953 954 obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o 955 obj-$(CONFIG_IP_NF_MATCH_MULTIPORT) += ipt_multiport.o
Note:
See TracChangeset
for help on using the changeset viewer.
