diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-04-15 16:29:59 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-04-15 16:29:59 +0000 |
commit | 1b7b7298528b1f369bde19adc0aaca64d82ded5e (patch) | |
tree | 6349e055ea168e18afff63920892d9c649b1a015 /epan/dissectors/packet-gsm_a_gm.c | |
parent | 0807f8f1e7983e5576817465a6109770cea23af3 (diff) |
Don't check direction on "prot" where the meaning is the same UL/DL
svn path=/trunk/; revision=48854
Diffstat (limited to 'epan/dissectors/packet-gsm_a_gm.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_gm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-gsm_a_gm.c b/epan/dissectors/packet-gsm_a_gm.c index 7614f4ecf5..c76ed3aff4 100644 --- a/epan/dissectors/packet-gsm_a_gm.c +++ b/epan/dissectors/packet-gsm_a_gm.c @@ -4024,7 +4024,7 @@ de_sm_pco(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g case 0x0001: case 0x0003: case 0x0007: - if ((link_dir == P2P_DIR_DL) && (e_len > 0)) { + if (e_len > 0) { tvb_get_ipv6(tvb, curr_offset, &ipv6_addrx); proto_tree_add_text(pco_tree, tvb, curr_offset, 16, "IPv6: %s", ip6_to_str(&ipv6_addrx)); } @@ -4050,7 +4050,7 @@ de_sm_pco(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g } break; case 0x0008: - if ((link_dir == P2P_DIR_DL) && (e_len > 0)) { + if (e_len > 0) { tvb_get_ipv6(tvb, curr_offset, &ipv6_addrx); proto_tree_add_text(pco_tree, tvb, curr_offset, 16, "IPv6: %s", ip6_to_str(&ipv6_addrx)); oct = tvb_get_guint8(tvb, curr_offset+16); @@ -4060,14 +4060,14 @@ de_sm_pco(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g case 0x0009: case 0x000C: case 0x000D: - if ((link_dir == P2P_DIR_DL) && (e_len > 0)) { + if (e_len > 0) { ipv4_addrx = tvb_get_ipv4(tvb, curr_offset); proto_tree_add_text(pco_tree, tvb, curr_offset, 4, "IPv4: %s", ip_to_str((guint8 *)&ipv4_addrx)); } break; case 0x0010: - if ((link_dir == P2P_DIR_DL) && (e_len == 2)) { + if (e_len == 2) { guint16 word = tvb_get_ntohs(tvb, curr_offset); proto_tree_add_text(pco_tree, tvb, curr_offset, 2, "IPv4 link MTU size: %u octets", word); } |