]> git.ipfire.org Git - thirdparty/sarg.git/commit
Attempt to fix a FreeBSD IP address resolution
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 4 Aug 2011 06:10:43 +0000 (06:10 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 4 Aug 2011 06:10:43 +0000 (06:10 +0000)
commita50c63194f3ed7c380ad7449e9c9066c2cda1687
treec66f0b8464ce945dfb6ff746b7e8aed858865a8e
parenta9341a7c06646d0759965096bbacf1ee64544dbd
Attempt to fix a FreeBSD IP address resolution

According to this post:

http://lists.freebsd.org/pipermail/freebsd-standards/2005-July/000948.html

Some old version of FreeBSD requires that the sa_len of the sockaddr_in
structure be initialized with the exact length passed to getnameinfo.

As Linux doesn't have the sa_len member, it is not initialized in sarg.
Therefore the IP address resolution fails when sarg is compiled on FreeBSD.
CMakeLists.txt
configure.in
include/config.h.in
include/info.h
ip2name.c