[sr-dev] RLS module default hash size

Richard Good richard.good at smilecoms.com
Thu Jan 23 11:45:22 CET 2014


Hi

I am re-using the pres shtable pattern from the RLS module.

I've found that the default size of the hash size is 512 when I think it
should be 9 (2^9=512) (rls.c line 92 in master)

If you do not set the hash size from the config file the code will bit
shift 512 and you will get an overflow.

Am I correct?

Regards
Richard.

This email is subject to the disclaimer of Smile Communications at http://www.smilecoms.com/disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140123/9084f680/attachment.html>


More information about the sr-dev mailing list