commit | 29cb944bef7b56ef4b657cd7f2d0c2be96d670d6 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Wed Mar 11 01:16:18 2015 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Mar 16 22:35:19 2015 +0900 |
tree | b26a6d463632b3e82575de97040fb3b0e5eb17b1 | |
parent | 15204d50b4220f98e4144567a9cfa4418cc9763a [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