mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Calculate IPv6 headers size on demand
This commit is contained in:
@@ -320,6 +320,7 @@ public:
|
||||
private:
|
||||
void write_serialization(uint8_t* buffer, uint32_t total_sz);
|
||||
void set_last_next_header(uint8_t value);
|
||||
uint32_t calculate_headers_size() const;
|
||||
static void write_header(const ext_header& header, Memory::OutputMemoryStream& stream);
|
||||
static bool is_extension_header(uint8_t header_id);
|
||||
|
||||
@@ -345,7 +346,6 @@ private:
|
||||
|
||||
ipv6_header header_;
|
||||
headers_type ext_headers_;
|
||||
uint32_t headers_size_;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user