Michael Brown [Sun, 7 Jan 2007 19:05:28 +0000 (19:05 +0000)]
Remove accidentally checked-in code
Michael Brown [Sun, 7 Jan 2007 19:02:17 +0000 (19:02 +0000)]
Move START_UNDI, UNDI_STARTUP, UNDI_INITIALIZE and
UNDI_GET_INFORMATION calls into drivers/net/undi.c. undi_probe() now
gets given a pxe_device representing a PXE stack that has been loaded
into memory but not initialised in any way.
Michael Brown [Sun, 7 Jan 2007 13:31:39 +0000 (13:31 +0000)]
Remember to enable/disable the interrupt at the PIC.
Handle failures in undi_open() properly.
Michael Brown [Fri, 5 Jan 2007 16:15:50 +0000 (16:15 +0000)]
Remove redundant debug message
Michael Brown [Fri, 5 Jan 2007 16:11:05 +0000 (16:11 +0000)]
UNDI loader routine now works
Michael Brown [Fri, 5 Jan 2007 16:10:03 +0000 (16:10 +0000)]
Added PnP BIOS scanning code, separated out from the UNDI driver
Marty Connor [Fri, 5 Jan 2007 16:09:47 +0000 (16:09 +0000)]
Fixed typo
Michael Brown [Fri, 5 Jan 2007 14:48:20 +0000 (14:48 +0000)]
Avoid creating implicit memcpy()s
Michael Brown [Fri, 5 Jan 2007 03:24:39 +0000 (03:24 +0000)]
Partial implementation of UNDI loader caller.
Michael Brown [Fri, 5 Jan 2007 01:52:06 +0000 (01:52 +0000)]
Add PXE driver-scanning code, capable of locating all PXE ROMs in a system
and matching them up to (e.g. PCI) devices.
Michael Brown [Thu, 4 Jan 2007 19:43:35 +0000 (19:43 +0000)]
Renamed undi_net.c to undi.c.
Michael Brown [Thu, 4 Jan 2007 19:42:05 +0000 (19:42 +0000)]
Obsolete; net driver functionality is now in undi_net.c and bus driver
functionality is now in pxebus.c. (Not all bus functionality is ported
across yet.)
Michael Brown [Thu, 4 Jan 2007 19:38:34 +0000 (19:38 +0000)]
Added PXE bus driver (with support only for using PXE structures found
lying about in memory, not for loading from ROM), and UNDI net driver.
Michael Brown [Thu, 4 Jan 2007 19:37:31 +0000 (19:37 +0000)]
Obsolete
Michael Brown [Thu, 4 Jan 2007 19:37:21 +0000 (19:37 +0000)]
Currently unusable; do not attempt to compile
Michael Brown [Thu, 4 Jan 2007 19:36:31 +0000 (19:36 +0000)]
This file is no longer used
Michael Brown [Thu, 4 Jan 2007 19:36:18 +0000 (19:36 +0000)]
Ripped out everything except the ability to send EOI to the PIC.
Michael Brown [Thu, 4 Jan 2007 19:35:10 +0000 (19:35 +0000)]
Add as a separate file so that we can do "make bin/xxxx.kpxe" rather than
having to edit PXELOADER_KEEP_ALL as a config option.
Michael Brown [Thu, 4 Jan 2007 13:48:13 +0000 (13:48 +0000)]
Don't include __FUNCTION__ in assert() messages; it was causing the
function name to appear within the objects even in non-asserting
builds. (This could be considered a gcc bug.)
Removing __FUNCTION__ from assert() reduces the size of bin/blib.a by
around 2.5%!
Michael Brown [Thu, 4 Jan 2007 05:17:28 +0000 (05:17 +0000)]
Allow empty checksums on received packets
Michael Brown [Thu, 4 Jan 2007 04:32:18 +0000 (04:32 +0000)]
Don't automatically call gateA20_set() when returning from a real-mode
call.
Michael Brown [Thu, 4 Jan 2007 04:20:08 +0000 (04:20 +0000)]
Make open() and close() an official part of the netdevice API.
Call netdevice's poll() and transmit() methods only when device is open.
Michael Brown [Thu, 4 Jan 2007 03:44:36 +0000 (03:44 +0000)]
We *should* use the persistent reference API for our netdev reference,
but there's so much else missing that it's not worth doing right now.
Michael Brown [Thu, 4 Jan 2007 03:42:28 +0000 (03:42 +0000)]
A DHCP session holds a persistent reference to a network device
Michael Brown [Thu, 4 Jan 2007 03:40:07 +0000 (03:40 +0000)]
Added missing #include
Michael Brown [Thu, 4 Jan 2007 03:28:30 +0000 (03:28 +0000)]
IPv6 minirouting table entries hold persistent references to net devices.
Michael Brown [Thu, 4 Jan 2007 03:21:45 +0000 (03:21 +0000)]
An AoE session holds a persistent reference to a net device.
Michael Brown [Thu, 4 Jan 2007 03:10:21 +0000 (03:10 +0000)]
Minirouting table entries hold a persistent reference to a net_device.
Michael Brown [Thu, 4 Jan 2007 03:09:28 +0000 (03:09 +0000)]
Use hotplug support to notify persistent reference holders when a
net_device is unregistered.
Michael Brown [Thu, 4 Jan 2007 03:08:16 +0000 (03:08 +0000)]
Minimal hotplug support: provide a facility for notifying persistent
reference holders that their reference is about to become invalid.
Michael Brown [Wed, 3 Jan 2007 22:21:59 +0000 (22:21 +0000)]
Send RST packets when we get a non-matching connection, or receive an
out-of-range ACK.
Michael Brown [Wed, 3 Jan 2007 21:51:36 +0000 (21:51 +0000)]
Accept RST on received packets
Michael Brown [Wed, 3 Jan 2007 21:13:11 +0000 (21:13 +0000)]
Improve consistency between TCP and UDP RX datapaths
Michael Brown [Wed, 3 Jan 2007 20:48:52 +0000 (20:48 +0000)]
Verify checksums on the RX datapath.
Simplify checksum generation on the TX datapath.
Michael Brown [Wed, 3 Jan 2007 16:39:11 +0000 (16:39 +0000)]
Tidy up debug messages
Move routing into a separate function
Michael Brown [Wed, 3 Jan 2007 15:56:15 +0000 (15:56 +0000)]
Fix compiler warning
Michael Brown [Sat, 30 Dec 2006 01:32:22 +0000 (01:32 +0000)]
Use whole bytes for the ACKED and RCVD portions of tcp_state; it
produces slightly smaller code.
Michael Brown [Fri, 29 Dec 2006 14:09:23 +0000 (14:09 +0000)]
Use autocolourisation
Michael Brown [Fri, 29 Dec 2006 14:03:03 +0000 (14:03 +0000)]
Use auto-colourisation for debug messages.
Truncate TX length to TCP window at time of transmission rather than at
time of adding to TX packet; this is conceptually cleaner and also allows
the application to call tcp_send() multiple times to build up a single
packet.
Michael Brown [Fri, 29 Dec 2006 03:05:21 +0000 (03:05 +0000)]
Added auto-colourising DBGC() macro
Michael Brown [Fri, 29 Dec 2006 00:44:31 +0000 (00:44 +0000)]
Redefine TCP state to include "flags that have been sent" rather than
"flags that are currently being sent". This allows at least one special
case (checking that we haven't already sent a FIN in tcp_rx_fin()) to be
collapsed.
Michael Brown [Wed, 27 Dec 2006 23:44:05 +0000 (23:44 +0000)]
Don't send a second FIN if we receive a FIN while in FIN_WAIT_2
Michael Brown [Wed, 27 Dec 2006 23:09:46 +0000 (23:09 +0000)]
Merge changes from mcb-tcp-fixes branch.
Michael Brown [Wed, 27 Dec 2006 22:59:40 +0000 (22:59 +0000)]
Keep running the main processing loop while waiting for input.
Michael Brown [Wed, 27 Dec 2006 22:56:39 +0000 (22:56 +0000)]
Added times to start/stop log messages
Michael Brown [Fri, 22 Dec 2006 13:04:50 +0000 (13:04 +0000)]
Ensure that old TCP connection state is destroyed before attempting to
reopen connection. (The TCP API will soon change to render this step
unnecessary.)
Michael Brown [Fri, 22 Dec 2006 12:24:12 +0000 (12:24 +0000)]
Cannot immediately overwrite the peer address when we parse
TargetAddress from the login response, because we still need the old
address while we close the connection!
Michael Brown [Fri, 22 Dec 2006 01:44:51 +0000 (01:44 +0000)]
Fix prototype of random() and move to stdlib.h
Michael Brown [Fri, 22 Dec 2006 01:35:21 +0000 (01:35 +0000)]
Make start_timer() and stop_timer() robust against incorrect usage.
Michael Brown [Thu, 21 Dec 2006 18:42:51 +0000 (18:42 +0000)]
ibft_fill_data() prototype change.
Michael Brown [Thu, 21 Dec 2006 18:38:24 +0000 (18:38 +0000)]
Avoid null pointer dereferences when no username/password specified.
Michael Brown [Thu, 21 Dec 2006 17:43:43 +0000 (17:43 +0000)]
When login fails, leave the session open but not in full feature
phase. In iscsi_issue(), detect this state and immediately refuse the
operation. This avoids trying multiple logins when scsi.c tries
several times to read the drive capacity.
Michael Brown [Thu, 21 Dec 2006 17:42:02 +0000 (17:42 +0000)]
Use a bigger buffer for the initiator IQN
Michael Brown [Thu, 21 Dec 2006 17:17:47 +0000 (17:17 +0000)]
Add ability to shut down iSCSI connection
Michael Brown [Thu, 21 Dec 2006 17:16:06 +0000 (17:16 +0000)]
Default to port 0 (sic).
Michael Brown [Thu, 21 Dec 2006 16:16:24 +0000 (16:16 +0000)]
Print explicit error message on iSCSI boot failure, and add
"Permission denied" as an error text to strerror().
Michael Brown [Thu, 21 Dec 2006 16:08:37 +0000 (16:08 +0000)]
Add iSCSI initiator IQN as a setting
Michael Brown [Thu, 21 Dec 2006 05:15:26 +0000 (05:15 +0000)]
Engage brain: since when was zero >= 0x80 ?
Michael Brown [Thu, 21 Dec 2006 00:07:48 +0000 (00:07 +0000)]
Some BIOSes return 0xe0 for extended characters. Just assume that
anything over 0x80 is an extended character.
Michael Brown [Wed, 20 Dec 2006 23:43:44 +0000 (23:43 +0000)]
Added missing header
Michael Brown [Wed, 20 Dec 2006 23:42:28 +0000 (23:42 +0000)]
Return ANSI sequences for special keys
Michael Brown [Wed, 20 Dec 2006 22:25:54 +0000 (22:25 +0000)]
Use getkey() and symbolic key names.
Michael Brown [Wed, 20 Dec 2006 22:24:45 +0000 (22:24 +0000)]
KEY_XXX constants are now defined in gpxe/keys.h. Kept separate from
curses.h so that you don't have to suffer the curses namespace pollution
just to get the symbolic key names.
Michael Brown [Wed, 20 Dec 2006 22:21:09 +0000 (22:21 +0000)]
Use symbolic key names, and avoid moving beyond end of string
Michael Brown [Wed, 20 Dec 2006 22:17:44 +0000 (22:17 +0000)]
Fix definition of KEY_END
Michael Brown [Wed, 20 Dec 2006 22:12:53 +0000 (22:12 +0000)]
Use getkey() and symbolic key names.
Michael Brown [Wed, 20 Dec 2006 22:12:25 +0000 (22:12 +0000)]
Some key sequences seem to end with a tilde
Michael Brown [Wed, 20 Dec 2006 22:11:28 +0000 (22:11 +0000)]
Add insert/delete and document keys, and documentation.
Michael Brown [Wed, 20 Dec 2006 21:56:50 +0000 (21:56 +0000)]
Added code to interpret ANSI keypress sequences into KEY_XXX constants.
Michael Brown [Wed, 20 Dec 2006 21:53:07 +0000 (21:53 +0000)]
Key definitions
Michael Brown [Wed, 20 Dec 2006 21:10:32 +0000 (21:10 +0000)]
Define KEY_MIN and use it in kb.c.
Michael Brown [Wed, 20 Dec 2006 20:28:20 +0000 (20:28 +0000)]
Prevent NULL from ever pointing to some real code or data. (This was
causing the serial console to ignore input, because it happened to end up
linked with serial_ischar() at address 0, which core/console.c decided was
invalid).
Michael Brown [Wed, 20 Dec 2006 14:11:50 +0000 (14:11 +0000)]
Return -EIO when verification fails, instead of -EINVAL.
Michael Brown [Wed, 20 Dec 2006 11:42:48 +0000 (11:42 +0000)]
settings_ui() now returns a status code.
Michael Brown [Wed, 20 Dec 2006 07:57:40 +0000 (07:57 +0000)]
Add EIO.
Kill errortab array; it can screw up alignment.
Michael Brown [Wed, 20 Dec 2006 07:19:48 +0000 (07:19 +0000)]
Close UDP connection when DHCP completes.
Michael Brown [Wed, 20 Dec 2006 07:13:46 +0000 (07:13 +0000)]
No longer needed
Michael Brown [Wed, 20 Dec 2006 07:05:32 +0000 (07:05 +0000)]
Obsolete for some time now.
Michael Brown [Wed, 20 Dec 2006 07:04:08 +0000 (07:04 +0000)]
Split the (quick hack) boot logic out from main.c to autoboot.c, add a
"boot" command to attempt booting from within the command shell, fall back
to shell if boot fails for any reason.
Michael Brown [Wed, 20 Dec 2006 06:12:04 +0000 (06:12 +0000)]
Explicitly call erase(), to cope with platforms where the ANSI clear
screen sequence doesn't work (like bios_console.c on some platforms).
Michael Brown [Wed, 20 Dec 2006 06:06:38 +0000 (06:06 +0000)]
Add attr_{get,set,on,off} as static inlines.
Michael Brown [Wed, 20 Dec 2006 05:37:33 +0000 (05:37 +0000)]
Add "config" command to access config UI
Michael Brown [Wed, 20 Dec 2006 05:37:15 +0000 (05:37 +0000)]
Add instruction row, and save option
Michael Brown [Wed, 20 Dec 2006 05:33:12 +0000 (05:33 +0000)]
Only need printf(), so use vsprintf.h instead of console.h
Michael Brown [Wed, 20 Dec 2006 05:04:17 +0000 (05:04 +0000)]
8-bit integers are 1 byte long, not 8...
Michael Brown [Wed, 20 Dec 2006 05:03:55 +0000 (05:03 +0000)]
Clear message on alert row before printing new one
Michael Brown [Wed, 20 Dec 2006 04:58:26 +0000 (04:58 +0000)]
Added descriptive text for settings and setting types, and display it in
the option config UI.
Michael Brown [Wed, 20 Dec 2006 04:20:13 +0000 (04:20 +0000)]
Move {show,set,clear}_setting() to {show,set,clear}_named_setting().
Introduce new {show,set,clear}_setting() that take a struct setting *
rather than a const char *.
set_setting() handles calling clear_setting() when appropriate, so that
individual setting types don't have to check for empty strings.
Michael Brown [Wed, 20 Dec 2006 03:54:20 +0000 (03:54 +0000)]
Added messages for some of the most common errors
Michael Brown [Wed, 20 Dec 2006 03:49:36 +0000 (03:49 +0000)]
Split strerror() out from errno.c
Michael Brown [Wed, 20 Dec 2006 03:43:24 +0000 (03:43 +0000)]
Alert when saving settings fails
Michael Brown [Wed, 20 Dec 2006 03:42:35 +0000 (03:42 +0000)]
Increase colour pair limit
Michael Brown [Wed, 20 Dec 2006 03:41:55 +0000 (03:41 +0000)]
Fix (hopefully) the scrolling logic
Michael Brown [Wed, 20 Dec 2006 03:40:48 +0000 (03:40 +0000)]
Split error-message table portions of errno.h out to gpxe/errortab.h
Michael Brown [Wed, 20 Dec 2006 03:35:49 +0000 (03:35 +0000)]
Move strerror() prototype to string.h, where it belongs
Michael Brown [Wed, 20 Dec 2006 03:34:27 +0000 (03:34 +0000)]
Differentiate between ENOSPC and ENOMEM
Michael Brown [Wed, 20 Dec 2006 03:33:37 +0000 (03:33 +0000)]
Use -ENOSPC rather than -ENOMEM, to distinguish the cases "generic out of
memory" and "no space left for DHCP options"
Michael Brown [Wed, 20 Dec 2006 03:14:59 +0000 (03:14 +0000)]
Fix prototype of sleep() and move it to unistd.h
Michael Brown [Wed, 20 Dec 2006 03:04:07 +0000 (03:04 +0000)]
Add (partly-functional) user interface for editing configuration settings
Michael Brown [Wed, 20 Dec 2006 02:09:41 +0000 (02:09 +0000)]
Don't automatically redraw the edit box; this allows better inheritance.