summaryrefslogtreecommitdiff
path: root/dns/dnsmasq-devel/files/patch-bpf.c
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2024-12-20 15:41:28 +0100
committerMatthias Andree <mandree@FreeBSD.org>2024-12-20 15:43:28 +0100
commit95b16c6c1e04a5434202815965b9bce7d764b56e (patch)
tree135b7ff84ace9a2c88be5fb07006883b409791ae /dns/dnsmasq-devel/files/patch-bpf.c
parentsecurity/putty: update to 0.82 + cherry-picks (diff)
dns/dnsmasq-devel: update to v2.91test1
ChangeLog: https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=CHANGELOG;h=8982a93cb95c074e652a19b6f2a6a33dfffba04a;hb=5d32f35bdcd6105acc206e0afd0516dee2dd1439 Note the test I've added has not seen serious testing, it's just to fix compiles, and might impair how we enumerate interfaces. I've sent it upstream to the dnsmasq-discuss@ mailing list so Simon or other people are aware and can provide a different fix. This is a TEST release, treat it as such.
Diffstat (limited to 'dns/dnsmasq-devel/files/patch-bpf.c')
-rw-r--r--dns/dnsmasq-devel/files/patch-bpf.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/dns/dnsmasq-devel/files/patch-bpf.c b/dns/dnsmasq-devel/files/patch-bpf.c
new file mode 100644
index 000000000000..9f2082b5b0ac
--- /dev/null
+++ b/dns/dnsmasq-devel/files/patch-bpf.c
@@ -0,0 +1,19 @@
+--- src/bpf.c.orig 2024-12-19 00:36:42 UTC
++++ src/bpf.c
+@@ -100,14 +100,14 @@ int arp_enumerate(void *parm, callback_t callback)
+ #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;
+ int errsave, fd = -1, ret = 0;
+
+ if (family == AF_UNSPEC)
+ #if defined(HAVE_BSD_NETWORK) && !defined(__APPLE__)
+- return arp_enumerate(parm, callback.af_unspec);
++ return arp_enumerate(parm, callback);
+ #else
+ return 0; /* need code for Solaris and MacOS*/
+ #endif