IP_Hdr: take length value as uint64_t instead of int

This commit is contained in:
Tim Wojtulewicz 2023-02-17 17:01:01 -07:00 committed by Tim Wojtulewicz
parent 8e078299eb
commit 7e66261fd9
2 changed files with 7 additions and 6 deletions

View file

@ -536,7 +536,8 @@ IPv6_Hdr_Chain::~IPv6_Hdr_Chain()
delete finalDst;
}
void IPv6_Hdr_Chain::Init(const struct ip6_hdr* ip6, int total_len, bool set_next, uint16_t next)
void IPv6_Hdr_Chain::Init(const struct ip6_hdr* ip6, uint64_t total_len, bool set_next,
uint16_t next)
{
length = 0;
uint8_t current_type, next_type;