From 790eef7946be86bd84b2224a9e970ceb8f4e4b59 Mon Sep 17 00:00:00 2001 From: maxv Date: Mon, 5 Feb 2018 15:23:14 +0000 Subject: [PATCH] Exterminate IPSENDREDIRECTS and IPMTUDISCTIMEOUT, neither is documented. --- sys/netinet/ip_input.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index db0034796c46..7fce04e1d4a8 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -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 -__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 @@ __KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.371 2018/02/05 15:18:10 maxv Exp $"); #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;