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
diff --git a/dhcpv4.h b/dhcpv4.h
index 9719129..92f07c6 100644
--- a/dhcpv4.h
+++ b/dhcpv4.h
@@ -67,7 +67,7 @@
shill::IOHandlerFactory *io_handler_factory_;
std::unique_ptr<shill::IOHandler> input_handler_;
- // DHCP state variables
+ // DHCP state variables.
State state_;
// Socket used for sending and receiving DHCP messages.