fuzzing.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Sören Tempel <tempel@uni-bremen.de>
3  * Copyright (C) 2022 Bennet Blischke <bennet.blischke@haw-hamburg.de>
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
10 #pragma once
11 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #include <stdint.h>
29 
30 #include "net/ipv6/addr.h"
31 #include "net/gnrc/pkt.h"
32 
41 int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len);
42 
53 
62 uint8_t *fuzzing_read_bytes(int fd, size_t *size);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
int fuzzing_read_packet(int fd, gnrc_pktsnip_t *pkt)
Read a network packet from the given file descriptor.
int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len)
Initialize dummy network interface with given address.
uint8_t * fuzzing_read_bytes(int fd, size_t *size)
Read data from the given file descriptor.
Definitions for IPv6 addresses.
General definitions for network packets and their helper functions.
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:108
Data type to represent an IPv6 address.
Definition: addr.h:67