Use folly::IPAddress::hash instead of gethostid
authorAlecs King <int@fb.com>
Tue, 11 Nov 2014 21:53:09 +0000 (13:53 -0800)
committerDave Watson <davejwatson@fb.com>
Wed, 19 Nov 2014 20:52:15 +0000 (12:52 -0800)
commit05e80bad2881b0f1f4cd048641aedb66f64d0b00
tree348acc948b976051a0984dc0b8855ce8758ce28c
parent84e83ecc389494103b5970e33f0cbf75883bf42e
Use folly::IPAddress::hash instead of gethostid

Summary: find a non-loopback ipv4 or ipv6 address and feed it to folly::IPAddress::hash

Test Plan:
1)
fbconfig -r mcrouter
fbmake runtests

2)
compare hostids on different hosts

Reviewed By: pavlo@fb.com

Subscribers: njormrod, folly-diffs@, trunkagent, ps, bmatheny, alikhtarov

FB internal diff: D1668944

Tasks: 5557721

Signature: t1:1668944:1415736928:fb4b042a575c0b00f52780f3abf54bf7630b3a97
folly/IPAddress.h
folly/IPAddressV4.cpp
folly/IPAddressV4.h
folly/IPAddressV6.cpp
folly/test/IPAddressTest.cpp