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
This commit is contained in:
Kevin Lo 2016-09-29 05:37:45 +00:00
parent a53b5f81c2
commit decb239dff
2 changed files with 1 additions and 1 deletions

View File

@ -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>

View File

@ -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)