Loading...
Searching...
No Matches
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
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26
27#include "net/ipv6/addr.h"
28#include "net/gnrc/pkt.h"
29
38int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len);
39
50
59uint8_t *fuzzing_read_bytes(int fd, size_t *size);
60
61#ifdef __cplusplus
62}
63#endif
64
struct gnrc_pktsnip gnrc_pktsnip_t
Type to represent parts (either headers or payload) of a packet, called snips.
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.
int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len)
Initialize dummy network interface with given address.
Definitions for IPv6 addresses.
General definitions for network packets and their helper functions.
Data type to represent an IPv6 address.
Definition addr.h:64