Various utilities for fuzzing network applications.
More...
Various utilities for fuzzing network applications.
◆ fuzzing_init()
int fuzzing_init |
( |
ipv6_addr_t * |
addr, |
|
|
unsigned |
pfx_len |
|
) |
| |
Initialize dummy network interface with given address.
- Parameters
-
addr | IPv6 address to use for interface, can be NULL. |
pfx_len | The prefix length of addr , ignored if addr is NULL. |
- Returns
- 0 on success, non-zero otherwise.
◆ fuzzing_read_packet()
Read a network packet from the given file descriptor.
- Parameters
-
fd | File descriptor to read packet from. |
pkt | Allocated packet structure to write packet to, will be resized accordingly. |
- Returns
- 0 on success, non-zero otherwise.