set IPv4 parameter to modern value.
- turn on path MTU discovery (previous: turned off) - ICMPv4 redirect entry timeout = 600 sec (previous: never timeout)
This commit is contained in:
parent
afdb0a8737
commit
9368c444df
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip_icmp.c,v 1.67 2002/06/09 16:33:40 itojun Exp $ */
|
||||
/* $NetBSD: ip_icmp.c,v 1.68 2002/06/13 16:25:54 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@ -105,7 +105,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.67 2002/06/09 16:33:40 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.68 2002/06/13 16:25:54 itojun Exp $");
|
||||
|
||||
#include "opt_ipsec.h"
|
||||
|
||||
@ -172,7 +172,7 @@ extern int icmperrppslim;
|
||||
static int icmperrpps_count = 0;
|
||||
static struct timeval icmperrppslim_last;
|
||||
static int icmp_rediraccept = 1;
|
||||
static int icmp_redirtimeout = 0;
|
||||
static int icmp_redirtimeout = 600;
|
||||
static struct rttimer_queue *icmp_redirect_timeout_q = NULL;
|
||||
|
||||
static void icmp_mtudisc_timeout __P((struct rtentry *, struct rttimer *));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ip_input.c,v 1.152 2002/06/09 16:33:40 itojun Exp $ */
|
||||
/* $NetBSD: ip_input.c,v 1.153 2002/06/13 16:25:54 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
@ -102,7 +102,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.152 2002/06/09 16:33:40 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.153 2002/06/13 16:25:54 itojun Exp $");
|
||||
|
||||
#include "opt_gateway.h"
|
||||
#include "opt_pfil_hooks.h"
|
||||
@ -168,7 +168,7 @@ __KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.152 2002/06/09 16:33:40 itojun Exp $"
|
||||
#define IPALLOWSRCRT 1 /* allow source-routed packets */
|
||||
#endif
|
||||
#ifndef IPMTUDISC
|
||||
#define IPMTUDISC 0
|
||||
#define IPMTUDISC 1
|
||||
#endif
|
||||
#ifndef IPMTUDISCTIMEOUT
|
||||
#define IPMTUDISCTIMEOUT (10 * 60) /* as per RFC 1191 */
|
||||
|
Loading…
Reference in New Issue
Block a user