netdriver: Allow to set hfuzz->exe.netDriver explicitly
diff --git a/cmdline.c b/cmdline.c
index b177ab3..6a5e129 100644
--- a/cmdline.c
+++ b/cmdline.c
@@ -430,11 +430,12 @@
{ { "save_all", no_argument, NULL, 'u' }, "Save all test-cases (not only the unique ones) by appending the current time-stamp to the filenames" },
{ { "tmout_sigvtalrm", no_argument, NULL, 'T' }, "Use SIGVTALRM to kill timeouting processes (default: use SIGKILL)" },
{ { "sanitizers", no_argument, NULL, 'S' }, "Enable sanitizers settings (default: false)" },
- { { "san_opts", required_argument, NULL, 0x10A }, "Options appended to the regular *SAN_OPTIONS (default: empty)" },
{ { "monitor_sigabrt", required_argument, NULL, 0x105 }, "Monitor SIGABRT (default: false for Android, true for other platforms)" },
{ { "no_fb_timeout", required_argument, NULL, 0x106 }, "Skip feedback if the process has timeouted (default: false)" },
{ { "exit_upon_crash", no_argument, NULL, 0x107 }, "Exit upon seeing the first crash (default: false)" },
- { { "socket_fuzzer", no_argument, NULL, 0x10b }, "Instrument external fuzzer via socket" },
+ { { "san_opts", required_argument, NULL, 0x10A }, "Options appended to the regular *SAN_OPTIONS (default: empty)" },
+ { { "socket_fuzzer", no_argument, NULL, 0x10B }, "Instrument external fuzzer via socket" },
+ { { "netdriver", no_argument, NULL, 0x10C }, "Use netdriver (libhfnetdriver/). In most cases it will be autodetected through a binary signature" },
{ { "only_printable", no_argument, NULL, 'o' }, "Only generate printable inputs" },
#if defined(_HF_ARCH_LINUX)
@@ -548,6 +549,9 @@
hfuzz->socketFuzzer.enabled = true;
hfuzz->timing.tmOut = 0; // Disable process timeout checks
break;
+ case 0x10C:
+ hfuzz->exe.netDriver = true;
+ break;
case 'o':
hfuzz->cfg.only_printable = true;
break;