From 60fb5c0ece0faddafea9f5e5922c4d60556a9b9c Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 17 Dec 2004 22:54:52 +0000 Subject: [PATCH] Turn checksumming on loopback back on until we fix the bugs in it. Connect over tcp on the loopback is broken: 4729 amq 0.000007 CALL connect(4,0x804f2a0,0x1c) 4729 amq 75.007420 RET connect -1 errno 60 Connection timed out --- sys/netinet/ip_input.c | 6 +++--- sys/netinet/tcp_subr.c | 6 +++--- sys/netinet/udp_usrreq.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index b4a879ae3f39..94d8e656168d 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.206 2004/12/15 04:25:19 thorpej Exp $ */ +/* $NetBSD: ip_input.c,v 1.207 2004/12/17 22:54:52 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.206 2004/12/15 04:25:19 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.207 2004/12/17 22:54:52 christos Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -200,7 +200,7 @@ int ipprintfs = 0; #endif int ip_do_randomid = 0; -int ip_do_loopback_cksum = 0; +int ip_do_loopback_cksum = 1; /* * XXX - Setting ip_checkinterface mostly implements the receive side of diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 2ed7963d4211..63066b730404 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_subr.c,v 1.174 2004/12/15 04:25:20 thorpej Exp $ */ +/* $NetBSD: tcp_subr.c,v 1.175 2004/12/17 22:54:52 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.174 2004/12/15 04:25:20 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.175 2004/12/17 22:54:52 christos Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -200,7 +200,7 @@ int tcp_compat_42 = 0; #endif int tcp_rst_ppslim = 100; /* 100pps */ int tcp_ackdrop_ppslim = 100; /* 100pps */ -int tcp_do_loopback_cksum = 0; +int tcp_do_loopback_cksum = 1; /* tcb hash */ #ifndef TCBHASHSIZE diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 289f0aca7be8..194fc2220488 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.125 2004/12/15 04:25:20 thorpej Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.126 2004/12/17 22:54:52 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.125 2004/12/15 04:25:20 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.126 2004/12/17 22:54:52 christos Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -141,7 +141,7 @@ int udpcksum = 1; #else int udpcksum = 0; /* XXX */ #endif -int udp_do_loopback_cksum = 0; +int udp_do_loopback_cksum = 1; struct inpcbtable udbtable; struct udpstat udpstat;