commit | 86bff86778d006d59a36bb10c7a577d982934402 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Wed Mar 11 01:16:18 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Mar 20 16:32:39 2015 +0900 |
tree | f991eadedbc1e9742e3d3bde63a7ba2b57f221c4 | |
parent | 7f7cc6115914b4a0ebd99c5d77db8f571195a1fb [diff] |
DHCP: glue code. 1. Add a method to make a DhcpResults object from a DHCP packet. 2. Add a method to fetch the client MAC from the packet. This is needed to check that the message is for us (lots of DHCP messages are broadcast). 3. Add a length argument to the method that parses DHCP packets, so the caller can use the same MTU-sized array all the time instead of having to pass in a new array for every packet. Bug: 19704592 Change-Id: I58223f5ec90fb5c762bc2934649e02f9122018b2