summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_nssa.c
diff options
context:
space:
mode:
authorckishimo <carles.kishimoto@gmail.com>2022-01-10 18:02:16 +0100
committerckishimo <carles.kishimoto@gmail.com>2022-01-11 11:03:30 +0100
commitbc36c05277729a895e6e8260bf70bb3d47561997 (patch)
treef7ea91b37d1e05c67833a631eb9b566c02071634 /ospf6d/ospf6_nssa.c
parent416721d942eb31da224788e27ffe9195a01b52da (diff)
ospf6d: add missing htons
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_nssa.c')
-rw-r--r--ospf6d/ospf6_nssa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index 57d252ff9a..042907d0f6 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -575,8 +575,9 @@ struct ospf6_lsa *ospf6_translated_nssa_refresh(struct ospf6_area *area,
match = ospf6_route_lookup(&prefix, ospf6->external_table);
if (match)
type5 = ospf6_lsdb_lookup(
- OSPF6_LSTYPE_AS_EXTERNAL, match->path.origin.id,
- ospf6->router_id, ospf6->lsdb);
+ htons(OSPF6_LSTYPE_AS_EXTERNAL),
+ match->path.origin.id, ospf6->router_id,
+ ospf6->lsdb);
}
if (type5) {