diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-08-11 03:53:13 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-08-11 03:53:13 +0000 |
commit | 6f6ef84c5dae84a4017312b4795f54838c26aed1 (patch) | |
tree | dad5f5e4a2130e5131d3fa956d1c760d1972d111 /ui/gtk/rlc_lte_graph.c | |
parent | 72ddab2c98384e1c7ab1b861c3f9c545d010b5d8 (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.c | 9 |
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; |