author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 7 Jan 2014 15:06:10 +0000 (16:06 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 7 Jan 2014 15:06:10 +0000 (16:06 +0100) | ||
commit | 645dadb3fcc466e8880fda4eb23b21ad433631fc | |
tree | 040b5952f1a4aae48e16ae24ad24791476783e52 | tree | snapshot |
parent | bbbf37d55a3959951604c4be482e9a705a0f86d9 | commit | diff |
interface.c: FreeBSD-10 support
Quoting @trtrmitya in github issue #506 : "[...] it is broken on
FreeBSD-10, in which getifaddrs() returns not only link level stats for
a particular interface, but also entries for each IP configured on that
interface. As a result if_submit() is called several times for each
interface, which results in incorrect data being logged.
I am attaching a patch which fixes a problem on FreeBSD (9/10), but it
should work for every *BSD because [...] the getifaddrs implementation
first appeared in BSDi BSD/OS."
Many thanks to @trtrmitya for providing the patch !
Quoting @trtrmitya in github issue #506 : "[...] it is broken on
FreeBSD-10, in which getifaddrs() returns not only link level stats for
a particular interface, but also entries for each IP configured on that
interface. As a result if_submit() is called several times for each
interface, which results in incorrect data being logged.
I am attaching a patch which fixes a problem on FreeBSD (9/10), but it
should work for every *BSD because [...] the getifaddrs implementation
first appeared in BSDi BSD/OS."
Many thanks to @trtrmitya for providing the patch !
src/interface.c | diff | blob | history |