diff options
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-pdcp-lte.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-rohc.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-rohc.h | 4 |
3 files changed, 7 insertions, 5 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: diff --git a/epan/dissectors/packet-rohc.c b/epan/dissectors/packet-rohc.c index 3efe71d7d6..f62bfe9a07 100644 --- a/epan/dissectors/packet-rohc.c +++ b/epan/dissectors/packet-rohc.c @@ -211,7 +211,7 @@ static dissector_handle_t ipv6_handle; typedef struct _rohc_cid_context_t { - guint16 rohc_ip_version; + guint8 rohc_ip_version; gboolean large_cid_present; enum rohc_mode mode; enum rohc_d_mode d_mode; @@ -3083,7 +3083,7 @@ proto_register_rohc(void) { &hf_rohc_ir_ip_version, { "Mode","rohc.ir_ip_version", - FT_UINT16, BASE_DEC, VALS(rohc_ip_version_vals), 0x0, + FT_UINT8, BASE_DEC, VALS(rohc_ip_version_vals), 0x0, NULL , HFILL } }, diff --git a/epan/dissectors/packet-rohc.h b/epan/dissectors/packet-rohc.h index 7ae035c261..30865dac12 100644 --- a/epan/dissectors/packet-rohc.h +++ b/epan/dissectors/packet-rohc.h @@ -37,7 +37,7 @@ enum rohc_d_mode typedef struct rohc_info { gboolean rohc_compression; - guint16 rohc_ip_version; + guint8 rohc_ip_version; gboolean cid_inclusion_info; gboolean large_cid_present; enum rohc_mode mode; @@ -50,7 +50,7 @@ typedef struct rohc_info typedef struct rohc_context { - guint16 rohc_ip_version[MAX_CID+1]; + guint8 rohc_ip_version[MAX_CID+1]; gboolean large_cid_present[MAX_CID+1]; enum rohc_mode mode[MAX_CID+1]; enum rohc_d_mode d_mode[MAX_CID+1]; |