e65afc4b10
The DHCP client code now implements only the mechanism of the DHCP and PXE Boot Server protocols. Boot Server Discovery can be initiated manually using the "pxebs" command. The menuing code is separated out into a user-level function on a par with boot_root_path(), and is entered in preference to a normal filename boot if the DHCP vendor class is "PXEClient" and the PXE boot menu option exists.
22 lines
456 B
C
22 lines
456 B
C
#ifndef _GPXE_FAKEDHCP_H
|
|
#define _GPXE_FAKEDHCP_H
|
|
|
|
/** @file
|
|
*
|
|
* Fake DHCP packets
|
|
*
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
struct net_device;
|
|
|
|
extern int create_fakedhcpdiscover ( struct net_device *netdev,
|
|
void *data, size_t max_len );
|
|
extern int create_fakedhcpack ( struct net_device *netdev,
|
|
void *data, size_t max_len );
|
|
extern int create_fakepxebsack ( struct net_device *netdev,
|
|
void *data, size_t max_len );
|
|
|
|
#endif /* _GPXE_FAKEDHCP_H */
|