summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/dhcp.h
Commit message (Collapse)AuthorAgeFilesLines
* A DHCP session holds a persistent reference to a network deviceMichael Brown2007-01-041-0/+3
|
* Added options listed inMichael Brown2006-12-051-0/+12
| | | | | | http://www.microsoft.com/whdc/winlogo/hwrequirements.mspx as required for iSCSI boot. Note that options 204-206 are listed in the document but don't seem to be defined anywhere on the web.
* Create "username" and "password" DHCP options, ready for placing thisMichael Brown2006-11-281-0/+18
| | | | information in NVS.
* Correct option number for DHCP_DNS_SERVERS, and add it to the requestMichael Brown2006-08-271-1/+1
| | | | list.
* Derive xid dynamically from the netdev, so that we can callMichael Brown2006-08-091-2/+6
| | | | | | | create_dhcp_packet() from pxe_preboot.c, after the dhcp_session is long gone. Expose the functions required by pxe_preboot.c
* Add dhcp_snprintf() for extracting DHCP string options.Michael Brown2006-07-201-0/+10
|
* Print out the lease time, just to show how easy it is.Michael Brown2006-07-201-0/+3
|
* Added dhcp_ipv4_option() and friends.Michael Brown2006-07-201-0/+7
| | | | Added test code to configure the interface for IPv4 after DHCP.
* Now successfully negotiates the whole DHCPDISCOVER/OFFER/REQUEST/ACKMichael Brown2006-07-201-5/+11
| | | | cycle. :)
* Now capable of sending what, to me, looks like a valid DHCPDISCOVERMichael Brown2006-07-191-2/+10
| | | | (apart from the bad UDP checksum).
* Added some debug messages and DHCP test codeMichael Brown2006-07-191-0/+2
|
* Proof of concept: transmit a single DHCPDISCOVER and dump out anyMichael Brown2006-07-191-0/+3
| | | | parsed DHCP responses.
* Add some DHCP options that we are likely to useMichael Brown2006-07-191-1/+33
|
* Added macros for generating static DHCP optionsMichael Brown2006-07-191-0/+60
|
* Split DHCP packet creation into two parts: creating the basic packetMichael Brown2006-07-191-82/+117
| | | | | | | structure, and populating it with options. This should allow us to use the same basic options list for both DHCPDISCOVER and DHCPREQUEST, plus making it much easier to set the non-constant parameters (e.g. requested IP address) in request packets.
* Allow for calling find_dhcp_option() with "options" set to NULL, in orderMichael Brown2006-07-191-49/+6Star
| | | | | | | to search through all registered option blocks. Move some static inlines that are likely to be used frequently into dhcpopts.c as normal functions, to save space.
* Fix creation of the htype field; the ll_proto field from which it isMichael Brown2006-07-171-1/+11
| | | | derived is a 16-bit big-endian field, but htype is only 8 bits wide.
* Add sketch code to reassemble a DHCP packet from our internal "everythingMichael Brown2006-07-171-0/+22
| | | | | | | | | | is a DHCP option" data structures. We need this code in order to be able to return a DHCP packet to a PXE NBP which reflects options from our multiple sources (e.g. NVS and DHCP server). This is expensive, but necessary. Having paid this cost, we may as well try to use the same code to generate our DHCP request packets, since the process is similar.
* Add (untested) code for parsing a received DHCP packet and constructing aMichael Brown2006-07-151-3/+150
| | | | DHCP options block from the contents.
* Add code to modify DHCP option values within a block.Michael Brown2006-07-131-5/+65
|
* Provide a mechanism for returning the encapsulator as well as theMichael Brown2006-06-281-0/+14
| | | | | encapsulated option; this will be needed for modifications to the options block.
* Add priority mechanismMichael Brown2006-06-281-0/+9
|
* First stab at DHCP option handling in a way that will allow us to haveMichael Brown2006-06-271-0/+87
multiple option sources (e.g. multiple DHCP replies, non-volatile storage etc.)