Skip to content

Commit

Permalink
incorporating
Browse files Browse the repository at this point in the history
mtcp-stack/mtcp mtcp-stack#329: A bug by static variables in RunMainLoop()
by taehyunkim1527.
  • Loading branch information
yasuhironet committed Oct 15, 2024
1 parent 7e70a01 commit c15f1ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtcp/src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ RunMainLoop(struct mtcp_thread_context *ctx)

for (rx_inf = 0; rx_inf < CONFIG.eths_num; rx_inf++) {

static uint16_t len;
static uint8_t *pktbuf;
uint16_t len;
uint8_t *pktbuf;
recv_cnt = mtcp->iom->recv_pkts(ctx, rx_inf);
STAT_COUNT(mtcp->runstat.rounds_rx_try);

Expand Down

0 comments on commit c15f1ce

Please sign in to comment.