Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 126020 Details for
Bug 186589
=net-misc/dhcpcd-3.1.0 fails to assign an ip address due to ARPOP_REPLY
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Reject ARP from our hardware address
dhcpcd-arp.patch (text/plain), 846 bytes, created by
Roy Marples (RETIRED)
on 2007-07-25 21:11:41 UTC
(
hide
)
Description:
Reject ARP from our hardware address
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2007-07-25 21:11:41 UTC
Size:
846 bytes
patch
obsolete
>Index: arp.c >=================================================================== >--- arp.c (revision 253) >+++ arp.c (working copy) >@@ -190,17 +190,20 @@ > continue; > if (reply->ar_pln != sizeof (struct in_addr)) > continue; >- >- if (reply->ar_hln != ETHER_ADDR_LEN) >- continue; > if ((unsigned) bytes < sizeof (reply) + > 2 * (4 + reply->ar_hln)) > continue; > >+ /* Some systems send a reply back from our hwaddress - weird */ >+ if (memcmp (rh.c, iface->hwaddr, >+ MAX (reply->ar_hln, iface->hwlen))) >+ continue; >+ > rp.c = (unsigned char *) ar_spa (reply); > rh.c = (unsigned char *) ar_sha (reply); > logger (LOG_ERR, "ARPOP_REPLY received from %s (%s)", >- inet_ntoa (*rp.a), ether_ntoa (rh.a)); >+ inet_ntoa (*rp.a), >+ hwaddr_ntoa (rh.c, reply->ar_hln)); > retval = -1; > goto eexit; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186589
:
125978
|
126020
|
126022
|
126028