batadv: Fix offset to ICMP v15 message type
To correctly show the message type of an batman-adv ICMP v15 packet, the
offset 3 inside the header has to be checked against the list of known
packet types.
Change-Id: I280aac59abd4133eac7d8381fac79f323c79b3de
Fixes: 4cc4315793
("batadv: Add dissector support for batadv v15")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Reviewed-on: https://code.wireshark.org/review/33545
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
945565d62d
commit
ee2da42762
|
@ -2370,7 +2370,7 @@ static void dissect_batadv_icmp_v15(tvbuff_t *tvb, packet_info *pinfo,
|
|||
icmp_packeth = (struct icmp_packet_v15 *)wmem_alloc(wmem_packet_scope(),
|
||||
sizeof(struct icmp_packet_v15));
|
||||
|
||||
icmp_packeth->msg_type = tvb_get_guint8(tvb, offset + 4);
|
||||
icmp_packeth->msg_type = tvb_get_guint8(tvb, offset + 3);
|
||||
|
||||
/* Set info column */
|
||||
col_add_fstr(pinfo->cinfo, COL_INFO, "[%s] Seq=%u",
|
||||
|
|
Loading…
Reference in New Issue