people/xl0/gpxe.git
16 years agoMoved uIP wrapper out of prototester.c and into proto/tcp.c.
Michael Brown [Thu, 23 Mar 2006 21:32:03 +0000 (21:32 +0000)]
Moved uIP wrapper out of prototester.c and into proto/tcp.c.

16 years agoAdd include/gpxe as a directory to scan.
Michael Brown [Thu, 23 Mar 2006 21:06:36 +0000 (21:06 +0000)]
Add include/gpxe as a directory to scan.

Exclude proto/uip, since uip.c and uip_arp.c both have global variables
called "c", which screws up doxygen's auto-generation of links to file
documentation when it encounters a file name such as "hello.c".

16 years agoUpdated with "doxygen -u" from doxygen 1.4.4
Michael Brown [Thu, 23 Mar 2006 20:39:26 +0000 (20:39 +0000)]
Updated with "doxygen -u" from doxygen 1.4.4

16 years agoMoved old tcp.h to old_tcp.h, to avoid name clash with new (uIP-based)
Michael Brown [Thu, 23 Mar 2006 20:34:08 +0000 (20:34 +0000)]
Moved old tcp.h to old_tcp.h, to avoid name clash with new (uIP-based)
tcp.h.

16 years agoAssertions are now handled via the POSIX-like <assert.h>.
Michael Brown [Thu, 23 Mar 2006 19:33:57 +0000 (19:33 +0000)]
Assertions are now handled via the POSIX-like <assert.h>.

16 years agoAdded missing #endif
Michael Brown [Thu, 23 Mar 2006 19:23:25 +0000 (19:23 +0000)]
Added missing #endif

16 years agoAdded assert.h, with assert() defined (almost) as per POSIX, and
Michael Brown [Thu, 23 Mar 2006 17:28:51 +0000 (17:28 +0000)]
Added assert.h, with assert() defined (almost) as per POSIX, and
linker_assert() defined as gPXE-specific.

16 years agoRemoved to make way for the uIP-based tcp.c.
Michael Brown [Thu, 23 Mar 2006 16:59:25 +0000 (16:59 +0000)]
Removed to make way for the uIP-based tcp.c.

16 years agoMoved include/in.h to include/gpxe/in.h, so that it can be included by
Michael Brown [Thu, 23 Mar 2006 16:45:01 +0000 (16:45 +0000)]
Moved include/in.h to include/gpxe/in.h, so that it can be included by
prototester.

16 years agoAdd Makefile for hijack and prototester utilities.
Michael Brown [Thu, 23 Mar 2006 13:11:41 +0000 (13:11 +0000)]
Add Makefile for hijack and prototester utilities.

