On 05/16/2014 04:04 PM, Park, Kyeyoon wrote: > Hi Ben, > >>> +#define STA_IPV4_HASH_SIZE 32 >>> +#define STA_IPV4_HASH(ipv4) (((u8 *)&ipv4)[3] & 0x1F) >> >> This should be a better hash I think. Use an existing hash >> method or at least mix in the higher bits manually? > > I assume that there is an existing IP address hash function > somewhere in the TCP/IP stack. I have a hard time finding > an externally available API that does this for me. Could you > point me to it? Maybe jhash_1word? Thanks, Ben -- Ben Greear <greearb@xxxxxxxxxxxxxxx> Candela Technologies Inc http://www.candelatech.com -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html