]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fetch interface speed on *BSD
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 21 Jul 2017 18:09:58 +0000 (15:09 -0300)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 9 Aug 2017 10:06:06 +0000 (12:06 +0200)
commit04427fcb48cbe2c9c312c8a8e0270c2bf6265ad1
treeb7d5e376184b533806020726061a5adb35345c3a
parent11f3bfdd71f9ccef52ddb6bc349b0554fd18c7ff
zebra: fetch interface speed on *BSD

Fixes #407 for FreeBSD and NetBSD.

OpenBSD uses ioctl to fetch interface information on startup and the
SIOCGIFMEDIA command is just too cumbersome to use.

The best way to fix the problem for OpenBSD is probably to stop treating
it differently from the other BSDs for no apparent reason.  There should
be nothing preventing us to make OpenBSD use the routing socket to fetch
interface information on startup (we already do it to detect runtime
changes). This is something that should be done in a separate commit
after a careful analysis.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/kernel_socket.c