diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-01-09 12:51:16 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2025-01-10 10:07:11 -0500 |
| commit | 348c2dc3f8dc683552c880dfbcb1e0b7dd203692 (patch) | |
| tree | 4beaf9de73d3f396f12917043b128f33b97191c8 /lib/command_graph.c | |
| parent | 78fa9b6feb0fc0fb0e9c3ff2db571c813e4b88ea (diff) | |
bgpd: Only update peer connection information when needed
Currently bgp is repeatedly grabbing peer connection information.
This is a bit overkill. There are two situations:
a) Opening a connection to the peer
In this case, we know the remote port/address a priori and can get
the local information by just asking the OS.
b) Peer opening a connection to us.
In this case, we know the local port/address a priori and can get
the remote information by just asking the OS.
Modify the code to just grab this data at the appropriate time.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions
