Skip to content

Commit

Permalink
Reapply patch mentiond in #35 - however it got lost
Browse files Browse the repository at this point in the history
  • Loading branch information
ofalk committed Feb 27, 2024
1 parent 80a7f7b commit 682a271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arp-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ arp_loop(arp_t *arp, arp_handler callback, void *arg)
for (i = 0; i < (int)arp->iptable->dwNumEntries; i++) {
if (arp->iptable->table[i].dwPhysAddrLen != ETH_ADDR_LEN)
continue;
if (arp->iptable->table[i].dwType == MIB_IPNET_TYPE_INVALID)
continue;

entry.arp_pa.addr_ip = arp->iptable->table[i].dwAddr;
memcpy(&entry.arp_ha.addr_eth,
arp->iptable->table[i].bPhysAddr, ETH_ADDR_LEN);
Expand Down

0 comments on commit 682a271

Please sign in to comment.