Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet set IPv4 parameter to modern value.
details: https://anonhg.NetBSD.org/src/rev/c99b6373c82c
branches: trunk
changeset: 532711:c99b6373c82c
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jun 13 16:25:54 2002 +0000
description:
set IPv4 parameter to modern value.
- turn on path MTU discovery (previous: turned off)
- ICMPv4 redirect entry timeout = 600 sec (previous: never timeout)
diffstat:
sys/netinet/ip_icmp.c | 6 +++---
sys/netinet/ip_input.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 973c805817ab -r c99b6373c82c sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c Thu Jun 13 15:29:16 2002 +0000
+++ b/sys/netinet/ip_icmp.c Thu Jun 13 16:25:54 2002 +0000
@@ -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 @@
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 *));
diff -r 973c805817ab -r c99b6373c82c sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c Thu Jun 13 15:29:16 2002 +0000
+++ b/sys/netinet/ip_input.c Thu Jun 13 16:25:54 2002 +0000
@@ -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 @@
#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 */
Home |
Main Index |
Thread Index |
Old Index