]> The Tcpdump Group git mirrors - tcpdump/commit
DHCPv6: Update the snapend for nested DHCPv6 packets
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 11 Feb 2021 16:46:02 +0000 (17:46 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 26 Feb 2021 18:46:06 +0000 (19:46 +0100)
commitdf19bd6d6dbe7f0fe8299af5de99949000af1027
tree7bd282e9f6096fdc7213e8cfd3044f93fa6cf6e6
parent2a020edd7c292c80a3074ba369162d49357fa57b
DHCPv6: Update the snapend for nested DHCPv6 packets

Update the snapend to the end of the option before calling recursively
dhcp6_print() for the nested packet.
Other options may be present after the nested DHCPv6 packet.
This prevents that, in dhcp6_print(), for the nested DHCPv6 packet,
the remaining length < remaining caplen.

(cherry picked from commits 3076dc3166d1d854a965443451ff3915d054d8f1
 and 31cc0605021eec33924ff7a8e310fa372bed3d3c)
print-dhcp6.c