owner-socketlookup patch linux 2.6.14+
Subsystems (3)
Hello,
I try to fix the owner-socketlookup patch for the current kernel.
Compiling 2.6.15.1 with this patch shows this error
...
CC init/version.o LD init/built-in.o LD .tmp_vmlinux1
net/built-in.o:(__ksymtab+0xc70): undefined reference to `udp_v4_lookup'
make: *** [.tmp_vmlinux1] Error 1
Could anybody help me fixing this (i hope the last) error in my patch?
--
Michael
include/net/udp.h +2 -0
@@ -74,6 +74,8 @@extern unsigned int udp_poll (struct file *file,struct socket *sock,poll_table *wait); +extern struct sock *udp_v4_lookup (u32 saddr,u16 sport,u32 daddr,u16 dport,int dif); + DECLARE_SNMP_STAT(struct udp_mib, udp_statistics);#define UDP_INC_STATS (field) SNMP_INC_STATS(udp_statistics, field)#define UDP_INC_STATS_BH (field) SNMP_INC_STATS_BH(udp_statistics, field)
net/ipv4/netfilter/ipt_owner.c +51 -12
92 lines not on this page · raw message
net/ipv4/udp.c +2 -1
@@ -265,7 +265,7 @@return result; } -static __inline__struct sock *udp_v4_lookup (u32 saddr,u16 sport, +extern __inline__struct sock *udp_v4_lookup (u32 saddr,u16 sport,u32 daddr,u16 dport,int dif) {struct sock *sk;
@@ -1566,6 +1566,7 @@EXPORT_SYMBOL (udp_prot);EXPORT_SYMBOL (udp_sendmsg);EXPORT_SYMBOL (udp_poll); +EXPORT_SYMBOL (udp_v4_lookup);#ifdef CONFIG_PROC_FS EXPORT_SYMBOL (udp_proc_register);