Michael Brown
72c1bb8224
[slam] Add Scalable Local Area Multicast (SLAM) protocol support
Tested against the mini-slamd server located in contrib/mini-slamd
with a single client, on a lossy network.
16 anos atrás
Michael Brown
2af6c8d130
[IPv4] Tidy up some header files.
16 anos atrás
Michael Brown
e330db3c74
Dead code removal.
Kill off use of etherboot.h outside drivers/net.
17 anos atrás
Michael Brown
89349d7fad
Separated out initialisation functions from startup/shutdown functions.
17 anos atrás
Michael Brown
fae10a7ca1
We don't actually use the reset functions anywhere, and nothing really
provides them.
17 anos atrás
Marty Connor
b234d4a13e
Warnings purge
17 anos atrás
Michael Brown
9af12d5fba
A working DNS resolver (not yet tied in to anything)
18 anos atrás
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
18 anos atrás
Michael Brown
88e38fa148
We don't actually have a stdio.h header file. Our printf() functions are
defined in vsprintf.h. (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)
There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.
18 anos atrás
Marty Connor
6ac78f6aff
added stdio.h to includes for DBG compilation
18 anos atrás
Derek Pryor
3b45f05be4
Removing because of conflict with new HTTP protocol
18 anos atrás
Michael Brown
3611cb17b7
Initial (untested) implementation of TFTP over the new UDP API.
18 anos atrás
Michael Brown
21493646c2
Moved to net/tcp/iscsi.c.
18 anos atrás
Michael Brown
8a229a16f6
(Redoing check-in lost by SourceForge's failure.)
Moved to net/
18 anos atrás
Michael Brown
9e1becaf8a
Merge TCP aborted(), timedout() and closed() methods into a single
closed() method with a reason code.
18 anos atrás
Michael Brown
7af478b30d
Make tcp_connect() void; it will eventually have no failure case.
18 anos atrás
Michael Brown
352bf1bda2
Move init.h to gpxe/init.h.
18 anos atrás
Michael Brown
5fe31f1014
Give uIP a static IP address for proof-of-concept testing
18 anos atrás
Michael Brown
a81f96998b
Added missing headers required for compilation in Etherboot.
18 anos atrás
Michael Brown
26749951dc
We have our own ARP layer now.
18 anos atrás
Michael Brown
832e86246b
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
18 anos atrás
Michael Brown
824d6ffa7f
Header rearrangement.
I want to get to the point where any header in include/ reflects a
standard user-level header (e.g. a POSIX header), while everything that's
specific to gPXE lives in include/gpxe/. Headers that reflect a Linux
header (e.g. if_ether.h) should also be in include/gpxe/, with the same
name as the Linux header and, preferably, the same names used for the
definitions.
18 anos atrás
Michael Brown
53f78346bf
Network API now allows for multiple network devices (although the
implementation allows for only one, and does so without compromising on
the efficiency of static allocation).
Link-layer protocols are cleanly separated from the device drivers.
Network-layer protocols are cleanly separated from individual network
devices.
Link-layer and network-layer protocols are cleanly separated from each
other.
18 anos atrás
Michael Brown
fdc2ee79db
Network API now allows for multiple network devices (although the
implementation allows for only one, and does so without compromising on
the efficiency of static allocation).
Link-layer protocols are cleanly separated from the device drivers.
Network-layer protocols are cleanly separated from individual network
devices.
Link-layer and network-layer protocols are cleanly separated from each
other.
18 anos atrás
Michael Brown
0d97f0d482
Obviate uip_init(); our bss is zeroed at startup already.
18 anos atrás
Michael Brown
6446767258
First draft of iSCSI protocol support. Is capable of retrieving disk
blocks.
18 anos atrás
Michael Brown
c8a7133e9f
Added tcp_buffer, to give applications a zero-cost place to build data to
be transmitted.
18 anos atrás
Michael Brown
988bb50979
Added set_netmask() and set_gateway()
18 anos atrás
Michael Brown
ee058362fa
We don't need to know anything about ARP
18 anos atrás
Michael Brown
b44332eb7d
Split non-TCP portions of the stack out into ip.[ch].
Added set_ipaddr().
18 anos atrás
Michael Brown
7e61f38799
Moved "hello world" protocol implementation out of prototester.c and into
the first standalong uIP-based protocol module.
18 anos atrás
Michael Brown
a4a0244aa3
Moved uIP wrapper out of prototester.c and into proto/tcp.c.
18 anos atrás
Michael Brown
05b284399e
Moved old tcp.h to old_tcp.h, to avoid name clash with new (uIP-based)
tcp.h.
18 anos atrás
Michael Brown
531371efa2
Removed to make way for the uIP-based tcp.c.
18 anos atrás
Michael Brown
dde1c5ad18
Moved include/in.h to include/gpxe/in.h, so that it can be included by
prototester.
18 anos atrás
Michael Brown
b2c94b32fc
Make the application state a void *.
18 anos atrás
Michael Brown
bb37bd47f8
Added from uip-0.9/uip/uip_arp.[ch]
18 anos atrás
Michael Brown
417e896f0a
Remove htons(); it is provided elsewhere in Etherboot
18 anos atrás
Michael Brown
1c7c24f21f
Basic, functional-but-extremely-pessimal versions (taken from
uip-0.9/unix/uip_arch.c).
18 anos atrás
Michael Brown
0e611719d2
Add uip on HEAD; it's safe to build, since nothing links against it at the
moment.
18 anos atrás
Michael Brown
7d8adc25bc
In multicast operation, the client still has a unicast local port.
19 anos atrás
Michael Brown
f242f56a73
Rewritten to use the functions in tftpcore.c.
Works with a non-multicast TFTP server (i.e. the fallback path works
fine).
19 anos atrás
Michael Brown
be7897523d
IGMP protocol now uses the generic background protocol mechanism.
19 anos atrás
Michael Brown
e0cf144218
IGMP functions separated out from nic.c
19 anos atrás
Michael Brown
698e87277f
Don't try to fetch another packet once we've reached EOF.
19 anos atrás
Michael Brown
fa17bf0917
Make rfc2090 multicast option optional
19 anos atrás
Michael Brown
f2198e8a65
Don't choke on duplicate OACK packets.
Make await_tftp() static and create tftp_get() for fetching the next TFTP
packet instead.
19 anos atrás
Michael Brown
c8d6c4864f
Doxygenation
19 anos atrás
Michael Brown
53a4436d94
TFTP upgraded to use a core function library (in tftpcore.c) which will be
shared between TFTP, TFTM and MTFTP protocols.
19 anos atrás
Michael Brown
0b048e9cfb
Now have enough functions to implement a standard TFTP client in around 50
lines of code.
19 anos atrás