From 6cb685b700aa80b5743655b1a4a2020c346ff5d1 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 16 Dec 2025 16:46:03 -0300 Subject: [PATCH] fix fuzzer --- test/fuzz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fuzz.c b/test/fuzz.c index 4314235d..69a5be3c 100644 --- a/test/fuzz.c +++ b/test/fuzz.c @@ -100,7 +100,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { memcpy(pkt, data, size); if (size > sizeof(*eth)) { static size_t i; - uint16_t eth_types[] = {0x800, 0x806, 0x86dd}; // IPv4, ARP, IPv6 + // eth_types[] exists in l2_eth.c memcpy(eth->dst, mif.mac, 6); // Set valid destination MAC // send all handled eth types, then 2 random ones if (i >= (sizeof(eth_types) / sizeof(eth_types[0]) + 2)) i = 0;