Date: Sun, 1 Feb 2009 20:18:28 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org Subject: svn commit: r187988 - in stable/6/sys: . contrib/pf dev/cxgb netinet Message-ID: <200902012018.n11KIS7T065485@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rwatson Date: Sun Feb 1 20:18:27 2009 New Revision: 187988 URL: http://svn.freebsd.org/changeset/base/187988 Log: Merge r187987 from stable/7 to stable/6: Merge r186717 from head to stable/7: Allow the IP_MINTTL socket option to be set to 0 so that it can be disabled entirely, which is its default state before set to a non-zero value. PR: 128790 Submitted by: Nick Hilliard <nick at foobar dot org> Modified: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/cxgb/ (props changed) stable/6/sys/netinet/ip_output.c Modified: stable/6/sys/netinet/ip_output.c ============================================================================== --- stable/6/sys/netinet/ip_output.c Sun Feb 1 19:20:45 2009 (r187987) +++ stable/6/sys/netinet/ip_output.c Sun Feb 1 20:18:27 2009 (r187988) @@ -1255,7 +1255,7 @@ ip_ctloutput_pcbinfo(so, sopt, pcbinfo) break; case IP_MINTTL: - if (optval > 0 && optval <= MAXTTL) + if (optval >= 0 && optval <= MAXTTL) inp->inp_ip_minttl = optval; else error = EINVAL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902012018.n11KIS7T065485>