Skip to content

Commit

Permalink
Merge pull request #374 from almikhayl/373-esp
Browse files Browse the repository at this point in the history
Fix malformed packet exception on esp header
  • Loading branch information
mfontanini authored Feb 1, 2020
2 parents 16e7714 + 750c355 commit ce409db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ipv6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ IPv6::IPv6(const uint8_t* buffer, uint32_t total_sz) {
bool IPv6::is_extension_header(uint8_t header_id) {
return header_id == HOP_BY_HOP || header_id == DESTINATION_ROUTING_OPTIONS
|| header_id == ROUTING || header_id == FRAGMENT || header_id == AUTHENTICATION
|| header_id == SECURITY_ENCAPSULATION || header_id == DESTINATION_OPTIONS
|| header_id == MOBILITY || header_id == NO_NEXT_HEADER;
|| header_id == DESTINATION_OPTIONS || header_id == MOBILITY
|| header_id == NO_NEXT_HEADER;
}

uint32_t IPv6::get_padding_size(const ext_header& header) {
Expand Down

0 comments on commit ce409db

Please sign in to comment.