Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2016 05:37:45 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306434 - in head/sys: contrib/ipfilter/netinet net
Message-ID:  <201609290537.u8T5bjYW032926@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Thu Sep 29 05:37:45 2016
New Revision: 306434
URL: https://svnweb.freebsd.org/changeset/base/306434

Log:
  Remove the compatibility macro if_addrlist.
  
  Since if_addrlist is used only for ipfilter(4), add a macro if_addrlist
  in ip_compat.h.
  
  Reviewed by:	cy
  Differential Revision:	https://reviews.freebsd.org/D8059

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

Modified: head/sys/contrib/ipfilter/netinet/ip_compat.h
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_compat.h	Thu Sep 29 05:13:58 2016	(r306433)
+++ head/sys/contrib/ipfilter/netinet/ip_compat.h	Thu Sep 29 05:37:45 2016	(r306434)
@@ -175,6 +175,7 @@ struct  ether_addr {
 					} while (0)
 #  include <net/if_var.h>
 #  define	GETKTIME(x)	microtime((struct timeval *)x)
+#  define	if_addrlist	if_addrhead
 
 #   include <netinet/in_systm.h>
 #   include <netinet/ip.h>

Modified: head/sys/net/if_var.h
==============================================================================
--- head/sys/net/if_var.h	Thu Sep 29 05:13:58 2016	(r306433)
+++ head/sys/net/if_var.h	Thu Sep 29 05:37:45 2016	(r306434)
@@ -313,7 +313,6 @@ struct ifnet {
 };
 
 /* for compatibility with other BSDs */
-#define	if_addrlist	if_addrhead
 #define	if_list		if_link
 #define	if_name(ifp)	((ifp)->if_xname)
 



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