aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pdcp-lte.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2018-04-11 22:07:41 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2018-04-12 14:55:23 +0000
commit49470c15af609f58deae1bd9511dac3231d4bf1e (patch)
treea1f6473f8c82f7711b123042715ed1f27047fe36 /epan/dissectors/packet-pdcp-lte.c
parent1e82b9035c1396ca641d17e45db8927ee54e2e4e (diff)
RoHC: IP version is 1 byte only
Change-Id: I533b9d3ef37af9aa13a20c9af82a8a75cd73e9ad Reviewed-on: https://code.wireshark.org/review/26895 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pdcp-lte.c')
-rw-r--r--epan/dissectors/packet-pdcp-lte.c4
1 files changed, 3 insertions, 1 deletions
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: