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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user