Skip to content

Commit

Permalink
Merge pull request #8978 from kssoman/ospf_new
Browse files Browse the repository at this point in the history
ospf6d : Send LSA update immediately when ospf instance is deleted
  • Loading branch information
rzalamena authored Jul 9, 2021
2 parents 3f8fcd2 + 7359e9b commit f45f6a2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ospf6d/ospf6_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,19 @@ static void ospf6_send_lsupdate(struct ospf6_neighbor *on,
}
if (oi) {
ospf6_packet_add(oi, op);
OSPF6_MESSAGE_WRITE_ON(oi);
/* If ospf instance is being deleted, send the packet
* immediately
*/
if ((oi->area == NULL) || (oi->area->ospf6 == NULL))
return;
if (oi->area->ospf6->inst_shutdown) {
if (oi->on_write_q == 0) {
listnode_add(oi->area->ospf6->oi_write_q, oi);
oi->on_write_q = 1;
}
thread_execute(master, ospf6_write, oi->area->ospf6, 0);
} else
OSPF6_MESSAGE_WRITE_ON(oi);
}
}

Expand Down

0 comments on commit f45f6a2

Please sign in to comment.