commit | 2e8b937f0f6b5c2c3bf86661581a85e2e97892b9 | [log] [tgz] |
---|---|---|
author | Ningyuan Wang <nywang@google.com> | Mon Jan 25 14:15:46 2016 -0800 |
committer | Ningyuan Wang <nywang@google.com> | Thu Jan 28 15:10:21 2016 -0800 |
tree | 3694bf12a08a14e73d1df727ef06cc4bed75b7b8 | |
parent | 787f45dbfce666afb7da75375b86f28ef4162399 [diff] |
DHCPV4: make and send dhcp packet This adds two functions. One is MakeRawPacket(), extracting payload from DHCPMessage object and filling the IP and UDP headers. Another is SendRawPacket(), sending the dhcp packet through raw socket. Bug: 25642025 TEST=compile and unittest Change-Id: Ib9efca5d96b768757d26e70119564b98e819bb34