summaryrefslogtreecommitdiffstats
path: root/src/net
Commit message (Collapse)AuthorAgeFilesLines
* [Infiniband] Add preliminary multiple port support for Hermon cardsMichael Brown2008-04-181-41/+52
| | | | | | | | | | | | 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.
* [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-281-2/+3
| | | | In particular, expose the system UUID as a setting ("smbios/uuid").
* [DHCP] Add support for ProxyDHCP requestsMichael Brown2008-03-272-348/+550
| | | | | | | | | | | | | | | | 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.
* [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.
* [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.
* [Settings] Remove assumption that all settings have DHCP tag valuesMichael Brown2008-03-259-297/+503
| | | | | | | | | | | | 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.
* [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] copy_settings() should not fail if some settings are missing!Michael Brown2008-03-241-18/+54
|
* [IPv4] Use default netmasks when no subnet mask is specified.Michael Brown2008-03-231-7/+20
|
* [DHCP] Fix up fake-packet creation as used by PXENV_GET_CACHED_INFOMichael Brown2008-03-231-37/+107
| | | | | | | | | | | 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
|
* [Settings] Implement simple_settings backed with extensible DHCP optionsMichael Brown2008-03-221-4/+4
|
* [Settings] DHCP is now working using the new settings API.Michael Brown2008-03-213-10/+23
|
* [Settings] Migrate DHCP and NVO code to the new settings API (untested)Michael Brown2008-03-213-685/+599Star
|
* [DHCP] Kill off some no-longer-used DHCP functionsMichael Brown2008-03-211-118/+0Star
|
* [Settings] Use a settings applicator to set the default TFTP URI.Michael Brown2008-03-212-35/+43
|
* [Settings] Use a settings applicator to configure IPv4 routes.Michael Brown2008-03-213-78/+40Star
|
* [Settings] Introduce settings applicators.Michael Brown2008-03-213-98/+102
| | | | | | | 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-202-0/+109
| | | | | | | | | 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.
* Modify gPXE core and drivers to work with the new timer subsystemAlexey Zaytsev2008-03-023-2/+3
| | | | Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
* [DHCP] Fix RFC4390 client identifier constructions.Michael Brown2008-02-271-1/+1
| | | | | | RFC 4390 provides for the DHCP client identifier to contain the link-layer hardware type and MAC address when the MAC address exceeds 16 bytes. However, the hardware type field is only 8 bits; we were assuming 16 bits.
* [Infiniband] Add preliminary support for multi-port devices.Michael Brown2008-02-271-4/+7
| | | | | | | | | | Arbel and Hermon cards both have multiple ports. Add the infrastructure required to register each port as a separate IB device. Don't yet register more than one port, since registration will currently fail unless a valid link is detected. Use ib_*_{set,get}_{drv,owner}data wrappers to access driver- and owner-private data on Infiniband structures.
* [Infiniband] Centralise MAD operationsMichael Brown2008-02-261-0/+222
| | | | | | | | | Pull out common code for handling management datagrams from arbel.c and hermon.c into infiniband.c. Add port number to struct ib_device. Add open(), close() and mad() methods to struct ib_device_operations.
* [Infiniband] Fix typo in debug statementMichael Brown2008-02-231-1/+1
|
* [Infiniband] Add missing list_del()s in ib_create_qp() failure path.Michael Brown2008-02-231-0/+2
|
* Fixes for EqualLogic iSCSI targets:Michael Brown2008-02-071-7/+19
| | | | | | | Allow port numbers in iSCSI redirection. Wait for SCSI status, not just the final data-in (which may be followed by an explicit SCSI Response PDU if the S bit is not set).
* Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxeMichael Brown2008-01-229-24/+15Star
|\
| * Make seek information part of the xfer metadata, rather than an entirelyMichael Brown2008-01-089-17/+6Star
| | | | | | | | | | | | | | separate xfer method. Add missing .alloc_iob entries to several xfer_interface_operations structures.
| * When the DHCP file/sname fields are empty, don't allow them to overrideMichael Brown2008-01-071-6/+8
| | | | | | | | their equivalent DHCP-option-specified values.
| * Fix off-by-one error (discovered by Shao Miller).Michael Brown2008-01-071-1/+1
| |
* | Add preliminary support for MTFTP.Michael Brown2007-12-261-112/+295
|/
* Fix compiler warnings that appear only on OpenBSD.Michael Brown2007-12-061-7/+7
|
* Kill off some warnings-problematic debug statements in ndp.c; the codeMichael Brown2007-12-071-4/+2Star
| | | | is non-functional anyway.
* Various warnings fixups for OpenBSD with gcc-3.3.5.Michael Brown2007-12-0711-31/+31
|
* udp_open_promisc() calls udp_open_common() with peer==NULL.Michael Brown2007-11-281-2/+3
|
* Add RFC2090 TFTP multicast support.Michael Brown2007-11-281-82/+300
|
* Quick hack to be able to accept transfers from servers that don'tMichael Brown2007-11-251-0/+2
| | | | supply options.
* Allow DHCP server to instruct gPXE to ignore ProxyDHCP (which willMichael Brown2007-11-211-8/+16
| | | | | | also avoid waiting for ProxyDHCP offers). Also reduce the ProxyDHCP timeout, because it's already irritating me.
* Add ProxyDHCP support.Michael Brown2007-11-211-25/+54
|
* Remove some assumptions about DHCP obtaining only a single options block.Michael Brown2007-11-212-6/+10
|
* Add PXE-required DHCP options to DHCPDISCOVER and DHCPREQUEST packets.Michael Brown2007-11-211-10/+25
|
* Add UUID to DHCP request as option 97 (if available).Michael Brown2007-11-211-0/+13
|
* Work around a bug in the OpenSolaris iSCSI target.Michael Brown2007-11-051-3/+10
| | | | | | | | | | | | | | | We didn't specify values for MaxRecvDataSegmentLength and MaxBurstLength (to save space, since we were happy with the RFC-defined default values of 8kB and 256kB respectively). However, the OpenSolaris target (incorrectly) assumes default values of zero for these parameters. The upshot was that the OpenSolaris target would get stuck in an endless loop trying to send us the first 512-byte sector, zero bytes at a time, and would eventually run out of memory and core-dump. Fixed by explicitly specifying the default values for these two parameters.
* Force a netdevice poll in net_tx() before attempting to transmitMichael Brown2007-10-041-0/+8
| | | | | packet, to work around the problem whereby small TX rings get backed up because we haven't yet poll()ed for TX completions.
* Added an almost obscene amount of debugging and assertion code whileMichael Brown2007-09-171-7/+15
| | | | | | | | tracking down a bug that turned out to be a free_iob() used where I needed a netdev_tx_complete(). This left the freed I/O buffer on the net device's TX list, with bad, bad consequences later. Also fixed the bug in question.
* Minor debug message improvement.Michael Brown2007-09-171-2/+3
|
* Prepare for adding a metadata queue to IPoIBMichael Brown2007-09-171-89/+2Star
|
* IPoIB code separated out to ipoib.c.Michael Brown2007-09-171-2/+30
|
* create_qp() and destroy_qp() now written (but not tested).Michael Brown2007-09-161-1/+4
|