cloud-hypervisor/net_util/src
Bo Chen 83ab5ea528 virtio-devices: net: Provide custom functions for fuzzing
Three functions are added:
* 'Tap::new_for_fuzzing()' a custom constructor that creates a dummy
`Tap` interface directly from `File` backed by Unix domain socket;
* 'Tap::mtu()' a custom function that returns hard-coded mtu;
* 'Net::wait_for_epoll_threads()'.

Two functions are reused with modifications to work with the dummy 'Tap'
interface:
* 'Net::new_with_tap()' is made public for fuzzing;
* 'Net::activate()' is modified to not call into 'Tap::set_offload()'
for fuzzing.

Signed-off-by: Bo Chen <chen.bo@intel.com>
2022-11-30 12:13:14 +00:00
..
ctrl_queue.rs virtio-devices: Optimize add_used() usage 2022-07-29 17:41:32 +01:00
lib.rs net_util: modify or provide safety comments 2022-11-18 12:50:01 +00:00
mac.rs build: Fix beta clippy issue (derive_partial_eq_without_eq) 2022-06-30 20:50:45 +01:00
open_tap.rs misc: Unify error message punctuation 2022-10-21 12:19:07 +02:00
queue_pair.rs net_util: queue_pair: Avoid integer overflow 2022-11-28 17:19:53 +00:00
tap.rs virtio-devices: net: Provide custom functions for fuzzing 2022-11-30 12:13:14 +00:00