summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe
Commit message (Collapse)AuthorAgeFilesLines
* [Settings] Expose SMBIOS via settings APIMichael Brown2008-03-282-3/+5
| | | | In particular, expose the system UUID as a setting ("smbios/uuid").
* [DHCP] Add support for ProxyDHCP requestsMichael Brown2008-03-271-3/+7
| | | | | | | | | | | | | | | | 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] Remove assumption that all settings have DHCP tag valuesMichael Brown2008-03-255-87/+122
| | | | | | | | | | | | 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.
* [Settings] copy_settings() should not fail if some settings are missing!Michael Brown2008-03-241-2/+0Star
|
* [IPv4] Use default netmasks when no subnet mask is specified.Michael Brown2008-03-231-1/+7
|
* [IPv4] Tidy up some header files.Michael Brown2008-03-233-9/+23
|
* [DHCP] Fix up fake-packet creation as used by PXENV_GET_CACHED_INFOMichael Brown2008-03-231-7/+5Star
| | | | | | | | | | | 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.
* [Settings] Implement simple_settings backed with extensible DHCP optionsMichael Brown2008-03-222-4/+30
|
* [Settings] Migrate DHCP and NVO code to the new settings API (untested)Michael Brown2008-03-216-115/+102Star
|
* [DHCP] Kill off some no-longer-used DHCP functionsMichael Brown2008-03-211-10/+0Star
|
* [Settings] Use a settings applicator to set the default TFTP URI.Michael Brown2008-03-211-3/+0Star
|
* [Settings] Use a settings applicator to configure IPv4 routes.Michael Brown2008-03-213-8/+11
|
* [Settings] Convert code in src/usr to use settings API.Michael Brown2008-03-211-0/+3
|
* [Settings] Introduce settings applicators.Michael Brown2008-03-212-31/+18Star
| | | | | | | 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-204-1/+17
| | | | | | | | | 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-201-46/+85
| | | | | | | | 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-202-82/+124
| | | | | | | | | | | | | | | | 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.
* [Timers] Initialise timers on first useMichael Brown2008-03-181-0/+1
| | | | | | | Timers are sometimes required before the call to initialise(), so we cannot rely on initialise() to set up the timers before use. Also fix a potential integer overflow issue in generic_currticks_udelay()
* [Timers] Miscellaneous timer system fixesMichael Brown2008-03-182-21/+22
| | | | | | | | | Add missing comments to timer code. Lock system if no suitable timer source is found. Fix initialisation order so that timers are initialised before code that needs to use them.
* [Settings] show_setting() functions return snprintf()-style length.Michael Brown2008-03-181-2/+2
| | | | | | show_setting() and related functions now return an "actual length" in the style of snprintf(). This is to allow consumers to allocate buffers large enough to hold the formatted setting.
* Modify gPXE core and drivers to work with the new timer subsystemAlexey Zaytsev2008-03-022-2/+0Star
| | | | Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
* Introduce the new timer subsystem.Alexey Zaytsev2008-03-021-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | Timer subsystem initialization code in core/timer.c Split the BIOS and RTDSC timer drivers from i386_timer.c Split arch/i386/firmware/pcbios/bios.c into the RTSDC timer driver and arch/i386/core/nap.c Split the headers properly: include/unistd.h - delay functions to be used by the gPXE core and drivers. include/gpxe/timer.h - the fimer subsystem interface to be used by the timer drivers and currticks() to be used by the code gPXE subsystems. include/latch.h - removed include/timer.h - scheduled for removal. Some driver are using currticks, which is only for core subsystems. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
* [Infiniband] Add preliminary support for multi-port devices.Michael Brown2008-02-271-14/+124
| | | | | | | | | | 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-7/+70
| | | | | | | | | 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.
* [Hermon] Add driver for Mellanox Hermon (ConnectX) cards.Michael Brown2008-02-231-0/+1
|
* Merge commit 'laptop/master'Michael Brown2008-01-221-0/+2
|\
| * Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxeMichael Brown2008-01-223-24/+25
| |\
| * | Add preliminary support for MTFTP.Michael Brown2007-12-261-0/+2
| | |
* | | Add XFER_INIT() macro.Michael Brown2008-01-221-0/+13
| |/ |/|
* | Make seek information part of the xfer metadata, rather than an entirelyMichael Brown2008-01-082-24/+16Star
| | | | | | | | | | | | | | separate xfer method. Add missing .alloc_iob entries to several xfer_interface_operations structures.
* | Added the embedded pxelinux payload patch from hpa.Michael Brown2008-01-081-0/+9
|/
* Add RFC2090 TFTP multicast support.Michael Brown2007-11-282-0/+84
|
* Allow DHCP server to instruct gPXE to ignore ProxyDHCP (which willMichael Brown2007-11-211-1/+8
| | | | | | also avoid waiting for ProxyDHCP offers). Also reduce the ProxyDHCP timeout, because it's already irritating me.
* Add ProxyDHCP support.Michael Brown2007-11-211-1/+5
|
* Merge commit 'origin/mdc-working'Michael Brown2007-11-211-1/+2
|\
| * Add errfile definition for new e1000.cMarty Connor2007-11-181-2/+1Star
| |
| * Add ERRFILE information for e1000_main and e1000_hw, part of the new e1000 ↵Marty Connor2007-11-181-0/+2
| | | | | | | | | | | | driver It is likely we will rename e1000_main to e1000 when the new e1000 driver is debugged.
* | Remove some assumptions about DHCP obtaining only a single options block.Michael Brown2007-11-211-0/+2
| |
* | Add PXE-required DHCP options to DHCPDISCOVER and DHCPREQUEST packets.Michael Brown2007-11-211-0/+6
| |
* | Add UUID to DHCP request as option 97 (if available).Michael Brown2007-11-212-0/+6
| |
* | Added definition of a UUID and uuid_ntoa() (for debugging), andMichael Brown2007-11-211-0/+31
|/ | | | implemented smbios_get_uuid().
* Merge branch 'master' into 3leaf-deliveryMichael Brown2007-09-211-0/+11
|\
| * Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxeMichael Brown2007-09-211-0/+11
| |\
| | * Added netdev_priv() to ease Linux driver compatibility.Michael Brown2007-09-131-0/+11
| | |
| * | Infinband requires longer link-layer addresses and headers than Ethernet.Michael Brown2007-09-211-2/+2
| | |
| * | Added defines for Infiniband files (which can't be committed to theMichael Brown2007-09-211-0/+3
| | | | | | | | | | | | main tree yet, but reserving the error numbers now avoids problems later).
| * | Use RFC4390 whenever hardware address exceeds 16 bytes; this allows usMichael Brown2007-09-211-0/+7
| | | | | | | | | | | | to construct DHCP packets suitable for Infiniband.
| * | Moved iobuf.h assertions outside the static inline functions, so thatMichael Brown2007-09-212-4/+42
| |/ | | | | | | | | | | | | the assert message's file and line number gives some clue as to the real location of the problem. Added similar assertions to list.h.
* | IB can't afford many RX buffers, because the MTU is so large. ReduceMichael Brown2007-09-181-1/+2
| | | | | | | | the TCP window to compensate.
* | Added arbel.cMichael Brown2007-09-181-1/+1
| |