diff options
| author | luwenpeng <[email protected]> | 2024-11-21 11:39:34 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-11-21 11:41:27 +0800 |
| commit | 601af3330d5beaa69cdf9d0dd1dc423b3d88906d (patch) | |
| tree | 4f32c4d04d3dd0be03facac571ce00d9f8752833 /infra/stellar_core.c | |
| parent | b76949b0e4820d4136ad86cdf342964fc879ab60 (diff) | |
If a packet is marked as dropped, the packet manager will destroy it and its exdata at the end of the current stage, preventing it from entering the next stage.
Diffstat (limited to 'infra/stellar_core.c')
| -rw-r--r-- | infra/stellar_core.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/infra/stellar_core.c b/infra/stellar_core.c index 6272241..362dfda 100644 --- a/infra/stellar_core.c +++ b/infra/stellar_core.c @@ -76,14 +76,7 @@ static void *worker_thread(void *arg) packet_manager_dispatch(pkt_mgr, thread_id); while ((pkt = packet_manager_egress(pkt_mgr, thread_id))) { - if (packet_get_action(pkt) == PACKET_ACTION_DROP) - { - packet_io_drop(pkt_io, thread_id, &pkt, 1); - } - else - { - packet_io_send(pkt_io, thread_id, &pkt, 1); - } + packet_io_send(pkt_io, thread_id, &pkt, 1); } packet_io_clean(pkt_io, thread_id); |