16 years agoAdd debug symbols to objects. (They will be stripped out of the final
Michael Brown [Thu, 23 Mar 2006 13:09:29 +0000 (13:09 +0000)]
Add debug symbols to objects.  (They will be stripped out of the final
-Obinary build anyway, so it doesn't waste any space).

16 years agoMake the application state a void *.
Michael Brown [Thu, 23 Mar 2006 13:08:06 +0000 (13:08 +0000)]
Make the application state a void *.

16 years agoCan now also print data sent by the remote side.
Michael Brown [Thu, 23 Mar 2006 13:06:08 +0000 (13:06 +0000)]
Can now also print data sent by the remote side.

16 years agoNow capable of sending "Hello world!" via TCP.
Michael Brown [Thu, 23 Mar 2006 12:25:28 +0000 (12:25 +0000)]
Now capable of sending "Hello world!" via TCP.

16 years agoAdded basic http-specific option parsing
Michael Brown [Wed, 22 Mar 2006 22:35:32 +0000 (22:35 +0000)]
Added basic http-specific option parsing

16 years agoStarted adding structure to allow for separate protocol tests, with
Michael Brown [Wed, 22 Mar 2006 21:25:35 +0000 (21:25 +0000)]
Started adding structure to allow for separate protocol tests, with
individual options.

Created the embryonic beginnings of a cleanly separated driver and
protocol stack API.

16 years agoSkeleton version: contains device driver (connecting to network via
Michael Brown [Wed, 22 Mar 2006 02:23:20 +0000 (02:23 +0000)]
Skeleton version: contains device driver (connecting to network via
hijack daemon) and a functional but very ugly and very primitive
wrapper around uIP.

This passes proof-of-concept testing; it successfully initiates a TCP
connection and responds to pings.

16 years agoAdded from uip-0.9/uip/uip_arp.[ch]
Michael Brown [Wed, 22 Mar 2006 02:14:55 +0000 (02:14 +0000)]
Added from uip-0.9/uip/uip_arp.[ch]

16 years agoRemove htons(); it is provided elsewhere in Etherboot
Michael Brown [Wed, 22 Mar 2006 01:25:43 +0000 (01:25 +0000)]
Remove htons(); it is provided elsewhere in Etherboot

16 years agoBasic, functional-but-extremely-pessimal versions (taken from
Michael Brown [Wed, 22 Mar 2006 01:24:13 +0000 (01:24 +0000)]
Basic, functional-but-extremely-pessimal versions (taken from
uip-0.9/unix/uip_arch.c).

16 years agoTerminate cleanly on SIGINT or SIGHUP
Michael Brown [Tue, 21 Mar 2006 17:48:33 +0000 (17:48 +0000)]
Terminate cleanly on SIGINT or SIGHUP

16 years agoUse libpcap API to send/receive packets.
Michael Brown [Tue, 21 Mar 2006 16:50:25 +0000 (16:50 +0000)]
Use libpcap API to send/receive packets.

Include automatic filtering (based on source MAC address of first
transmitted packet).

Proven to successfully elicit a ping response from a remote host.

16 years agoBasic structure in place: can daemonise, listen on a Unix domain
Michael Brown [Tue, 21 Mar 2006 02:25:30 +0000 (02:25 +0000)]
Basic structure in place: can daemonise, listen on a Unix domain
socket, accept new connections, open a network interface using libpcap
and forward (all) traffic.

16 years agoThese can come back when someone wants to support them
Michael Brown [Fri, 17 Mar 2006 14:16:05 +0000 (14:16 +0000)]
These can come back when someone wants to support them

16 years agoMore purging
Michael Brown [Fri, 17 Mar 2006 14:14:36 +0000 (14:14 +0000)]
More purging

16 years agoThey can come back when they have someone to support them.
Michael Brown [Fri, 17 Mar 2006 14:13:09 +0000 (14:13 +0000)]
They can come back when they have someone to support them.

16 years agoGPXE code cleanup and purge.
Michael Brown [Fri, 17 Mar 2006 14:09:45 +0000 (14:09 +0000)]
GPXE code cleanup and purge.

16 years agoPrefix semantics have changed gpxe.pre.purge
Michael Brown [Thu, 16 Mar 2006 19:28:38 +0000 (19:28 +0000)]
Prefix semantics have changed

16 years agoAdd uip on HEAD; it's safe to build, since nothing links against it at the
Michael Brown [Thu, 16 Mar 2006 19:18:12 +0000 (19:18 +0000)]
Add uip on HEAD; it's safe to build, since nothing links against it at the
moment.

16 years agoBuild in gpxe
Michael Brown [Thu, 16 Mar 2006 19:09:31 +0000 (19:09 +0000)]
Build in gpxe

16 years agoRemove accidental duplicate arising from merge
Michael Brown [Thu, 16 Mar 2006 19:04:19 +0000 (19:04 +0000)]
Remove accidental duplicate arising from merge

16 years agoBuild under gpxe
Michael Brown [Thu, 16 Mar 2006 19:02:18 +0000 (19:02 +0000)]
Build under gpxe

16 years agoBack out duplication arising from the merge
Michael Brown [Thu, 16 Mar 2006 18:56:16 +0000 (18:56 +0000)]
Back out duplication arising from the merge

16 years agoFix to compile under gpxe
Michael Brown [Thu, 16 Mar 2006 18:54:57 +0000 (18:54 +0000)]
Fix to compile under gpxe

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 18:51:23 +0000 (18:51 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 18:44:31 +0000 (18:44 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 18:30:54 +0000 (18:30 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 18:30:46 +0000 (18:30 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 18:15:48 +0000 (18:15 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 17:59:51 +0000 (17:59 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 17:40:55 +0000 (17:40 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 17:31:29 +0000 (17:31 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 17:11:36 +0000 (17:11 +0000)]
Merge from Etherboot 5.4

16 years agoMerge from Etherboot 5.4
Michael Brown [Thu, 16 Mar 2006 17:05:38 +0000 (17:05 +0000)]
Merge from Etherboot 5.4

16 years agoFix up building with gcc 4.0.1 / gas 2.16.91
Michael Brown [Tue, 17 Jan 2006 01:47:41 +0000 (01:47 +0000)]
Fix up building with gcc 4.0.1 / gas 2.16.91

16 years agoReorder functions to match the linux driver.
George Baum [Mon, 11 Jul 2005 19:26:12 +0000 (19:26 +0000)]
Reorder functions to match the linux driver.
No code changes apart from commenting one unused function out.

16 years agoFix COMET TxUnderrun issue
Timothy Legge [Fri, 17 Jun 2005 20:11:10 +0000 (20:11 +0000)]
Fix COMET TxUnderrun issue

16 years agono need for depending on build library ("blib")
Geert Stappers [Tue, 14 Jun 2005 20:16:03 +0000 (20:16 +0000)]
no need for depending on build library ("blib")
when make is invoked without arguments

16 years agoAdded documentation and ASSERT() statements.
Michael Brown [Mon, 6 Jun 2005 12:01:19 +0000 (12:01 +0000)]
Added documentation and ASSERT() statements.

16 years agoAllow data blocks to be less than sizeof ( struct buffer_free_block ) in
Michael Brown [Mon, 6 Jun 2005 11:42:14 +0000 (11:42 +0000)]
Allow data blocks to be less than sizeof ( struct buffer_free_block ) in
size.  (The restriction on the size of free blocks remains.)

16 years agoReduce BACKOFF_LIMIT to a hopefully more reasonable value.
Michael Brown [Thu, 2 Jun 2005 10:16:05 +0000 (10:16 +0000)]
Reduce BACKOFF_LIMIT to a hopefully more reasonable value.

16 years agoIn multicast operation, the client still has a unicast local port.
Michael Brown [Thu, 2 Jun 2005 10:15:40 +0000 (10:15 +0000)]
In multicast operation, the client still has a unicast local port.

16 years agoAlways include code for sending multicast packets.
Michael Brown [Thu, 2 Jun 2005 10:14:26 +0000 (10:14 +0000)]
Always include code for sending multicast packets.

16 years ago Jan Kiszka provided a patch for the smc9000 for missing phy-setup
Timothy Legge [Thu, 2 Jun 2005 01:26:37 +0000 (01:26 +0000)]
 Jan Kiszka provided a patch for the smc9000 for missing phy-setup

16 years agoRewritten to use the functions in tftpcore.c.
Michael Brown [Wed, 1 Jun 2005 22:26:48 +0000 (22:26 +0000)]
Rewritten to use the functions in tftpcore.c.
Works with a non-multicast TFTP server (i.e. the fallback path works
fine).

16 years agoIGMP protocol now uses the generic background protocol mechanism.
Michael Brown [Wed, 1 Jun 2005 22:22:14 +0000 (22:22 +0000)]
IGMP protocol now uses the generic background protocol mechanism.

16 years agoAdd generic mechanism for background protocols (e.g. ARP, IGMP)
Michael Brown [Wed, 1 Jun 2005 22:18:38 +0000 (22:18 +0000)]
Add generic mechanism for background protocols (e.g. ARP, IGMP)

16 years agoIGMP functions separated out from nic.c
Michael Brown [Wed, 1 Jun 2005 21:18:31 +0000 (21:18 +0000)]
IGMP functions separated out from nic.c

16 years agoDon't try to fetch another packet once we've reached EOF.
Michael Brown [Wed, 1 Jun 2005 19:13:06 +0000 (19:13 +0000)]
Don't try to fetch another packet once we've reached EOF.

16 years agoMake rfc2090 multicast option optional
Michael Brown [Wed, 1 Jun 2005 19:10:25 +0000 (19:10 +0000)]
Make rfc2090 multicast option optional

16 years agoRe-order functions for more logical documentation
Michael Brown [Wed, 1 Jun 2005 18:02:24 +0000 (18:02 +0000)]
Re-order functions for more logical documentation

16 years agoDon't choke on duplicate OACK packets.
Michael Brown [Wed, 1 Jun 2005 18:00:01 +0000 (18:00 +0000)]
Don't choke on duplicate OACK packets.
Make await_tftp() static and create tftp_get() for fetching the next TFTP
packet instead.

16 years agoRemove prototypes for obsolete functions
Michael Brown [Wed, 1 Jun 2005 17:57:27 +0000 (17:57 +0000)]
Remove prototypes for obsolete functions

16 years agoDoxygenation
Michael Brown [Wed, 1 Jun 2005 13:28:07 +0000 (13:28 +0000)]
Doxygenation

16 years agoTFTP upgraded to use a core function library (in tftpcore.c) which will be
Michael Brown [Wed, 1 Jun 2005 13:13:05 +0000 (13:13 +0000)]
TFTP upgraded to use a core function library (in tftpcore.c) which will be
shared between TFTP, TFTM and MTFTP protocols.

16 years agoNow have enough functions to implement a standard TFTP client in around 50
Michael Brown [Wed, 1 Jun 2005 11:01:59 +0000 (11:01 +0000)]
Now have enough functions to implement a standard TFTP client in around 50
lines of code.

16 years agoAdd tftp_ack() and tftp_error()
Michael Brown [Tue, 31 May 2005 15:21:33 +0000 (15:21 +0000)]
Add tftp_ack() and tftp_error()

16 years agoFirst version
Michael Brown [Tue, 31 May 2005 14:47:58 +0000 (14:47 +0000)]
First version

16 years agopatch of Helge Wagner
Geert Stappers [Tue, 31 May 2005 11:32:45 +0000 (11:32 +0000)]
patch of Helge Wagner

16 years agoDocumented remainder of PXE TFTP API calls.
Michael Brown [Fri, 27 May 2005 16:47:45 +0000 (16:47 +0000)]
Documented remainder of PXE TFTP API calls.

16 years agoDocumented the purpose of the two timeout fields in
Michael Brown [Fri, 27 May 2005 16:47:16 +0000 (16:47 +0000)]
Documented the purpose of the two timeout fields in
s_PXENV_TFTP_READ_FILE.

16 years agoAdded diatribe about the mismatch between the PXE spec and the TFTP
Michael Brown [Fri, 27 May 2005 11:44:46 +0000 (11:44 +0000)]
Added diatribe about the mismatch between the PXE spec and the TFTP
protocol, and how we will work around it.

16 years agoRefer to implementation note on IP routing.
Michael Brown [Fri, 27 May 2005 11:37:09 +0000 (11:37 +0000)]
Refer to implementation note on IP routing.

16 years agoAdded implementation note on IP routing.
Michael Brown [Fri, 27 May 2005 11:36:36 +0000 (11:36 +0000)]
Added implementation note on IP routing.

Added reason for min value of 512 on s_PXENV_TFTP_OPEN::PacketSize.

16 years agoThoughts on how to coerce the PXE TFTP API into something resembling
Michael Brown [Thu, 26 May 2005 18:52:12 +0000 (18:52 +0000)]
Thoughts on how to coerce the PXE TFTP API into something resembling
the TFTP protocol.

16 years agoSeparate out the documentation of the PXE API from the documentation of
Michael Brown [Tue, 24 May 2005 17:00:55 +0000 (17:00 +0000)]
Separate out the documentation of the PXE API from the documentation of
the Etherboot implementation (i.e. don't do what Intel did).

16 years agoRemove the annoying #include lines
Michael Brown [Tue, 24 May 2005 00:25:50 +0000 (00:25 +0000)]
Remove the annoying #include lines

16 years agoSome versions of doxygen seem to object to "@ret None" or similar.
Michael Brown [Tue, 24 May 2005 00:11:25 +0000 (00:11 +0000)]
Some versions of doxygen seem to object to "@ret None" or similar.

16 years agoFixes for gcc >= 3.2 from Georg Baum
Michael Brown [Mon, 23 May 2005 23:47:54 +0000 (23:47 +0000)]
Fixes for gcc >= 3.2 from Georg Baum

16 years agoSplit PXE code into preboot, udp, tftp, undi and loader units.
Michael Brown [Mon, 23 May 2005 23:32:56 +0000 (23:32 +0000)]
Split PXE code into preboot, udp, tftp, undi and loader units.
PXE code now compiles without errors (though it won't actually work).

16 years agoAdded interface/pxe directory
Michael Brown [Mon, 23 May 2005 23:31:59 +0000 (23:31 +0000)]
Added interface/pxe directory

16 years agoMoved pxe_loader.c to pxe_image.c to avoid name clash
Michael Brown [Mon, 23 May 2005 23:05:45 +0000 (23:05 +0000)]
Moved pxe_loader.c to pxe_image.c to avoid name clash

16 years agoMoved pxe_errors.c to pxe/interface/
Michael Brown [Mon, 23 May 2005 22:47:21 +0000 (22:47 +0000)]
Moved pxe_errors.c to pxe/interface/

16 years agoRearranging PXE header files
Michael Brown [Mon, 23 May 2005 22:45:48 +0000 (22:45 +0000)]
Rearranging PXE header files

16 years agothe uncontroversal gcc 4.0 compilation fixes
George Baum [Mon, 23 May 2005 19:30:37 +0000 (19:30 +0000)]
the uncontroversal gcc 4.0 compilation fixes

16 years agoSeparated out the Etherboot-specific parts of the old pxe.h header.
Michael Brown [Mon, 23 May 2005 16:37:05 +0000 (16:37 +0000)]
Separated out the Etherboot-specific parts of the old pxe.h header.

16 years agoAdded PXENV+ and !PXE structures, and the loader API.
Michael Brown [Mon, 23 May 2005 16:26:49 +0000 (16:26 +0000)]
Added PXENV+ and !PXE structures, and the loader API.

16 years agoFinished documenting the UNDI API.
Michael Brown [Mon, 23 May 2005 13:57:23 +0000 (13:57 +0000)]
Finished documenting the UNDI API.

16 years agoDocumented up to PXENV_UNDI_CLOSE
Michael Brown [Mon, 23 May 2005 11:00:09 +0000 (11:00 +0000)]
Documented up to PXENV_UNDI_CLOSE

16 years agoDocumented Preboot, TFTP and UDP data structures
Michael Brown [Mon, 23 May 2005 10:02:44 +0000 (10:02 +0000)]
Documented Preboot, TFTP and UDP data structures

17 years agoDocumented PXENV_GET_CACHED_INFO structures
Michael Brown [Sun, 22 May 2005 23:00:56 +0000 (23:00 +0000)]
Documented PXENV_GET_CACHED_INFO structures

17 years agoAdd UDP parameter structures
Michael Brown [Sun, 22 May 2005 02:57:50 +0000 (02:57 +0000)]
Add UDP parameter structures

17 years agoDefine PXE types in terms of other PXE types where possible
Michael Brown [Sun, 22 May 2005 02:57:14 +0000 (02:57 +0000)]
Define PXE types in terms of other PXE types where possible

17 years agoWorked out a sensible doxygen grouping
Michael Brown [Sun, 22 May 2005 00:59:09 +0000 (00:59 +0000)]
Worked out a sensible doxygen grouping

17 years agoAdded all API codes and basic prototypes.
Michael Brown [Sat, 21 May 2005 17:19:57 +0000 (17:19 +0000)]
Added all API codes and basic prototypes.

17 years agoDocumented the basic PXE data types
Michael Brown [Sat, 21 May 2005 15:15:10 +0000 (15:15 +0000)]
Documented the basic PXE data types

17 years agoDocumented the UDP API calls.
Michael Brown [Fri, 20 May 2005 17:50:37 +0000 (17:50 +0000)]
Documented the UDP API calls.

17 years agoMoved pxe_export.c to pxe.c, since the old pxe.c no longer exists.
Michael Brown [Fri, 20 May 2005 15:32:41 +0000 (15:32 +0000)]
Moved pxe_export.c to pxe.c, since the old pxe.c no longer exists.

17 years agoDocumented the link stages
Michael Brown [Fri, 20 May 2005 13:35:39 +0000 (13:35 +0000)]
Documented the link stages

17 years agoDocumented the compilation stages
Michael Brown [Fri, 20 May 2005 12:44:14 +0000 (12:44 +0000)]
Documented the compilation stages