mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2026-01-25 20:42:26 +00:00
route: Fix printing of locked entries
Commit0f7543322c("route: ignore RTAX_HOPLIMIT of value -1") accidentally reordered fprintf statements. This patch restores the original ordering. Fixes:0f7543322c("route: ignore RTAX_HOPLIMIT of value -1") Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
e834eb8eba
commit
ed6b8652f7
@ -577,8 +577,6 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||
if (mxrta[i] == NULL)
|
||||
continue;
|
||||
|
||||
if (mxlock & (1<<i))
|
||||
fprintf(fp, " lock");
|
||||
if (i != RTAX_CC_ALGO)
|
||||
val = rta_getattr_u32(mxrta[i]);
|
||||
|
||||
@ -590,6 +588,9 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||
else
|
||||
fprintf(fp, " metric %d", i);
|
||||
|
||||
if (mxlock & (1<<i))
|
||||
fprintf(fp, " lock");
|
||||
|
||||
switch (i) {
|
||||
case RTAX_FEATURES:
|
||||
print_rtax_features(fp, val);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user