]> git.ipfire.org Git - thirdparty/lldpd.git/commit
priv: replace the use of `gethostbyname()` by `getaddrinfo()`
authorVincent Bernat <vincent@bernat.im>
Wed, 28 Jan 2015 13:55:31 +0000 (14:55 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 28 Jan 2015 13:57:49 +0000 (14:57 +0100)
commit65e5293aeedfca68c4fd1f7f1bf22d43ca65e2ad
tree73f4c7caea98a1b73ae45fc751b048675d4c662f
parent1fa7d39f5b9d27483c84ef5646cf1ff462b5c5ae
priv: replace the use of `gethostbyname()` by `getaddrinfo()`

`gethostbyname()` was uses to get the canonical name. `getaddrinfo()`
should work even if there is no IPv4 at all in the system.
src/daemon/priv.c