History log of /external/dhcpcd-6.8.2/arp.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f20514bf582d08567217a3b06171bab5a11458ea 14-Aug-2015 Samuel Tan <samueltan@google.com> [PATCH] dhcpcd: Teach DHCP client to do unicast-ARP for gateway

Cherry-picked from
https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/
master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Teach-DHCP-client-to-do-
unicast-ARP-for-gatew.patch.

Implement RFC-4436 ("Detecting Network Attachment in IPv4 (DNAv4)").
Keep track of the MAC address of the default gateway in a file as
a part of the arpgw change ("-R" option), and append this info to
the end of the saved lease.

Implement a separate command line option ("-P") which will use
the MAC address stored in the lease to do a unicast ARP to the
default gateway saved in the lease. If this succeeds, notify
listeners that this succeeded, along with the contents of the lease,
but do not stop the normal DHCP process. This returns immediate,
fast feedback that our lease will likely work, but continues the
DHCP process so we know for sure.

BUG: 22956197
Change-Id: I4a494ff227b8bddac78e53c6354ebfa904bf384d

Reviewed-on: https://gerrit.chromium.org/gerrit/22643
/external/dhcpcd-6.8.2/arp.h
1c4088e958ed0fded0040bcb1d67b73159acfe8c 14-Aug-2015 Samuel Tan <samueltan@google.com> [PATCH] Optionally ARP for gateway IP address

Cherry-picked from
https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/
master/net-misc/dhcpcd/files/patches/dhcpcd-6.8.2-Optionally-ARP-for-gateway-
IP-address.patch.

If the "arpgw" option is enabled in the config, we ARP for
the gateway provided in the DHCP response as part of the
process of testing our lease. If this fails (ARP times
out) we DECLINE our lease in the hope that a new lease will
work better. This can allow us to work around issues with
infrastructures where IP address / MAC pairs are placed on
a "dummy" VLAN under certain conditions. Requesting a
different IP can sometimes help resolve this.

The code is setup so that for each dhcpcd instance, the
"arpgw" function is allowed to only fail once. This is
to protect ourselves from mistakenly diagnosing a bad
system, or from looping endlessly if the system is truly
hosed.

BUG: 22956197
Change-Id: I0f49882e85b2cac08dd3bd0046cacf564f8b4749

Reviewed-on: http://gerrit.chromium.org/gerrit/3080
Reviewed-on: http://gerrit.chromium.org/gerrit/3531
/external/dhcpcd-6.8.2/arp.h
d7ed851d6fc26c5e7db96971dbe6b44342b97727 14-Aug-2015 Samuel Tan <samueltan@google.com> Import dhcpcd 6.8.2

This is a simple import of dhcpcd 6.8.2.

SRC URI: http://roy.marples.name/downloads/dhcpcd/dhcpcd-6.8.2.tar.bz2
SHA1 Hash: 134a7c06bffc20789fedd5c0d259145d2dc4f058
(on the private dhcpcd repo 'trunk')

BUG: 22956197
Change-Id: I701af1d1532725b1058640fcb7ddeab1c24a797e
/external/dhcpcd-6.8.2/arp.h