Instead of relaying struct peer from the SE to the RDE to fill out 10
authorclaudio <claudio@openbsd.org>
Thu, 9 Feb 2023 13:43:23 +0000 (13:43 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 9 Feb 2023 13:43:23 +0000 (13:43 +0000)
commit82625ff8f2e7c3ac782958440210b6953586aeb5
tree6abd45e7b8758a0fc3da30e46c33d30c135c993b
parentb7cf571f83522f53df8a14fa01dcbeff8df0f02a
Instead of relaying struct peer from the SE to the RDE to fill out 10
stat numbers, just send the peerid and have the RDE response with the
stats. The control code will then merge these counters into the real
peer struct and send that to bgpctl. This reduces the number of bytes
sent around a fair bit.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/control.c
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_peer.c
usr.sbin/bgpd/rde_rib.c
usr.sbin/bgpd/rde_update.c
usr.sbin/bgpd/session.c
usr.sbin/bgpd/session.h