mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-30 16:33:58 +00:00
Merge pull request #8978 from kssoman/ospf_new
ospf6d : Send LSA update immediately when ospf instance is deleted
This commit is contained in:
commit
f45f6a22b0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user