mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:16:53 +00:00
bgpd: Show TCP MSS per neighbor always, despite if it's configured or not
To show the TCP MSS value per neighbor you have to configure it, otherwise you don't see the actual value. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
232470f3b7
commit
84e14c14dc
@ -13693,13 +13693,10 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
||||
}
|
||||
|
||||
/* Configured and Synced tcp-mss value for peer */
|
||||
if (CHECK_FLAG(p->flags, PEER_FLAG_TCP_MSS)) {
|
||||
sync_tcp_mss = sockopt_tcp_mss_get(p->connection->fd);
|
||||
json_object_int_add(json_neigh, "bgpTcpMssConfigured",
|
||||
p->tcp_mss);
|
||||
json_object_int_add(json_neigh, "bgpTcpMssSynced",
|
||||
sync_tcp_mss);
|
||||
}
|
||||
sync_tcp_mss = sockopt_tcp_mss_get(p->connection->fd);
|
||||
json_object_int_add(json_neigh, "bgpTcpMssConfigured",
|
||||
p->tcp_mss);
|
||||
json_object_int_add(json_neigh, "bgpTcpMssSynced", sync_tcp_mss);
|
||||
|
||||
/* Extended Optional Parameters Length for BGP OPEN Message */
|
||||
if (BGP_OPEN_EXT_OPT_PARAMS_CAPABLE(p))
|
||||
@ -13779,11 +13776,9 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
||||
p->delayopen);
|
||||
|
||||
/* Configured and synced tcp-mss value for peer */
|
||||
if (CHECK_FLAG(p->flags, PEER_FLAG_TCP_MSS)) {
|
||||
sync_tcp_mss = sockopt_tcp_mss_get(p->connection->fd);
|
||||
vty_out(vty, " Configured tcp-mss is %d", p->tcp_mss);
|
||||
vty_out(vty, ", synced tcp-mss is %d\n", sync_tcp_mss);
|
||||
}
|
||||
sync_tcp_mss = sockopt_tcp_mss_get(p->connection->fd);
|
||||
vty_out(vty, " Configured tcp-mss is %d", p->tcp_mss);
|
||||
vty_out(vty, ", synced tcp-mss is %d\n", sync_tcp_mss);
|
||||
|
||||
/* Extended Optional Parameters Length for BGP OPEN Message */
|
||||
if (BGP_OPEN_EXT_OPT_PARAMS_CAPABLE(p))
|
||||
|
Loading…
Reference in New Issue
Block a user