aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-umts_fp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-05-31 13:23:42 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-05-31 13:23:42 +0000
commitb9e5955f466e5b5194f224c629374403f5d23e8e (patch)
treede73ef4ec12351c8e747c9e33e486b5432061cb6 /epan/dissectors/packet-umts_fp.c
parent08c7db04210ee17253fd48c58cf53c3cf2fa082c (diff)
Set dir if we don't have it.
svn path=/trunk/; revision=42945
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r--epan/dissectors/packet-umts_fp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 0f34432f55..7fabf7267b 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -3393,7 +3393,13 @@ static void dissect_fp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
-
+ if(pinfo->p2p_dir == P2P_DIR_UNKNOWN){
+ if(pinfo->link_dir==P2P_DIR_UL){
+ pinfo->p2p_dir = P2P_DIR_RECV;
+ }else{
+ pinfo->p2p_dir = P2P_DIR_SENT;
+ }
+ }
/* Can't dissect anything without it... */
if (p_fp_info == NULL) {
ti = proto_tree_add_text(fp_tree, tvb, offset, -1,