[asterisk-commits] seanbright: branch seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_se...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 29 15:52:50 CST 2012


Author: seanbright
Date: Wed Feb 29 15:52:46 2012
New Revision: 357653

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=357653
Log:
Use ast_sockaddr_hash where appropriate.

Modified:
    team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c

Modified: team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c?view=diff&rev=357653&r1=357652&r2=357653
==============================================================================
--- team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c (original)
+++ team/seanbright/the_ipv6ification_of_chan_iax2_by_the_coward_sean_bright/channels/chan_iax2.c Wed Feb 29 15:52:46 2012
@@ -2183,9 +2183,7 @@
 static int addr_range_hash_cb(const void *obj, const int flags)
 {
 	const struct addr_range *lim = obj;
-	struct sockaddr_in sin;
-	ast_sockaddr_to_sin(&lim->ha.addr, &sin);
-	return abs((int) sin.sin_addr.s_addr);
+	return ast_sockaddr_hash(&lim->ha.addr);
 }
 
 static int addr_range_cmp_cb(void *obj, void *arg, int flags)




More information about the asterisk-commits mailing list