bpf.c: Follow callback updates.

This commit is contained in:
Matthias Andree
2024-12-20 13:25:38 +01:00
committed by Simon Kelley
parent 4902807879
commit 2a664c03db

View File

@@ -100,14 +100,14 @@ int arp_enumerate(void *parm, callback_t callback)
#endif /* defined(HAVE_BSD_NETWORK) && !defined(__APPLE__) */ #endif /* defined(HAVE_BSD_NETWORK) && !defined(__APPLE__) */
int iface_enumerate(int family, void *parm, int (*callback)()) int iface_enumerate(int family, void *parm, callback_t callback)
{ {
struct ifaddrs *head, *addrs; struct ifaddrs *head, *addrs;
int errsave, fd = -1, ret = 0; int errsave, fd = -1, ret = 0;
if (family == AF_UNSPEC) if (family == AF_UNSPEC)
#if defined(HAVE_BSD_NETWORK) && !defined(__APPLE__) #if defined(HAVE_BSD_NETWORK) && !defined(__APPLE__)
return arp_enumerate(parm, callback.af_unspec); return arp_enumerate(parm, callback);
#else #else
return 0; /* need code for Solaris and MacOS*/ return 0; /* need code for Solaris and MacOS*/
#endif #endif