]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.c
lib: fix bandwidth multiplier for link param
authorEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 19 May 2020 13:53:02 +0000 (15:53 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 19 May 2020 15:08:04 +0000 (17:08 +0200)
commit5eb567edc8980ef8a9a70e12bdfce2d5b3b09374
treef2ad762932013a97aa1fa2dfdf3f16ab54a43ac4
parent22857da1bbe3eda766e353caaf5c6cd551fe9540
lib: fix bandwidth multiplier for link param

in the CLI we state that the bandwidth of a link is
in Megabits per second, but when converting it to
Bytes per second for TE purposes we were treating
it as Kilobits. Fix the conversion error.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
lib/if.c
lib/if.h