mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
ospf6d: combine two conditions for lsa prefix
For both router and network LSAs, combine the two conditions and process lsa prefix uniformly. Signed-off-by: anlan_cs <vic.lan@pica8.com>
This commit is contained in:
parent
e279bfdf06
commit
22ce5803e4
@ -1765,10 +1765,8 @@ void ospf6_intra_prefix_lsa_add(struct ospf6_lsa *lsa)
|
||||
intra_prefix_lsa =
|
||||
(struct ospf6_intra_prefix_lsa *)OSPF6_LSA_HEADER_END(
|
||||
lsa->header);
|
||||
if (intra_prefix_lsa->ref_type == htons(OSPF6_LSTYPE_ROUTER))
|
||||
ospf6_linkstate_prefix(intra_prefix_lsa->ref_adv_router,
|
||||
intra_prefix_lsa->ref_id, &ls_prefix);
|
||||
else if (intra_prefix_lsa->ref_type == htons(OSPF6_LSTYPE_NETWORK))
|
||||
if (intra_prefix_lsa->ref_type == htons(OSPF6_LSTYPE_ROUTER) ||
|
||||
intra_prefix_lsa->ref_type == htons(OSPF6_LSTYPE_NETWORK))
|
||||
ospf6_linkstate_prefix(intra_prefix_lsa->ref_adv_router,
|
||||
intra_prefix_lsa->ref_id, &ls_prefix);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user