diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-11-20 17:38:48 +0700 |
---|---|---|
committer | Pascal Quantin <pascal@wireshark.org> | 2019-11-20 11:27:11 +0000 |
commit | 8ca101689bdd3b2e037d2e21534fc23c17bb213a (patch) | |
tree | fdb315ede651c36a2540cfb42a86ba1dc40cbfe0 | |
parent | 608d7ddad452de13a23f267d7503698a7160f1be (diff) |
GSMTAP: fix empty INFO column for PTCCH/D messages
Change-Id: I3abc627ee0e88cc276511af66b33bda990fe5624
Reviewed-on: https://code.wireshark.org/review/35157
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
-rw-r--r-- | epan/dissectors/packet-gsmtap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsmtap.c b/epan/dissectors/packet-gsmtap.c index 278b97d2fd..c102f8251b 100644 --- a/epan/dissectors/packet-gsmtap.c +++ b/epan/dissectors/packet-gsmtap.c @@ -442,12 +442,14 @@ dissect_sacch_l1h(tvbuff_t *tvb, proto_tree *tree) * +---+----------+---+----------+-----+---+-----------+------------------+ */ static void -dissect_ptcch_dl(tvbuff_t *tvb, proto_tree *tree) +dissect_ptcch_dl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *sub_tree; proto_item *ti, *gi; int offset; + col_set_str(pinfo->cinfo, COL_INFO, "Packet Timing Advance Control"); + if (!tree) return; @@ -686,7 +688,7 @@ dissect_gsmtap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _ case GSMTAP_CHANNEL_PTCCH: /* PTCCH/D carries Timing Advance updates encoded with CS-1 */ if (pinfo->p2p_dir == P2P_DIR_RECV) { - dissect_ptcch_dl(payload_tvb, tree); + dissect_ptcch_dl(payload_tvb, pinfo, tree); return tvb_captured_length(tvb); } |