Loading...
Searching...
No Matches
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
22#ifndef FUZZING_H
23#define FUZZING_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#include <stdint.h>
30
31#include "net/ipv6/addr.h"
32#include "net/gnrc/pkt.h"
33
42int fuzzing_init(ipv6_addr_t *addr, unsigned pfx_len);
43
54
63uint8_t *fuzzing_read_bytes(int fd, size_t *size);
64
65#ifdef __cplusplus
66}
67#endif
68
70#endif /* FUZZING_H */
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.
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:72