Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2018 07:12:59 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337410 - head/sys/contrib/ipfilter/netinet
Message-ID:  <201808070712.w777Cxb3036104@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Tue Aug  7 07:12:59 2018
New Revision: 337410
URL: https://svnweb.freebsd.org/changeset/base/337410

Log:
  Remove redundant and incorrect default definition of AF_INET6. AF_INET6
  is defined in sys/socket.h where it's defined as 28.
  
  A bit of trivia: On NetBSD AF_INET6 is defined as 24. On Solaris it is
  defined as 26. This is probably why Darren defaulted to 26, because
  ipfilter was originally written for SunOS 4 and Solaris many moons ago.
  
  MFC after:	2 weeks

Modified:
  head/sys/contrib/ipfilter/netinet/ip_compat.h

Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_compat.h	Tue Aug  7 03:39:29 2018	(r337409)
+++ head/sys/contrib/ipfilter/netinet/ip_compat.h	Tue Aug  7 07:12:59 2018	(r337410)
@@ -1463,10 +1463,6 @@ typedef	struct	tcpiphdr	tcpiphdr_t;
 # define	DPRINT(x)
 #endif
 
-#ifndef	AF_INET6
-# define	AF_INET6	26
-#endif
-
 #ifdef DTRACE_PROBE
 # ifdef _KERNEL
 #  define	DT(_n)			DTRACE_PROBE(_n)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808070712.w777Cxb3036104>