From 49470c15af609f58deae1bd9511dac3231d4bf1e Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Wed, 11 Apr 2018 22:07:41 +0200 Subject: RoHC: IP version is 1 byte only Change-Id: I533b9d3ef37af9aa13a20c9af82a8a75cd73e9ad Reviewed-on: https://code.wireshark.org/review/26895 Reviewed-by: Pascal Quantin --- epan/dissectors/packet-pdcp-lte.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-pdcp-lte.c') diff --git a/epan/dissectors/packet-pdcp-lte.c b/epan/dissectors/packet-pdcp-lte.c index 47a05fb916..385e5d17d4 100644 --- a/epan/dissectors/packet-pdcp-lte.c +++ b/epan/dissectors/packet-pdcp-lte.c @@ -1362,7 +1362,9 @@ static gboolean dissect_pdcp_lte_heur(tvbuff_t *tvb, packet_info *pinfo, offset++; break; case PDCP_LTE_ROHC_IP_VERSION_TAG: - p_pdcp_lte_info->rohc.rohc_ip_version = tvb_get_ntohs(tvb, offset); + /* RoHC IP version field is now 1 byte only; let's skip most significant byte + to keep backward compatibility with existing UDP framing protocol */ + p_pdcp_lte_info->rohc.rohc_ip_version = tvb_get_guint8(tvb, offset+1); offset += 2; break; case PDCP_LTE_ROHC_CID_INC_INFO_TAG: -- cgit v1.2.3