Line 0
Link Here
|
|
|
1 |
--- freebsd_compat_common.h.orig 2020-09-07 12:24:21 UTC |
2 |
+++ freebsd_compat_common.h |
3 |
@@ -137,9 +137,11 @@ static __inline u_quad_t uqmax(u_quad_t a, u_quad_t b) |
4 |
* multicast addresses. The old KPI is eventually removed in 1300054, so we |
5 |
* provide the new implementation for older kernels that lack them. |
6 |
*/ |
7 |
-#if __FreeBSD_version < 1300051 |
8 |
+#if __FreeBSD_version < 1202000 |
9 |
struct sockaddr_dl; |
10 |
typedef u_int iflladdr_cb_t(void *, struct sockaddr_dl *, u_int); |
11 |
+#endif |
12 |
+#if __FreeBSD_version < 1300051 |
13 |
u_int if_foreach_lladdr(if_t ifp, iflladdr_cb_t cb, void *cb_arg); |
14 |
u_int if_foreach_llmaddr(if_t ifp, iflladdr_cb_t cb, void *cb_arg); |
15 |
u_int if_lladdr_count(if_t ifp); |