diff options
| author | Michael Brown | 2007-07-31 04:02:21 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-07-31 04:02:21 +0200 |
| commit | 5e26df03251378c2990e74ad0c45eb90e4a98256 (patch) | |
| tree | 6a261b099acabd6f8a46d450d12bbb5dd2a40c68 /src/include | |
| parent | Added the AoE boot information table as used by Vampyre's AoE (diff) | |
| download | ipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.tar.gz ipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.tar.xz ipxe-5e26df03251378c2990e74ad0c45eb90e4a98256.zip | |
Centralise construction of the DHCP request and response packets.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/dhcp.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 645756522..a7cac228d 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -503,15 +503,19 @@ extern void find_global_dhcp_ipv4_option ( unsigned int tag, struct in_addr *inp ); extern void delete_dhcp_option ( struct dhcp_option_block *options, unsigned int tag ); + extern int apply_dhcp_options ( struct dhcp_option_block *options ); extern int apply_global_dhcp_options ( void ); -extern struct dhcp_option_block dhcp_request_options; -extern int create_dhcp_packet ( struct net_device *netdev, uint8_t msgtype, - void *data, size_t max_len, - struct dhcp_packet *dhcppkt ); -extern int copy_dhcp_packet_options ( struct dhcp_packet *dhcppkt, - struct dhcp_option_block *options ); +extern int create_dhcp_request ( struct net_device *netdev, int msgtype, + struct dhcp_option_block *options, + void *data, size_t max_len, + struct dhcp_packet *dhcppkt ); +extern int create_dhcp_response ( struct net_device *netdev, int msgtype, + struct dhcp_option_block *options, + void *data, size_t max_len, + struct dhcp_packet *dhcppkt ); + extern int start_dhcp ( struct job_interface *job, struct net_device *netdev, int (*register_options) ( struct net_device *, struct dhcp_option_block * )); |
