aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rlc_lte_graph.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2012-08-11 03:53:13 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2012-08-11 03:53:13 +0000
commit6f6ef84c5dae84a4017312b4795f54838c26aed1 (patch)
treedad5f5e4a2130e5131d3fa956d1c760d1972d111 /ui/gtk/rlc_lte_graph.c
parent72ddab2c98384e1c7ab1b861c3f9c545d010b5d8 (diff)
When a graph is launched based upon an AM status PDU, make it for the
opposite direction. svn path=/trunk/; revision=44440
Diffstat (limited to 'ui/gtk/rlc_lte_graph.c')
-rw-r--r--ui/gtk/rlc_lte_graph.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/gtk/rlc_lte_graph.c b/ui/gtk/rlc_lte_graph.c
index c1228cf9a7..0f5d8929d7 100644
--- a/ui/gtk/rlc_lte_graph.c
+++ b/ui/gtk/rlc_lte_graph.c
@@ -822,7 +822,14 @@ tap_lte_rlc_packet(void *pct, packet_info *pinfo _U_, epan_dissect_t *edt _U_, c
/* Add address if unique and have space for it */
if (is_unique && (th->num_hdrs < MAX_SUPPORTED_CHANNELS)) {
- th->rlchdrs[th->num_hdrs++] = header;
+ /* Copy the tap stuct in as next header */
+ th->rlchdrs[th->num_hdrs] = header;
+
+ /* Store in direction of data though... */
+ if (th->rlchdrs[th->num_hdrs]->isControlPDU) {
+ th->rlchdrs[th->num_hdrs]->direction = !th->rlchdrs[th->num_hdrs]->direction;
+ }
+ th->num_hdrs++;
}
return 0;