openbsd-ports/net/arp-scan/patches/patch-link-bpf_c
sthen ea0ae38022 - update arp-scan to 1.8, from Gleydson Soares
(license has changed to GPLv3-or-higher)

- use "@comment no checksum" for vendor lists which the
supplied tools can update

- use @sample for mac-vendor.txt, it's user-editable

ok jasper@
2011-03-03 09:47:50 +00:00

15 lines
515 B
Plaintext

$OpenBSD: patch-link-bpf_c,v 1.2 2011/03/03 09:47:51 sthen Exp $
--- link-bpf.c.orig Sun Jan 9 10:37:09 2011
+++ link-bpf.c Thu Mar 3 08:58:57 2011
@@ -254,6 +254,10 @@ get_hardware_address(link_t *handle, unsigned char hw_
*/
for (p = buf; p < buf + len; p += ifm->ifm_msglen) {
ifm = (struct if_msghdr *)p;
+
+ if (ifm->ifm_version != RTM_VERSION)
+ continue;
+
sdl = (struct sockaddr_dl *)(ifm + 1);
if (ifm->ifm_type != RTM_IFINFO || (ifm->ifm_addrs & RTA_IFP) == 0)