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:
parent
a53b5f81c2
commit
decb239dff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306434
@ -175,6 +175,7 @@ struct ether_addr {
|
|||||||
} while (0)
|
} while (0)
|
||||||
# include <net/if_var.h>
|
# include <net/if_var.h>
|
||||||
# define GETKTIME(x) microtime((struct timeval *)x)
|
# define GETKTIME(x) microtime((struct timeval *)x)
|
||||||
|
# define if_addrlist if_addrhead
|
||||||
|
|
||||||
# include <netinet/in_systm.h>
|
# include <netinet/in_systm.h>
|
||||||
# include <netinet/ip.h>
|
# include <netinet/ip.h>
|
||||||
|
@ -313,7 +313,6 @@ struct ifnet {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* for compatibility with other BSDs */
|
/* for compatibility with other BSDs */
|
||||||
#define if_addrlist if_addrhead
|
|
||||||
#define if_list if_link
|
#define if_list if_link
|
||||||
#define if_name(ifp) ((ifp)->if_xname)
|
#define if_name(ifp) ((ifp)->if_xname)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user