12 lines
360 B
Diff
12 lines
360 B
Diff
|
--- ./misc/arpd.c 2008-10-08 14:21:56.000000000 +0000
|
||
|
+++ ./misc/arpd.c~ 2008-10-08 14:21:07.000000000 +0000
|
||
|
@@ -206,7 +206,7 @@
|
||
|
if (getsockname(udp_sock, (struct sockaddr*)&dst, &len) < 0)
|
||
|
return -1;
|
||
|
|
||
|
- ah->ar_hrd = htons(ifr.ifr_hwaddr.sa_family);
|
||
|
+ ah->ar_hrd = htons(ARPHRD_ETHER);
|
||
|
ah->ar_pro = htons(ETH_P_IP);
|
||
|
ah->ar_hln = 6;
|
||
|
ah->ar_pln = 4;
|