summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [NETDEV] Add notion of link stateMichael Brown2008-04-2213-2/+110
| | | | | | | | | | | Add ability for network devices to flag link up/down state to the networking core. Autobooting code will now wait for link-up before attempting DHCP. IPoIB reflects the Infiniband link state as the network device link state (which is not strictly correct; we also need a succesful IPoIB IPv4 broadcast group join), but is probably more informative.
* [Infiniband] Fix event queue doorbell ringing on ArbelMichael Brown2008-04-222-2/+14
|
* [Infiniband] Add multiport support for Arbel cardsMichael Brown2008-04-223-18/+304
|
* [Infiniband] Move event-queue process from driver to Infiniband coreMichael Brown2008-04-215-256/+348
|
* [Hermon] Fix event queue doorbells.Michael Brown2008-04-182-24/+60
| | | | | | Event queue doorbells must use UAR pages 0-127 depending on event queue number; other doorbells must use pages 128+ (and we choose to use page 128).
* [Infiniband] Add preliminary multiple port support for Hermon cardsMichael Brown2008-04-186-141/+577
| | | | | | | | | | | | Infiniband devices no longer block waiting for link-up in register_ibdev(). Hermon driver needs to create an event queue and poll for link-up events. Infiniband core needs to reread MAD parameters when link state changes. IPoIB needs to cope with Infiniband link parameters being only partially available at probe and open time.
* [HCI] Display "Not an executable image" when appropriateMichael Brown2008-04-082-0/+9
| | | | | | | | | | | | | PXE is a catch-all image format with no signature checks. If an unsupported image file is loaded, it will be treated as a PXE image. In most cases, the image will be too large to be loaded as a PXE image (which has to fit in base memory), so the error returned to the user will be that the segment could not fit within the memory region. Add an explicit check to pxe_image.c to reject images larger than base memory with ENOEXEC. Add ENOEXEC to the error string table.
* [Drivers-r8169] Add support for newer rtl8169 variants from Hilko BengenMarty Connor2008-03-312-221/+363
| | | | | 03-19-2008, Hilko Bengen, Cleanups and fixes for newer cards (successfully tested with 8110SC-d onboard NIC)
* [http] gPXE is a HTTP/1.0 client, not a HTTP/1.1 clientH. Peter Anvin2008-03-311-1/+1
| | | | | | | | | | | | | | | gPXE is not compliant with the HTTP/1.1 specification (RFC 2616), since it lacks support for "Transfer-Encoding: chunked". gPXE is, however, compliant with the HTTP/1.0 specification (RFC 1945), which does not require "Transfer-Encoding: chunked" to be supported. The only HTTP/1.1 feature that gPXE uses is the "Host:" header, but servers universally accept that one from HTTP/1.0 clients as an optional extension (it is obligatory for HTTP/1.1). gPXE does not, for example, appear to support connection caching. Advertising as a HTTP/1.0 client will typically make the server close the connection immediately upon sending the last data, which is actually beneficial if we aren't going to keep the connection alive anyway.
* [Settings] Expose SMBIOS via settings APIMichael Brown2008-03-289-138/+329
| | | | In particular, expose the system UUID as a setting ("smbios/uuid").
* [DHCP] Add support for ProxyDHCP requestsMichael Brown2008-03-273-351/+557
| | | | | | | | | | | | | | | | The PXE spec is (as usual) unclear on precisely when ProxyDHCPREQUESTs should be issued. We adapt the following, slightly paranoid approach: If an offer contains an IP address, then it is a normal DHCPOFFER. If an offer contains an option #60 "PXEClient", then it is a ProxyDHCPOFFER. Note that the same packet can be both a normal DHCPOFFER and a ProxyDHCPOFFER. After receiving the normal DHCPACK, if we have received a ProxyDHCPOFFER, we unicast a ProxyDHCPREQUEST back to the ProxyDHCP server on port 4011. If we time out waiting for a ProxyDHCPACK, we treat this as a non-fatal error.
* [Settings] find_child_settings() accepts a NULL parentMichael Brown2008-03-271-0/+4
|
* [DHCP] Treat empty fields in DHCP packets as non-existent.Michael Brown2008-03-271-10/+48
| | | | | This avoids confusing other code by insisting that we have e.g. a filename consisting of 128 zero bytes.
* [usr] Offer user a second chance to enter the shell on boot failureMichael Brown2008-03-272-21/+32
|
* [libc] Whitespace cleanup in errno.hMichael Brown2008-03-261-1/+1
|
* [PXEXT] Update documentationH. Peter Anvin2008-03-261-2/+88
| | | | | Add documentation for the FILE_EXEC and FILE_CHECK_API extension calls, and update the documentation for the FILE_READ call.
* [PXEXT] Change the PXE return code for EWOULDBLOCKH. Peter Anvin2008-03-261-2/+2
| | | | | | | | | | | Change the PXE return code for EWOULDBLOCK from PXENV_STATUS_FAILURE to PXENV_STATUS_TFTP_OPEN. This code is only used by the FILE_READ PXEXT call, and is necessary to distinguish "error" from "no data" in that call. (The only other nonblocking call is UDP_READ, where the caller doesn't care about the distinction, however, gPXE doesn't use EWOULDBLOCK internally to represent this condition in that code.)
* [PXEXT] Add FILE_API_CHECK API functionH. Peter Anvin2008-03-264-0/+67
| | | | | Add FILE_API_CHECK to the PXEXT API so the NBP can query the availability and status of the API.
* [DHCP] Save precious packet-aligned memory by copying DHCP responsesMichael Brown2008-03-261-33/+16Star
| | | | | Copy DHCP responses to a standard malloc()ed buffer, rather than retaining the I/O buffer that they arrived in.
* [PXEXT] Avoid queueing zero-length buffers in posix_io.cMichael Brown2008-03-251-6/+12
| | | | | read_user() assumes that zero-length buffers don't exist, and optimises around this.
* [Settings] Remove assumption that all settings have DHCP tag valuesMichael Brown2008-03-2524-709/+854
| | | | | | | | | | | | 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.
* [PXEXT] Avoid returning a false EOF when we have an empty buffer queuedMichael Brown2008-03-251-1/+3
|
* [DHCP] Fix DHCP state confusion.Michael Brown2008-03-251-2/+5
| | | | | DHCP code was using an incorrect check for whether to construct a DHCPDISCOVER or DHCPREQUEST packet.
* [Settings] Add named setting for next-serverMichael Brown2008-03-241-0/+6
| | | | | It's probably easier to have a named setting for next-server, rather than to explain to people why they need to pretend it is option 175.3.
* [Makefile] Use -MM instead of -M in dependency generationMichael Brown2008-03-241-1/+1
| | | | | | Using -MM strips out any system header files from the dependency list, which means that we could safely use an external stdarg.h if we wanted to.
* [libc] Use __builtin_va_list et al in stdarg.hMichael Brown2008-03-242-22/+10Star
| | | | | The home-grown versions don't work properly for static variadic functions, when gcc can choose to use a non-standard calling convention.
* [Settings] copy_settings() should not fail if some settings are missing!Michael Brown2008-03-243-59/+71
|
* [IPv4] Use default netmasks when no subnet mask is specified.Michael Brown2008-03-232-8/+27
|
* [IPv4] Tidy up some header files.Michael Brown2008-03-236-63/+25Star
|
* [DHCP] Fix up fake-packet creation as used by PXENV_GET_CACHED_INFOMichael Brown2008-03-235-79/+148
| | | | | | | | | | | Add dedicated functions create_dhcpdiscover(), create_dhcpack() and create_proxydhcpack() for use by external code such as the PXE preboot code. Register ProxyDHCP options under the global scope "proxydhcp". Unregister previously-acquired DHCP and ProxyDHCP settings when DHCP succeeds.
* [DHCP] FIXME: quick temporary settings fix, needs update for new APIMarty Connor2008-03-221-0/+4
|
* Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxeMichael Brown2008-03-223-0/+56
|\
| * ]Drivers] Update licensing for cs89x0.[ch] and cs89x0.txtMarty Connor2008-03-193-0/+56
| | | | | | | | | | Russ Nelson sent an email requesting the license change to GPL Version 2.
* | [Settings] Bugfix: store_setting() now applies changes even on root blockMichael Brown2008-03-221-3/+2Star
| |
* | [Settings] Implement simple_settings backed with extensible DHCP optionsMichael Brown2008-03-224-26/+72
| |
* | [Settings] DHCP is now working using the new settings API.Michael Brown2008-03-214-18/+29
| |
* | [Settings] Migrate DHCP and NVO code to the new settings API (untested)Michael Brown2008-03-2116-936/+966
| |
* | [DHCP] Kill off some no-longer-used DHCP functionsMichael Brown2008-03-212-128/+0Star
| |
* | [Settings] Use a settings applicator in ibft.cMichael Brown2008-03-211-31/+46
| |
* | [Settings] Use a settings applicator to set the default TFTP URI.Michael Brown2008-03-213-38/+43
| |
* | [Misc] Kill off long-redundant tests/dhcptest.cMichael Brown2008-03-211-270/+0Star
| |
* | [IPv4] Add a config option for IPv4Michael Brown2008-03-212-11/+22
| | | | | | | | | | IPv4 may not always be dragged into the link, so add a specific configuration option for it.
* | [Settings] Use a settings applicator to configure IPv4 routes.Michael Brown2008-03-217-88/+53Star
| |
* | [Settings] Convert code in src/usr to use settings API.Michael Brown2008-03-215-10/+41
| |
* | [Settings] Introduce settings applicators.Michael Brown2008-03-216-138/+222
| | | | | | | | | | | | | | Convert DHCP option applicators in dns.c and iscsi.c to settings applicators. Kill off DHCP option applicators.
* | [Settings] Add per-netdevice settings blockMichael Brown2008-03-206-1/+126
| | | | | | | | | | | | | | | | | | Add a configuration settings block for each net device. This will provide the parent scope for settings applicable only to that network device (e.g. non-volatile options stored on the NIC, options obtained via DHCP, etc.). Expose the MAC address as a setting.
* | [Settings] Add settings hierarchyMichael Brown2008-03-205-210/+321
| | | | | | | | | | | | | | | | Add the notion of the settings hierarchy, complete with register/unregister routines. Rename set->store and get->fetch to avoid naming conflicts with get/put as used in reference counting.
* | [Settings] Start revamping the configuration settings API.Michael Brown2008-03-206-481/+787
|/ | | | | | | | | | | | | | | | Add the concept of an abstract configuration setting, comprising a (DHCP) tag value and an associated byte sequence. Add the concept of a settings namespace. Add functions for extracting string, IPv4 address, and signed and unsigned integer values from configuration settings (analogous to dhcp_snprintf(), dhcp_ipv4_option(), etc.). Update functions for parsing and formatting named/typed options to work with new settings API. Update NVO commands and config UI to use new settings API.
* [Contribs] Add updated wake-on-LAN patch from Bill <level42@sympatico.ca>Michael Brown2008-03-1913-1202/+145Star
|
* [Settings] Allow named settings to have their type specified explicitlyMichael Brown2008-03-181-45/+48
| | | | Allow setting names such as "ip:hex".