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. More...
 
int fuzzing_read_packet (int fd, gnrc_pktsnip_t *pkt)
 Read a network packet from the given file descriptor. More...
 

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_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.