Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet do not disconnect L4 connections on IP address r...
details: https://anonhg.NetBSD.org/src/rev/107d4bc20072
branches: trunk
changeset: 550656:107d4bc20072
user: itojun <itojun%NetBSD.org@localhost>
date: Sat Aug 16 11:30:35 2003 +0000
description:
do not disconnect L4 connections on IP address removal. the behavior
is too extreme (consider DHCP/PPP-based fixed address allocation).
see tech-net for more info.
diffstat:
sys/netinet/in.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r a74b6ef5f74c -r 107d4bc20072 sys/netinet/in.c
--- a/sys/netinet/in.c Sat Aug 16 07:04:17 2003 +0000
+++ b/sys/netinet/in.c Sat Aug 16 11:30:35 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.90 2003/08/07 16:33:09 agc Exp $ */
+/* $NetBSD: in.c,v 1.91 2003/08/16 11:30:35 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.90 2003/08/07 16:33:09 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.91 2003/08/16 11:30:35 itojun Exp $");
#include "opt_inet.h"
#include "opt_inet_conf.h"
@@ -564,6 +564,7 @@
IFAREF(&nia->ia_ifa);
LIST_INSERT_HEAD(&nia->ia_inpcbs, inp, inp_ialink);
} else if (inp->inp_socket != NULL) {
+#if 0
if ((inp->inp_socket->so_state & SS_NOFDREF) &&
inp->inp_socket->so_head == NULL) {
soabort(inp->inp_socket);
@@ -572,6 +573,7 @@
sorwakeup(inp->inp_socket);
sowwakeup(inp->inp_socket);
}
+#endif
}
}
Home |
Main Index |
Thread Index |
Old Index