From 5d527567357ed859eeb01062777f2c313ee08da2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 9 Aug 2021 23:01:32 -0400 Subject: bgpd: Move t_process_packet and t_process_packet_error to connection The t_process_packet thread events should be managed by the connection. Signed-off-by: Donald Sharp --- bgpd/bgp_fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bgpd/bgp_fsm.c') diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index b951ada19..41d386eba 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -172,7 +172,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer) EVENT_OFF(from_peer->t_delayopen); EVENT_OFF(from_peer->t_connect_check_r); EVENT_OFF(from_peer->t_connect_check_w); - EVENT_OFF(from_peer->t_process_packet); + EVENT_OFF(from_peer->connection.t_process_packet); /* * At this point in time, it is possible that there are packets pending @@ -341,7 +341,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer) bgp_reads_on(&peer->connection); bgp_writes_on(&peer->connection); event_add_event(bm->master, bgp_process_packet, &peer->connection, 0, - &peer->t_process_packet); + &peer->connection.t_process_packet); return (peer); } -- cgit v1.2.3