forked from osmocom/wireshark
From Roy Marples:
ICMPv6 DNSSL option can contain padding, which does not represent a malformed option. svn path=/trunk/; revision=40159
This commit is contained in:
parent
10ca01fb1b
commit
b6872d0a3b
|
@ -1976,7 +1976,11 @@ dissect_icmpv6_nd_opt(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
|
|||
opt_offset += 4;
|
||||
while(opt_offset < (offset + opt_len) ) {
|
||||
|
||||
if(tvb_get_guint8(tvb, opt_offset) == 0){ /* if Zero there is padding, skip the loop */
|
||||
if(tvb_get_guint8(tvb, opt_offset) == 0){
|
||||
/* Padding... */
|
||||
int padd_length = (offset + opt_len) - opt_offset;
|
||||
proto_tree_add_item(icmp6opt_tree, hf_icmpv6_opt_padding, tvb, opt_offset, padd_length, FALSE);
|
||||
opt_offset += padd_length;
|
||||
break;
|
||||
}
|
||||
dnssl_len = get_dns_name(tvb, opt_offset, 0, opt_offset, &dnssl_name);
|
||||
|
|
Loading…
Reference in New Issue