iPXE
fakedhcp.h
Go to the documentation of this file.
1#ifndef _IPXE_FAKEDHCP_H
2#define _IPXE_FAKEDHCP_H
3
4/** @file
5 *
6 * Fake DHCP packets
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <stdint.h>
14
15struct net_device;
16
17extern int create_fakedhcpdiscover ( struct net_device *netdev,
18 void *data, size_t max_len );
19extern int create_fakedhcpack ( struct net_device *netdev,
20 void *data, size_t max_len );
21extern int create_fakepxebsack ( struct net_device *netdev,
22 void *data, size_t max_len );
23
24#endif /* _IPXE_FAKEDHCP_H */
uint8_t data[48]
Additional event data.
Definition ena.h:11
int create_fakedhcpdiscover(struct net_device *netdev, void *data, size_t max_len)
Create fake DHCPDISCOVER packet.
Definition fakedhcp.c:110
int create_fakepxebsack(struct net_device *netdev, void *data, size_t max_len)
Create fake PXE Boot Server ACK packet.
Definition fakedhcp.c:179
int create_fakedhcpack(struct net_device *netdev, void *data, size_t max_len)
Create fake DHCPACK packet.
Definition fakedhcp.c:137
static struct net_device * netdev
Definition gdbudp.c:53
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
A network device.
Definition netdevice.h:353