]> granicus.if.org Git - ipset/commit
Use gethostbyname2 instead of getaddrinfo
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 5 Nov 2012 16:11:10 +0000 (17:11 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 5 Nov 2012 16:11:10 +0000 (17:11 +0100)
commitc52cf6000923b6a5c6416360d9425061dd19424d
treed662f19f699cf4a7749c827fe915f9334fca50d0
parent5166d5b94ff93cda9182be48e82569c54357cc96
Use gethostbyname2 instead of getaddrinfo

In newer glibc, getaddrinfo issues an extra system call to kernel,
which slows down ipset. Replace getaddrinfo with gethostbyname2,
where possible.
configure.ac
lib/parse.c