mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-27 12:03:44 +08:00
icmp6: make opt_len a full-width u_int.
That way, when it's multiplied by 8 (shifted left 3 positions), the result will be a u_int, as it should be, not a signed int.
This commit is contained in:
parent
bca49c19e5
commit
56504177e8
@ -1429,7 +1429,8 @@ static int
|
||||
icmp6_opt_print(netdissect_options *ndo, const u_char *bp, int resid)
|
||||
{
|
||||
const struct nd_opt_hdr *op;
|
||||
uint8_t opt_type, opt_len;
|
||||
uint8_t opt_type;
|
||||
u_int opt_len;
|
||||
const struct nd_opt_prefix_info *opp;
|
||||
const struct nd_opt_mtu *opm;
|
||||
const struct nd_opt_rdnss *oprd;
|
||||
|
Loading…
Reference in New Issue
Block a user