All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
FUZZING utilities

Various utilities for fuzzing network applications. More...

Detailed Description

Various utilities for fuzzing network applications.

Files

file  fuzzing.h
 

Functions

int fuzzing_init (ipv6_addr_t *addr, unsigned pfx_len)
 Initialize dummy network interface with given address.
 
int fuzzing_read_packet (int fd, gnrc_pktsnip_t *pkt)
 Read a network packet from the given file descriptor.
 
uint8_t * fuzzing_read_bytes (int fd, size_t *size)
 Read data from the given file descriptor.
 

Function Documentation

◆ fuzzing_init()

int fuzzing_init ( ipv6_addr_t * addr,
unsigned pfx_len )

Initialize dummy network interface with given address.

Parameters
addrIPv6 address to use for interface, can be NULL.
pfx_lenThe 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
fdFile descriptor to read data from.
sizeByte count of the data read.
Returns
pointer to the data on success, NULL otherwise.

◆ fuzzing_read_packet()

int fuzzing_read_packet ( int fd,
gnrc_pktsnip_t * pkt )

Read a network packet from the given file descriptor.

Parameters
fdFile descriptor to read packet from.
pktAllocated packet structure to write packet to, will be resized accordingly.
Returns
0 on success, non-zero otherwise.