Skip to content

Commit

Permalink
fix ISIS LAN DIS pseudo-node-id change
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Oct 28, 2024
1 parent d5697c6 commit 827b7ef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/bngblaster/src/isis/isis_hello.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ isis_hello_handler_rx(bbl_network_interface_s *interface,
isis_tlv_s *tlv;

uint8_t new_state = ISIS_PEER_STATE_INIT;
uint8_t dis_pseudo_node_id = 0;

isis_auth_type auth = ISIS_AUTH_NONE;
char *key = NULL;
Expand Down Expand Up @@ -187,9 +188,18 @@ isis_hello_handler_rx(bbl_network_interface_s *interface,
return;
}


if(adjacency->dis) dis_pseudo_node_id = adjacency->dis->pseudo_node_id;

peer = isis_peer(adjacency, eth->src);
isis_peer_update(peer, pdu);

if(adjacency->dis && adjacency->dis->pseudo_node_id != dis_pseudo_node_id) {
/* This check is required to handle the case where DIS remains
* but pseudo-node-id of DIS has changed. */
self_update = true;
}

tlv = isis_pdu_first_tlv(pdu);
while(tlv) {
switch(tlv->type) {
Expand Down

0 comments on commit 827b7ef

Please sign in to comment.