commit | 679654b4a871034b59ceadb98d113ac8cab120d6 | [log] [tgz] |
---|---|---|
author | Ningyuan Wang <nywang@google.com> | Fri Jan 08 15:43:36 2016 -0800 |
committer | Ningyuan Wang <nywang@google.com> | Thu Jan 14 10:39:07 2016 -0800 |
tree | c94b7f4df43b4b936833a8b3045c1c65b9a1236b | |
parent | 37b081dd801fcf202982f4bc5d459c0937741e73 [diff] |
dhcp client: add checksum computing function for class DHCPMessages When using raw sockets for communicating with the DHCP server, we need to fill the IP and UDP headers. Adding checksum function allows us to fill the checksum field in headers. Bug: 25642025 TEST=compile and unittests Change-Id: Icab3433ccb2b1fffbf1fb4ce60362d1b94588235