1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 12:01:34 +01:00

Added some helper functions to set options to DHCP PDU. Added LGPL notice to dhcp.cpp

This commit is contained in:
Matias Fontanini
2011-08-17 16:20:02 -03:00
parent 4dfa4d70eb
commit 24e314283f
3 changed files with 68 additions and 12 deletions

View File

@@ -58,6 +58,7 @@ void Tins::IP::init_ip_fields() {
_ip.version = 4;
_ip.ihl = sizeof(iphdr) / sizeof(uint32_t);
_ip.ttl = DEFAULT_TTL;
_ip.id = Utils::net_to_host_s(1);
_options_size = 0;
_padded_options_size = 0;
}