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
This commit is contained in:
christos 2004-12-17 22:54:52 +00:00
parent cef61c32cd
commit 60fb5c0ece
3 changed files with 9 additions and 9 deletions

View File

@ -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 <sys/cdefs.h>
__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

View File

@ -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 <sys/cdefs.h>
__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

View File

@ -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 <sys/cdefs.h>
__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;