fuzzing.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2019 Sören Tempel <tempel@uni-bremen.de>
3  * SPDX-FileCopyrightText: 2022 Bennet Blischke <bennet.blischke@haw-hamburg.de>
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include <stdint.h>
26 
27 #include "net/ipv6/addr.h"
28 #include "net/gnrc/pkt.h"
29 
38 int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len);
39 
50 
59 uint8_t *fuzzing_read_bytes(int fd, size_t *size);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
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:105
Data type to represent an IPv6 address.
Definition: addr.h:64