Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A DHCP session holds a persistent reference to a network device | Michael Brown | 2007-01-04 | 1 | -0/+3 |
| | |||||
* | Added options listed in | Michael Brown | 2006-12-05 | 1 | -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 this | Michael Brown | 2006-11-28 | 1 | -0/+18 |
| | | | | information in NVS. | ||||
* | Correct option number for DHCP_DNS_SERVERS, and add it to the request | Michael Brown | 2006-08-27 | 1 | -1/+1 |
| | | | | list. | ||||
* | Derive xid dynamically from the netdev, so that we can call | Michael Brown | 2006-08-09 | 1 | -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 Brown | 2006-07-20 | 1 | -0/+10 |
| | |||||
* | Print out the lease time, just to show how easy it is. | Michael Brown | 2006-07-20 | 1 | -0/+3 |
| | |||||
* | Added dhcp_ipv4_option() and friends. | Michael Brown | 2006-07-20 | 1 | -0/+7 |
| | | | | Added test code to configure the interface for IPv4 after DHCP. | ||||
* | Now successfully negotiates the whole DHCPDISCOVER/OFFER/REQUEST/ACK | Michael Brown | 2006-07-20 | 1 | -5/+11 |
| | | | | cycle. :) | ||||
* | Now capable of sending what, to me, looks like a valid DHCPDISCOVER | Michael Brown | 2006-07-19 | 1 | -2/+10 |
| | | | | (apart from the bad UDP checksum). | ||||
* | Added some debug messages and DHCP test code | Michael Brown | 2006-07-19 | 1 | -0/+2 |
| | |||||
* | Proof of concept: transmit a single DHCPDISCOVER and dump out any | Michael Brown | 2006-07-19 | 1 | -0/+3 |
| | | | | parsed DHCP responses. | ||||
* | Add some DHCP options that we are likely to use | Michael Brown | 2006-07-19 | 1 | -1/+33 |
| | |||||
* | Added macros for generating static DHCP options | Michael Brown | 2006-07-19 | 1 | -0/+60 |
| | |||||
* | Split DHCP packet creation into two parts: creating the basic packet | Michael Brown | 2006-07-19 | 1 | -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 order | Michael Brown | 2006-07-19 | 1 | -49/+6![]() |
| | | | | | | | 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 is | Michael Brown | 2006-07-17 | 1 | -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 "everything | Michael Brown | 2006-07-17 | 1 | -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 a | Michael Brown | 2006-07-15 | 1 | -3/+150 |
| | | | | DHCP options block from the contents. | ||||
* | Add code to modify DHCP option values within a block. | Michael Brown | 2006-07-13 | 1 | -5/+65 |
| | |||||
* | Provide a mechanism for returning the encapsulator as well as the | Michael Brown | 2006-06-28 | 1 | -0/+14 |
| | | | | | encapsulated option; this will be needed for modifications to the options block. | ||||
* | Add priority mechanism | Michael Brown | 2006-06-28 | 1 | -0/+9 |
| | |||||
* | First stab at DHCP option handling in a way that will allow us to have | Michael Brown | 2006-06-27 | 1 | -0/+87 |
multiple option sources (e.g. multiple DHCP replies, non-volatile storage etc.) |