Skip to content

Commit

Permalink
Merge pull request #17327 from donaldsharp/bgp_update_optimizations
Browse files Browse the repository at this point in the history
Bgp update optimizations
  • Loading branch information
Jafaral authored Oct 31, 2024
2 parents 66feece + d14dbdb commit 66ed5c1
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 159 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@ static int bgp_update_receive(struct peer_connection *connection,
attr.label = MPLS_INVALID_LABEL;
memset(&nlris, 0, sizeof(nlris));
memset(peer->rcvd_attr_str, 0, BUFSIZ);
peer->rcvd_attr_printed = 0;
peer->rcvd_attr_printed = false;

s = peer->curr;
end = stream_pnt(s) + size;
Expand Down Expand Up @@ -2422,7 +2422,7 @@ static int bgp_update_receive(struct peer_connection *connection,
BGP_DEBUG(update, UPDATE_DETAIL)) {
zlog_debug("%pBP rcvd UPDATE w/ attr: %s", peer,
peer->rcvd_attr_str);
peer->rcvd_attr_printed = 1;
peer->rcvd_attr_printed = true;
}
}

Expand Down
Loading

0 comments on commit 66ed5c1

Please sign in to comment.