]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fetch interface speed on *BSD 851/head
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 21 Jul 2017 18:09:58 +0000 (15:09 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 25 Jul 2017 05:11:30 +0000 (02:11 -0300)
commitf766e29c4b208e9e674cb2fa6d8b962c659dc2ad
tree71e00db6de1ef0c48d0a0c00812b61f15d5574ed
parent1e4d264f2bce049de4a7e90d2f7b9c1673b14c57
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