]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix speed set to UINT32_MAX
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 15 Apr 2020 13:16:11 +0000 (15:16 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 29 Jan 2024 13:52:32 +0000 (14:52 +0100)
commit51cb6aee4b699d4f2fcf0f913a15cbbc6ff11598
tree766bbe0a781462d7e79a01a9dd0bdd8afc919bb1
parentf8755d7f866d4ae74d01b2ef9baa6829bdb99f63
zebra: fix speed set to UINT32_MAX

get_iflink_speed() returns UINT32_MAX when the speeds is unknown.
Routing daemons (at least ospfd) interprets it as the high value.

Return errors in get_iflink_speed() to avoid the confusion.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
zebra/if_netlink.c
zebra/interface.c
zebra/interface.h