1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 04:11:35 +01:00

Rename IPv6::add_ext_header to IPv6::add_header (deprecate former)

This commit is contained in:
Matias Fontanini
2017-05-14 10:33:04 -07:00
parent 5404e9f004
commit d8ead95070
3 changed files with 40 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ IPv6::IPv6(const uint8_t* buffer, uint32_t total_sz) {
}
// Add a header using the current header type (e.g. what we saw as the next
// header type in the previous)
add_ext_header(ext_header(current_header, payload_size, stream.pointer()));
add_header(ext_header(current_header, payload_size, stream.pointer()));
if (actual_payload_length == 0u && current_header == HOP_BY_HOP) {
// could be a jumbogram, look for Jumbo Payload Option
InputMemoryStream options(stream.pointer(), payload_size);
@@ -305,6 +305,10 @@ void IPv6::send(PacketSender& sender, const NetworkInterface &) {
#endif
void IPv6::add_ext_header(const ext_header& header) {
add_header(header);
}
void IPv6::add_header(const ext_header& header) {
ext_headers_.push_back(header);
}