summaryrefslogtreecommitdiff
path: root/test/b.service
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-12-09 23:43:19 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-12 11:43:34 -0500
commit46a66b794a00e0f34981ac25dbf2eae2423b6215 (patch)
treea7015981a327512cb35688e2ab432d33f699d7c6 /test/b.service
parent8b4a96932de0c56048fbd7f7386090dc202704f7 (diff)
dhcp: Add DHCP discover sending
On starting the client, use the supplied interface mac address and create a transaction id. Puzzle together an IP/UDP/DHCP Discover message, compute checksums and send it out as a raw packet. Create an additional function that constructs default options common to all DHCP messages. Set the DHCP Client ID option as noticed by Grant Erickson in ConnMan commit b18d9798b3a0ae46ed87d6d2be8d5a474bf3ab1e: "Some Internet gateways and Wi-Fi access points are unhappy when the DHCPv4 client-id option (61) is missing and will refuse to issue a DHCP lease."
Diffstat (limited to 'test/b.service')
0 files changed, 0 insertions, 0 deletions