mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 00:07:27 +03:00
Allow for settings to be described by something other than a DHCP option
tag if desirable. Currently used only for the MAC address setting.
Separate out fake DHCP packet creation code from dhcp.c to fakedhcp.c.
Remove notion of settings from dhcppkt.c.
Rationalise dhcp.c to use settings API only for final registration of the
DHCP options, rather than using {store,fetch}_setting throughout.
22 lines
464 B
C
22 lines
464 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_fakeproxydhcpack ( struct net_device *netdev,
|
|
void *data, size_t max_len );
|
|
|
|
#endif /* _GPXE_FAKEDHCP_H */
|