diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-08-22 10:22:58 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-22 10:22:58 -0400 | 
| commit | b4c88abe9f61ff8e1402804a47ea74b8580aded2 (patch) | |
| tree | 8929bc187e593defba1474841e0a99305112e4b2 /babeld/route.c | |
| parent | d9775c690cb6f3d5fcc91805c3ada83aaa8f4835 (diff) | |
babeld: Send the route's metric down to zebra.
Babel was thinking it was talking to the kernel for
route installation instead of zebra.  Pass down the
metric instead.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'babeld/route.c')
| -rw-r--r-- | babeld/route.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/route.c b/babeld/route.c index 2c7e923748..466f41383c 100644 --- a/babeld/route.c +++ b/babeld/route.c @@ -352,7 +352,7 @@ route_stream_done(struct route_stream *stream)  static int  metric_to_kernel(int metric)  { -    return metric < INFINITY ? kernel_metric : KERNEL_INFINITY; +	return metric < INFINITY ? metric : KERNEL_INFINITY;  }  /* This is used to maintain the invariant that the installed route is at  | 
