mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
bpf.c: Follow callback updates.
This commit is contained in:
committed by
Simon Kelley
parent
4902807879
commit
2a664c03db
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user