]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Convert output to host order from network order for route_tag 10451/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 31 Jan 2022 17:49:55 +0000 (12:49 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 31 Jan 2022 17:51:18 +0000 (12:51 -0500)
FRR stores the route_tag in network byte order.  Bug filed indicates
that the `show ip ospf route` command shows the correct value.
Every place route_tag is dumped in ospf_vty.c the ntohl function
is used first.

Fixes: #10450
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_dump.c

index 2f7556f7ff702bae2855c841dde425044013a254..f40d056742283578269794c0cc7f4f87fe7e2e60 100644 (file)
@@ -389,7 +389,7 @@ static void ospf_as_external_lsa_dump(struct stream *s, uint16_t length)
                           asr->tos & 0x7f, GET_METRIC(asr->metric));
                zlog_debug("    Forwarding address %pI4", &asr->fwd_addr);
                zlog_debug("    External Route Tag %" ROUTE_TAG_PRI,
-                          asr->route_tag);
+                          ntohl(asr->route_tag));
        }
 }