diff options
author | Donald Sharp <sharpd@nvidia.com> | 2025-01-09 18:51:16 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2025-01-10 16:07:11 +0100 |
commit | 348c2dc3f8dc683552c880dfbcb1e0b7dd203692 (patch) | |
tree | 4beaf9de73d3f396f12917043b128f33b97191c8 /bgpd/bgp_network.h | |
parent | bgpd: su_remote and su_local are properties of the connection (diff) | |
download | frr-348c2dc3f8dc683552c880dfbcb1e0b7dd203692.tar.xz frr-348c2dc3f8dc683552c880dfbcb1e0b7dd203692.zip |
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 '')
-rw-r--r-- | bgpd/bgp_network.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgp_network.h b/bgpd/bgp_network.h index bd8c285f3..a2f4851f1 100644 --- a/bgpd/bgp_network.h +++ b/bgpd/bgp_network.h @@ -23,7 +23,6 @@ extern void bgp_close_vrf_socket(struct bgp *bgp); extern void bgp_close(void); extern enum connect_result bgp_connect(struct peer_connection *connection); extern int bgp_getsockname(struct peer_connection *connection); -extern void bgp_updatesockname(struct peer_connection *connection); extern int bgp_md5_set_prefix(struct bgp *bgp, struct prefix *p, const char *password); |