diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-27 23:54:12 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-27 23:54:12 +0000 |
commit | d3e71cb08747743fce908122bab08b479eb403a5 (patch) | |
tree | cbec6948fdbdee9af81cf3ecfb504070d2745d7b /net/ipv4 | |
parent | fe7ff1706e323d0e5ed83972960a1ecc1ee538b3 (diff) |
Merge with Linux 2.3.99-pre3.
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ipip.c | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/Makefile | 6 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_ftp.c | 3 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_standalone.c | 3 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_nat_standalone.c | 3 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_queue.c | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 8 | ||||
-rw-r--r-- | net/ipv4/tcp.c | 15 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 11 | ||||
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
10 files changed, 22 insertions, 35 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 2823c2c7e..c3f3b29f7 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -1,7 +1,7 @@ /* * Linux NET3: IP/IP protocol decoder. * - * Version: $Id: ipip.c,v 1.31 2000/03/17 14:41:51 davem Exp $ + * Version: $Id: ipip.c,v 1.32 2000/03/21 06:13:54 davem Exp $ * * Authors: * Sam Lantinga (slouken@cs.ucdavis.edu) 02/01/95 diff --git a/net/ipv4/netfilter/Makefile b/net/ipv4/netfilter/Makefile index 41a61e010..c507acc31 100644 --- a/net/ipv4/netfilter/Makefile +++ b/net/ipv4/netfilter/Makefile @@ -21,6 +21,8 @@ OX_OBJS += ip_conntrack_standalone.o O_OBJS += $(IP_NF_CONNTRACK_OBJ) else ifeq ($(CONFIG_IP_NF_CONNTRACK),m) + MI_OBJS += $(IP_NF_CONNTRACK_OBJ) + MIX_OBJS += ip_conntrack_standalone.o M_OBJS += ip_conntrack.o endif endif @@ -37,7 +39,7 @@ ifeq ($(CONFIG_IP_NF_FTP),y) OX_OBJS += ip_conntrack_ftp.o else ifeq ($(CONFIG_IP_NF_FTP),m) - M_OBJS += ip_conntrack_ftp.o + MX_OBJS += ip_conntrack_ftp.o endif endif @@ -129,6 +131,8 @@ O_OBJS += ip_nat_rule.o $(IP_NF_NAT_OBJ) endif else ifeq ($(CONFIG_IP_NF_NAT),m) + MI_OBJS += ip_nat_rule.o $(IP_NF_NAT_OBJ) + MIX_OBJS += ip_nat_standalone.o M_OBJS += iptable_nat.o ifeq ($(CONFIG_IP_NF_FTP),m) M_OBJS += ip_nat_ftp.o diff --git a/net/ipv4/netfilter/ip_conntrack_ftp.c b/net/ipv4/netfilter/ip_conntrack_ftp.c index 9137d13ea..23ccf74cf 100644 --- a/net/ipv4/netfilter/ip_conntrack_ftp.c +++ b/net/ipv4/netfilter/ip_conntrack_ftp.c @@ -1,7 +1,4 @@ /* FTP extension for IP connection tracking. */ -#ifdef MODULE -#define EXPORT_SYMTAB -#endif #include <linux/module.h> #include <linux/netfilter.h> #include <linux/ip.h> diff --git a/net/ipv4/netfilter/ip_conntrack_standalone.c b/net/ipv4/netfilter/ip_conntrack_standalone.c index ce79c3263..a69be542d 100644 --- a/net/ipv4/netfilter/ip_conntrack_standalone.c +++ b/net/ipv4/netfilter/ip_conntrack_standalone.c @@ -7,9 +7,6 @@ /* (c) 1999 Paul `Rusty' Russell. Licenced under the GNU General Public Licence. */ -#ifdef MODULE -#define EXPORT_SYMTAB -#endif #include <linux/types.h> #include <linux/ip.h> #include <linux/netfilter.h> diff --git a/net/ipv4/netfilter/ip_nat_standalone.c b/net/ipv4/netfilter/ip_nat_standalone.c index bf278d6f9..603111063 100644 --- a/net/ipv4/netfilter/ip_nat_standalone.c +++ b/net/ipv4/netfilter/ip_nat_standalone.c @@ -7,9 +7,6 @@ /* (c) 1999 Paul `Rusty' Russell. Licenced under the GNU General Public Licence. */ -#ifdef MODULE -#define EXPORT_SYMTAB -#endif #include <linux/types.h> #include <linux/ip.h> #include <linux/netfilter.h> diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c index d5ca01aa6..532538321 100644 --- a/net/ipv4/netfilter/ip_queue.c +++ b/net/ipv4/netfilter/ip_queue.c @@ -491,7 +491,7 @@ netlink_send_peer(ipq_queue_element_t *e) skb = netlink_build_message(e, &status); if (skb == NULL) return status; - return netlink_unicast(nfnl, skb, nlq->peer.pid, 0); + return netlink_unicast(nfnl, skb, nlq->peer.pid, MSG_DONTWAIT); } static struct sk_buff * diff --git a/net/ipv4/route.c b/net/ipv4/route.c index c683f2f23..afab828fb 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -5,7 +5,7 @@ * * ROUTE - implementation of the IP router. * - * Version: $Id: route.c,v 1.82 2000/03/17 14:41:52 davem Exp $ + * Version: $Id: route.c,v 1.83 2000/03/23 05:34:13 davem Exp $ * * Authors: Ross Biro, <bir7@leland.Stanford.Edu> * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> @@ -205,9 +205,6 @@ static __inline__ unsigned rt_hash_code(u32 daddr, u32 saddr, u8 tos) return (hash^(hash>>8)) & rt_hash_mask; } -#ifndef CONFIG_PROC_FS -static int rt_cache_get_info(char *buffer, char **start, off_t offset, int length) { return 0; } -#else static int rt_cache_get_info(char *buffer, char **start, off_t offset, int length) { int len=0; @@ -267,7 +264,6 @@ done: len = length; return len; } -#endif static __inline__ void rt_free(struct rtable *rt) { @@ -2204,7 +2200,6 @@ ctl_table ipv4_route_table[] = { #ifdef CONFIG_NET_CLS_ROUTE struct ip_rt_acct *ip_rt_acct; -#ifdef CONFIG_PROC_FS static int ip_rt_acct_read(char *buffer, char **start, off_t offset, int length, int *eof, void *data) { @@ -2243,7 +2238,6 @@ static int ip_rt_acct_read(char *buffer, char **start, off_t offset, return 0; } #endif -#endif void __init ip_rt_init(void) { diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 7d3e49bed..471eb9e70 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -5,7 +5,7 @@ * * Implementation of the Transmission Control Protocol(TCP). * - * Version: $Id: tcp.c,v 1.164 2000/03/08 19:36:40 davem Exp $ + * Version: $Id: tcp.c,v 1.165 2000/03/23 05:30:32 davem Exp $ * * Authors: Ross Biro, <bir7@leland.Stanford.Edu> * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> @@ -1337,20 +1337,21 @@ int tcp_recvmsg(struct sock *sk, struct msghdr *msg, break; } - if (sk->done) { - copied = -ENOTCONN; + if (sk->shutdown & RCV_SHUTDOWN) { + if (!(flags&MSG_PEEK)) + sk->done = 1; break; } if (sk->state == TCP_CLOSE) { - if (!(flags&MSG_PEEK)) + if (sk->done) { + copied = -ENOTCONN; + break; + } else if (!(flags&MSG_PEEK)) sk->done = 1; break; } - if (sk->shutdown & RCV_SHUTDOWN) - break; - if (!timeo) { copied = -EAGAIN; break; diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index d431c682c..575ec3036 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -5,7 +5,7 @@ * * Implementation of the Transmission Control Protocol(TCP). * - * Version: $Id: tcp_input.c,v 1.189 2000/02/27 19:52:55 davem Exp $ + * Version: $Id: tcp_input.c,v 1.190 2000/03/21 19:34:23 davem Exp $ * * Authors: Ross Biro, <bir7@leland.Stanford.Edu> * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> @@ -1944,10 +1944,8 @@ queue_and_out: if (eaten) { kfree_skb(skb); - } else if (!sk->dead) { - wake_up_interruptible(sk->sleep); - sock_wake_async(sk->socket,1, POLL_IN); - } + } else + sk->data_ready(sk, 0); return; } @@ -2531,8 +2529,7 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb, /* FIN bit check is not done since if FIN is set in * this frame, the pred_flags won't match up. -DaveM */ - wake_up_interruptible(sk->sleep); - sock_wake_async(sk->socket,1, POLL_IN); + sk->data_ready(sk, 0); } tcp_event_data_recv(tp, skb); diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 1edee9f51..456f12968 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -5,7 +5,7 @@ * * Implementation of the Transmission Control Protocol(TCP). * - * Version: $Id: tcp_ipv4.c,v 1.202 2000/03/17 14:41:53 davem Exp $ + * Version: $Id: tcp_ipv4.c,v 1.203 2000/03/22 17:55:03 davem Exp $ * * IPv4 specific functions * @@ -2015,7 +2015,7 @@ static void get_tcp_sock(struct sock *sp, char *tmpbuf, int i) timer_expires = jiffies; sprintf(tmpbuf, "%4d: %08X:%04X %08X:%04X" - " %02X %08X:%08X %02X:%08lX %08X %5d %8d %ld %d %p %u %u %u %u", + " %02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %p %u %u %u %u", i, src, srcp, dest, destp, sp->state, tp->write_seq-tp->snd_una, tp->rcv_nxt-tp->copied_seq, timer_active, timer_expires-jiffies, |