aboutsummaryrefslogtreecommitdiff
path: root/libhfnetdriver
AgeCommit message (Collapse)Author
2023-09-17make indentRobert Swiecki
2021-04-21netdriver SOL_TCP equivalent is IPPROTO_TCP on FreeBSDDavid Carlier
2020-05-28libhfnetdriver: rework the timeouts, so more debugging info is printedRobert Swiecki
2020-05-26libhfnetdriver: rewrite the timeout code slightlyRobert Swiecki
2020-05-26make indentRobert Swiecki
2020-05-26add chose when tcp server not return anythingunknown
2020-04-29New directives in .clang-formatRobert Swiecki
2020-04-24libhfnetdriver: use a simpler method to convert sockaddr_un to stringRobert Swiecki
2019-12-03android: fixes for AndroidRobert Swiecki
2019-12-02Fixes for https://github.com/google/honggfuzz/pull/293Robert Swiecki
2019-12-01netdriver: make it possible to specify both type (e.g. SOCK_DGRAM)Robert Swiecki
and protocol for the destination address. This requires change to the HonggfuzzNetDriverServerAddress() declaration, as it needs to enable its users to specify those two additional params. Additionally, pass struct sockaddr_storage to HonggfuzzNetDriverServerAddress(), as this will prevent this func for owning storage for the used sockaddr. It was not a bug, but this semantics should be more familiar for C coders.
2019-11-30libhfnetdriver: use 'socket' instead of 'pipe' for the default socket nameRobert Swiecki
2019-11-29libhfnetdriver: dbg messageRobert Swiecki
2019-11-29Use sockaddr length from fuzzerMichael Hanselmann
Commit 6814cb6a0 made major changes and introduced the "HonggfuzzNetDriverServerAddress" function which can be defined by a fuzzer. Unfortunately the connection attempt didn't use the fuzzer-provided length and thus truncated longer socket address structures such as "sockaddr_un". Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-11-29libhfnetdriver: preserve errno in netDriver_sockConnAddr()Robert Swiecki
2019-11-28libhfnetdriver: more commentsRobert Swiecki
2019-11-28libhfnetdriver: use defines for some constant values like ports and pathsRobert Swiecki
2019-11-28libhfnetdriver: use correct check for HonggfuzzNetDriverTempdir retvalRobert Swiecki
2019-11-28libhnetdriver: treat HFND_SOCK_PATH specially if the first char is '/': ↵Robert Swiecki
treat it as absolute path then
2019-11-28netdriver: use HFND_SOCK_PATH to modify netdriver's socket pathRobert Swiecki
2019-11-28libhfnetdriver: use correct path to ${HonggfuzzNetDriverTempdir()}/pipe - ↵Robert Swiecki
add missing "/pipe"
2019-11-28libhfnetdriver: Add support for the default AF_UNIX sockets.Robert Swiecki
Currently the netdriver connects to TCP4/TCP6 loopback addresses at the port 8080 (or, at whatever is returned by the HonggfuzzNetDriverPort()) This change will also make the netdriver to connect to the socket (AF_UNIX) at HonggfuzzNetDriverTempdir()/pipe, which in most cases will evaluate to '/tmp/HFND_TMP_DIR/pipe' (unless a custom HonggfuzzNetDriverTempdir() func is defined) Heavily inspired by https://github.com/hansmi 's https://github.com/google/honggfuzz/pull/291
2019-11-28libhfnetdriver: a few cleanups around setting options for TCP socketsRobert Swiecki
2019-11-28libhfnetdriver: typosRobert Swiecki
2019-11-28libhfnetdriver: allow to use HonggfuzzNetDriverServerAddress for custom ↵Robert Swiecki
destination addresses
2019-11-28libhfnetdriver: initialize tmpdir to NULsRobert Swiecki
2019-11-27hfuzz-cc: -shared is used with linking mode actuallyRobert Swiecki
2019-11-27Support AF_UNIX address formattingMichael Hanselmann
The forthcoming introduction of AF_UNIX support in libhfnetdriver requires the ability to format such addresses via the "files_sockAddrToStr" function. Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-11-25libhfnetdriver: use snprintf instead of util_ssnprintf as the buffer passed ↵Robert Swiecki
might not be initialized
2019-11-25netdriver: Make temporary directory overridableMichael Hanselmann
Commit 627189739 changed the name of the path at which a tmpfs is mounted for the duration of a main program from "/tmp/FUZZ" to "/tmp/HFND_TMP_DIR". This change adds a weak-linked function allowing fuzzers to override the temporary directory, e.g.: int HonggfuzzNetDriverTempdir(char *str, size_t size) { return snprintf(str, size, "/tmp/foo.%d", getpid()); } This is particularily useful when multiple users share a system and shouldn't each other. A future change could make the code use mkdtemp(3). The default path remains "/tmp/HFND_TMP_DIR" and the "/tmp/FUZZ" directory isn't affected by this change. Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-11-21libhfcommon/linux: allow to specify mount options for tmpfsRobert Swiecki
2019-09-13libhfcommon/files: remove unneeded copyFileRobert Swiecki
2019-05-23hfuzz-cc: disjoin libhfcommon from libhfuzz and libhfnetdriverRobert Swiecki
2019-05-15hfuzz-cc: mark HonggfuzzNetDriver_main as undefined but don't define it in ↵Robert Swiecki
the netdriver
2019-04-01hfcommin/util: implement sleep resistant to interruptsRobert Swiecki
2019-03-30netdriver: guard sleep against EINTRRobert Swiecki
2019-02-21hfnetdriver: lower some logging levelsRobert Swiecki
2019-02-21libhfnetdriver: set SO_SNDBUFRobert Swiecki
2019-02-02netdriver: loggingRobert Swiecki
2019-02-02hfcommon: add files_sockAddrToStr implementationRobert Swiecki
2019-01-30netdriver: log msgRobert Swiecki
2019-01-30ALL: remove -p (pid), simplify the subproc state machine. NetBSD will stop ↵Robert Swiecki
working for some time, will be fixed in the coming days
2019-01-27netdriver: log msgRobert Swiecki
2019-01-27netdriver: typoRobert Swiecki
2019-01-26netdriver: a couple of small changesRobert Swiecki
2019-01-26hfnetdriver: better handling of IPv4 vs IPV6Robert Swiecki
2019-01-26better fatal exitRobert Swiecki
2019-01-24netdriver: simplify TCP port configRobert Swiecki
2019-01-23netdriver: better loggingRobert Swiecki
2019-01-04typo in libhfnetdriverRobert Swiecki