Search Linux Wireless

Re: [RFC] cfg80211/mac80211: Add support for Proxy ARP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux