nftables/include/afl++.h
Florian Westphal 32c994f849 src: move fuzzer functionality to separate tool
This means some loss of functionality since you can no longer combine
--fuzzer with options like --debug, --define, --include.

On the upside, this adds new --random-outflags mode which will randomly
switch --terse, --numeric, --echo ... on/off.

Update README to reflect this change.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
2025-11-20 22:16:43 +01:00

24 lines
730 B
C

#ifndef _NFT_AFLPLUSPLUS_H_
#define _NFT_AFLPLUSPLUS_H_
#include <nftables/libnftables.h>
/*
* enum nft_afl_fuzzer_stage - current fuzzer stage
*
* @NFT_AFL_FUZZER_DISABLED: running without --fuzzer
* @NFT_AFL_FUZZER_PARSER: only fuzz the parser, do not run eval step.
* @NFT_AFL_FUZZER_EVALUATION: continue to evaluation step, if possible.
* @NFT_AFL_FUZZER_NETLINK_RO: convert internal representation to netlink buffer but don't send any changes to the kernel.
* @NFT_AFL_FUZZER_NETLINK_RW: send the netlink message to kernel for processing.
*/
enum nft_afl_fuzzer_stage {
NFT_AFL_FUZZER_DISABLED,
NFT_AFL_FUZZER_PARSER,
NFT_AFL_FUZZER_EVALUATION,
NFT_AFL_FUZZER_NETLINK_RO,
NFT_AFL_FUZZER_NETLINK_RW,
};
#endif