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 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <stdint.h>
13 
14 struct net_device;
15 
16 extern int create_fakedhcpdiscover ( struct net_device *netdev,
17  void *data, size_t max_len );
18 extern int create_fakedhcpack ( struct net_device *netdev,
19  void *data, size_t max_len );
20 extern int create_fakepxebsack ( struct net_device *netdev,
21  void *data, size_t max_len );
22 
23 #endif /* _IPXE_FAKEDHCP_H */
static void size_t size_t max_len
Definition: entropy.h:153
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static struct net_device * netdev
Definition: gdbudp.c:52
int create_fakedhcpack(struct net_device *netdev, void *data, size_t max_len)
Create fake DHCPACK packet.
Definition: fakedhcp.c:136
A network device.
Definition: netdevice.h:348
int create_fakedhcpdiscover(struct net_device *netdev, void *data, size_t max_len)
Create fake DHCPDISCOVER packet.
Definition: fakedhcp.c:109
struct arbelprm_port_state_change_st data
Message.
Definition: arbel.h:12
int create_fakepxebsack(struct net_device *netdev, void *data, size_t max_len)
Create fake PXE Boot Server ACK packet.
Definition: fakedhcp.c:178