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_bytes()
uint8_t * fuzzing_read_bytes |
( |
int |
fd, |
|
|
size_t * |
size |
|
) |
| |
Read data from the given file descriptor.
- Parameters
-
fd | File descriptor to read data from. |
size | Byte count of the data read. |
- Returns
- pointer to the data on success, NULL 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.