Skip to content

Commit

Permalink
fuzz: count packets for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsimon committed Oct 3, 2023
1 parent 9509acd commit 732d341
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/fuzz/fuzz_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ static void input_pkt(struct netif *netif, const u8_t *data, size_t len)

static void input_pkts(enum lwip_fuzz_type type, struct netif *netif, const u8_t *data, size_t len)
{
size_t packet_nr = 0;
remfuzz_ptr = data;
remfuzz_len = len;

Expand All @@ -228,6 +229,7 @@ static void input_pkts(enum lwip_fuzz_type type, struct netif *netif, const u8_t
#ifdef LWIP_FUZZ_SYS_NOW
u32_t external_delay = 0;
#endif
packet_nr++;
if (type == LWIP_FUZZ_MULTIPACKET_TIME) {
#ifdef LWIP_FUZZ_SYS_NOW
/* Extract external delay time from fuzz pool */
Expand Down

0 comments on commit 732d341

Please sign in to comment.