]> git.proxmox.com Git - mirror_iproute2.git/blob - Patches/symbol_exports.dif
(Logical change 1.3)
[mirror_iproute2.git] / Patches / symbol_exports.dif
1 diff -ur ../vger3-010830/linux/net/ipv6/tcp_ipv6.c linux/net/ipv6/tcp_ipv6.c
2 --- ../vger3-010830/linux/net/ipv6/tcp_ipv6.c Wed Jun 13 21:14:05 2001
3 +++ linux/net/ipv6/tcp_ipv6.c Fri Oct 12 06:59:07 2001
4 @@ -339,13 +339,18 @@
5 return tcp_v6_lookup_listener(daddr, hnum, dif);
6 }
7
8 -#define tcp_v6_lookup(sa, sp, da, dp, dif) \
9 -({ struct sock *___sk; \
10 - local_bh_disable(); \
11 - ___sk = __tcp_v6_lookup((sa),(sp),(da),ntohs(dp),(dif)); \
12 - local_bh_enable(); \
13 - ___sk; \
14 -})
15 +__inline__ struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport,
16 + struct in6_addr *daddr, u16 dport,
17 + int dif)
18 +{
19 + struct sock *sk;
20 +
21 + local_bh_disable();
22 + sk = __tcp_v6_lookup(saddr, sport, daddr, ntohs(dport), dif);
23 + local_bh_enable();
24 +
25 + return sk;
26 +}
27
28
29 /*
30 diff -ur ../vger3-010830/linux/net/netsyms.c linux/net/netsyms.c
31 --- ../vger3-010830/linux/net/netsyms.c Sun Aug 19 22:01:45 2001
32 +++ linux/net/netsyms.c Fri Oct 12 07:59:17 2001
33 @@ -72,6 +72,11 @@
34
35 extern int netdev_finish_unregister(struct net_device *dev);
36
37 +extern struct sock *tcp_v6_lookup(struct in6_addr *saddr, u16 sport,
38 + struct in6_addr *daddr, u16 dport,
39 + int dif);
40 +extern struct sock *tcp_v4_lookup(u32 saddr, u16 sport, u32 daddr, u16 dport, int dif);
41 +
42 #include <linux/rtnetlink.h>
43
44 #ifdef CONFIG_IPX_MODULE
45 @@ -284,7 +289,11 @@
46 EXPORT_SYMBOL(ndisc_mc_map);
47 EXPORT_SYMBOL(register_inet6addr_notifier);
48 EXPORT_SYMBOL(unregister_inet6addr_notifier);
49 +EXPORT_SYMBOL(tcp_v6_lookup);
50 #endif
51 +EXPORT_SYMBOL(tcp_v4_lookup);
52 +EXPORT_SYMBOL(tcp_timewait_cachep);
53 +EXPORT_SYMBOL(tcp_hashinfo);
54 #if defined (CONFIG_IPV6_MODULE) || defined (CONFIG_KHTTPD) || defined (CONFIG_KHTTPD_MODULE)
55 /* inet functions common to v4 and v6 */
56 EXPORT_SYMBOL(inet_release);