]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_socket.c
zebra: inform upper layer error when reading correct speed interface
authorJulien Floret <julien.floret@6wind.com>
Tue, 6 Aug 2019 09:15:05 +0000 (11:15 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 17 Sep 2019 16:38:42 +0000 (18:38 +0200)
commit594c28781672aeb80b62a6fc6f876db2d0f865e1
treebe2d8c22fd9d9966de92cdef6b39a467da46281a
parent215e03fe5328404e543760fecbbbf096a612bebc
zebra: inform upper layer error when reading correct speed interface

speed interface is done 15 seconds after interface creation. during that
time, the vrf or the interface may have disappeared. to protect this,
return an error in case it is not possible to create a vrf socket or it
is not possible to get speed of an interface because of a missing
device.

Signed-off-by: Julien Floret <julien.floret@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/if_netlink.c
zebra/interface.c
zebra/rt.h
zebra/rt_socket.c