aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-p_mul.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-09-16 21:15:49 +0000
committerGerald Combs <gerald@wireshark.org>2013-09-16 21:15:49 +0000
commit6079691af4ae918a041ec582c40c6f6d9d20ec44 (patch)
tree9eb7713348a7e17f2910fd4e3bba7e953533bb46 /epan/dissectors/packet-p_mul.c
parent4e74f3a3c359049dc184b7fa49c7237349e23911 (diff)
Convert each of the address.h macros to inline functions.
Document each function. Note that we now call tvb_get_ptr() before modifying the address in tvb_set_address() and tvb_set_address_hf(). The caller doesn't have to worry about doing that any more. Add add_address_to_hash64(). svn path=/trunk/; revision=52106
Diffstat (limited to 'epan/dissectors/packet-p_mul.c')
-rw-r--r--epan/dissectors/packet-p_mul.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-p_mul.c b/epan/dissectors/packet-p_mul.c
index ec69f58946..760ae0bfe6 100644
--- a/epan/dissectors/packet-p_mul.c
+++ b/epan/dissectors/packet-p_mul.c
@@ -376,7 +376,7 @@ static p_mul_seq_val *register_p_mul_id (packet_info *pinfo, address *addr, guin
nstime_t addr_time, prev_time;
guint addr_id = 0, prev_id = 0;
guint16 last_found_pdu = 0;
- gboolean missing_pdu = FALSE, set_address = FALSE;
+ gboolean missing_pdu = FALSE, need_set_address = FALSE;
GHashTable *pkg_list;
if (pinfo->flags.in_error_pkt) {
@@ -396,7 +396,7 @@ static p_mul_seq_val *register_p_mul_id (packet_info *pinfo, address *addr, guin
p_mul_key->id = message_id;
p_mul_key->seq = 0;
SE_COPY_ADDRESS(&p_mul_key->addr, addr);
- set_address = TRUE;
+ need_set_address = TRUE;
p_mul_data = (p_mul_seq_val *) g_hash_table_lookup (p_mul_id_hash_table, p_mul_key);
@@ -448,7 +448,7 @@ static p_mul_seq_val *register_p_mul_id (packet_info *pinfo, address *addr, guin
if (!pinfo->fd->flags.visited) {
p_mul_key->id = message_id;
p_mul_key->seq = seq_no;
- if (!set_address) {
+ if (!need_set_address) {
SE_COPY_ADDRESS(&p_mul_key->addr, addr);
}
p_mul_data = (p_mul_seq_val *) g_hash_table_lookup (p_mul_id_hash_table, p_mul_key);