Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Exterminate IPSENDREDIRECTS and IPMTUDISCTIMEOUT...



details:   https://anonhg.NetBSD.org/src/rev/ff24b1abfc11
branches:  trunk
changeset: 359246:ff24b1abfc11
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Feb 05 15:23:14 2018 +0000

description:
Exterminate IPSENDREDIRECTS and IPMTUDISCTIMEOUT, neither is documented.

diffstat:

 sys/netinet/ip_input.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (36 lines):

diff -r 384941c9cef7 -r ff24b1abfc11 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Mon Feb 05 15:18:10 2018 +0000
+++ b/sys/netinet/ip_input.c    Mon Feb 05 15:23:14 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.371 2018/02/05 15:18:10 maxv Exp $      */
+/*     $NetBSD: ip_input.c,v 1.372 2018/02/05 15:23:14 maxv Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.371 2018/02/05 15:18:10 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.372 2018/02/05 15:23:14 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -158,16 +158,10 @@
 #endif
 #endif
 
-#ifndef        IPSENDREDIRECTS
-#define        IPSENDREDIRECTS 1
-#endif
-
-#ifndef IPMTUDISCTIMEOUT
 #define IPMTUDISCTIMEOUT (10 * 60)     /* as per RFC 1191 */
-#endif
 
 int ipforwarding = IPFORWARDING;
-int ipsendredirects = IPSENDREDIRECTS;
+int ipsendredirects = 1;
 int ip_defttl = IPDEFTTL;
 int ip_forwsrcrt = 0;
 int ip_directedbcast = 0;



Home | Main Index | Thread Index | Old Index