mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Increment option size when adding a new option
This commit is contained in:
@@ -82,6 +82,7 @@ DHCPv6::DHCPv6(const uint8_t *buffer, uint32_t total_sz)
|
||||
|
||||
void DHCPv6::add_option(const option &opt) {
|
||||
options_.push_back(opt);
|
||||
options_size += opt.data_size() + sizeof(uint16_t) * 2;
|
||||
}
|
||||
|
||||
const DHCPv6::option *DHCPv6::search_option(OptionTypes id) const {
|
||||
|
||||
Reference in New Issue
Block a user