diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-04-26 00:03:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-04-26 00:03:41 +0000 |
commit | 41cafa2212976006aee5e58efecd9b6d0a028335 (patch) | |
tree | 4557c6304c9b75bc70d404d2b88508d9aa7387a6 /epan/dissectors/packet-iax2.c | |
parent | 2a48544203f2d970f9c918fb23f2d6f019b9e6f9 (diff) |
The data pointer of an address structure is a void *; convert it to a
guint8 * in order to look at the raw bytes of the address.
svn path=/trunk/; revision=21576
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r-- | epan/dissectors/packet-iax2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index 531b37a0a9..c249aa466a 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -472,12 +472,14 @@ static gint iax_circuit_equal(gconstpointer v, gconstpointer w) static guint iax_circuit_hash (gconstpointer v) { const iax_circuit_key *key = (const iax_circuit_key *)v; + const guint8 *addrdata; guint hash_val; int i; hash_val = 0; + addrdata = key->addr.data; for (i = 0; i < key->addr.len; i++) - hash_val += (guint)(key->addr.data[i]); + hash_val += (guint)(addrdata[i]); hash_val += (guint)(key->ptype); hash_val += (guint)(key->port); |