svn commit: r337410 - head/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Tue Aug 7 07:13:00 UTC 2018


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)


More information about the svn-src-all mailing list