iPXE
cachedhcp.h
Go to the documentation of this file.
1 #ifndef _IPXE_CACHEDHCP_H
2 #define _IPXE_CACHEDHCP_H
3 
4 /** @file
5  *
6  * Cached DHCP packet
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <stddef.h>
13 #include <ipxe/uaccess.h>
14 
15 struct net_device;
16 struct cached_dhcp_packet;
17 
20 extern struct cached_dhcp_packet cached_pxebs;
21 
22 extern int cachedhcp_record ( struct cached_dhcp_packet *cache,
23  unsigned int vlan, userptr_t data,
24  size_t max_len );
25 extern void cachedhcp_recycle ( struct net_device *netdev );
26 
27 #endif /* _IPXE_CACHEDHCP_H */
unsigned int vlan
VLAN tag (if applicable)
Definition: cachedhcp.c:48
uint16_t max_len
Maximum length (in bytes)
Definition: ntlm.h:18
struct cached_dhcp_packet cached_dhcpack
Cached DHCPACK.
Definition: cachedhcp.c:60
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct cached_dhcp_packet cached_pxebs
Cached PXEBSACK.
Definition: cachedhcp.c:71
Access to external ("user") memory.
struct cached_dhcp_packet cached_proxydhcp
Cached ProxyDHCPOFFER.
Definition: cachedhcp.c:66
static struct net_device * netdev
Definition: gdbudp.c:52
void cachedhcp_recycle(struct net_device *netdev)
Recycle cached DHCPACK.
Definition: cachedhcp.c:352
A cached DHCP packet.
Definition: cachedhcp.c:42
int cachedhcp_record(struct cached_dhcp_packet *cache, unsigned int vlan, userptr_t data, size_t max_len)
Record cached DHCP packet.
Definition: cachedhcp.c:200
A network device.
Definition: netdevice.h:352
uint8_t data[48]
Additional event data.
Definition: ena.h:22
unsigned long userptr_t
A pointer to a user buffer.
Definition: uaccess.h:33