Michael Brown
335b99a39d
Move [v]ssnprintf() from iscsi.c into vsprintf.c; we need them
elsewhere as well.
17 years ago
Michael Brown
4ccd1e8198
Should call ftp_done() if constructor fails.
17 years ago
Michael Brown
735e07268e
Update HTTP to use data-xfer interface.
17 years ago
Michael Brown
0dfd5b84fd
Updated FTP to use data-xfer API.
17 years ago
Michael Brown
3acd51597a
Add sanity check and extra debug message
17 years ago
Michael Brown
63719deea9
Introduce name resolution interface and named socket opener.
17 years ago
Michael Brown
1311b4194c
Eliminate PF_INET; just use the AF_INET from the struct sockaddr instead.
17 years ago
Michael Brown
b8618d76db
Modify data-xfer semantics: it is no longer necessary to call one of
request(), seek() or deliver_xxx() in order to start the data flow.
Autonomous generators must be genuinely autonomous (having their own
process), or otherwise arrange to be called. TCP does this by
starting the retry timer immediately.
Add some debugging statements.
17 years ago
Michael Brown
3601103381
Modify process semantics; rescheduling is now automatic.
Add reference-counting to processes.
Add timer_running() test.
17 years ago
Michael Brown
1136c19fa4
Updated tcp.c to provide a standardised data transfer interface.
17 years ago
Michael Brown
776357214e
Rename pkbpad.c to iobpad.c
17 years ago
Michael Brown
3e2c6b6736
pkbuff->iobuf changeover
Achieved via Perl using:
perl -pi -e 's/pk_buff/io_buffer/g; s/Packet buffer/I\/O buffer/ig; ' \
-e 's/pkbuff\.h/iobuf.h/g; s/pkb_/iob_/g; s/_pkb/_iob/g; ' \
-e 's/pkb/iobuf/g; s/PKB/IOB/g;'
17 years ago
Anselm Martin Hoffmeister
ed7dc02a95
hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise
output buffering defintions and the like)
17 years ago
Anselm Martin Hoffmeister
ff5aac826a
hoffmeis: Fixing situation where absence of a newdata() handler for UDP
connections might break things. Only-sending applications like syslog()
do not need a newdata() handler, so added a check if that handler exists.
17 years ago
Michael Brown
520d9c36af
Updated ISAPnP, EISA, MCA and ISA buses to current device model.
ISA 3c509 is currently non-functional, although the EISA (3c509-eisa) and
MCA (3c529) variants should build OK.
None of this code is yet tested.
17 years ago
Michael Brown
af3149d18e
Allow queries in GET requests
18 years ago
Michael Brown
3fd10074d8
SSL needs quite a lot of spare memory
18 years ago
Michael Brown
2c67167929
Don't pass through zero-length requests
18 years ago
Michael Brown
a3695b1ff6
Placeholder for TLS insertion
18 years ago
Michael Brown
2d726144f7
Filter insertion now actually works
18 years ago
Michael Brown
138967dd6b
Tidy up debug messages
18 years ago
Michael Brown
e38e516463
Add insert_filter() function
18 years ago
Michael Brown
6d32f0e6e2
Changed to use the generic stream API.
18 years ago
Michael Brown
02f18565da
First sketch of stream API
18 years ago
Michael Brown
55601b2d38
Placeholder
18 years ago
Michael Brown
2f7eac1646
Low-overhead filter streams
18 years ago
Michael Brown
bde8878eef
Keep HTTP progress updated, and display a progress indicator during the
download
18 years ago
Michael Brown
92a78c8e15
Added SIGKILL handler
18 years ago
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
18 years ago
Michael Brown
4e3976711d
A working name resolution framework
18 years ago
Michael Brown
075f8144ff
Have DHCP set the nameserver, rather than DNS read the DHCP nameserver
value.
18 years ago
Michael Brown
c014f607a8
Use total free memory as advertised window. This seems to be sufficient
to avoid drops even on slow NICs.
18 years ago
Michael Brown
6d4e37cf42
Move include/malloc.h to include/gpxe/malloc.h, since everything in there
is now gPXE-specific. (The standard malloc() et al have been in stdlib.h
for a while).
Add free memory counter.
18 years ago
Michael Brown
5ff23aa406
Include stdlib.h rather than malloc.h
18 years ago
Michael Brown
05f4c3d176
Remove the one-packet-per-poll-cycle limit; it seems to no longer be
needed now that performance is up.
18 years ago
Michael Brown
6c72bf13a1
Presize the download buffer when we see the Content-Length header;
this saves around 70us per received packet (which is around 50% of the
overall packet processing time).
18 years ago
Michael Brown
08da93a311
Reorder functions to more closely reflect the flow of control
18 years ago
Michael Brown
06630a3036
Switch from calloc() to malloc()+memset() to match the practices used
almost everywhere else.
18 years ago
Michael Brown
dd6d94004f
HTTP/DNS now working fully asynchronously. HTTP/IP addresses and any
other protocol won't work at the moment.
18 years ago
Michael Brown
99e58865c7
Use struct sockaddr rather than struct sockaddr_tcpip
Tidy up code
18 years ago
Michael Brown
f11da20f25
When a network device is specified to tcpip_tx() or it's children, treat
it as a fallback network device rather than an explicitly forced network
device.
Clear routing table entries before re-attempting DHCP.
18 years ago
Michael Brown
1a1fc23417
Improve debugging
18 years ago
Michael Brown
bcdb6fad3e
Improve debug messages
18 years ago
Michael Brown
835d35749f
Improved debugging
18 years ago
Michael Brown
143d14614d
Quickly hack in DNS resolution as a proof of concept
18 years ago
Michael Brown
9af12d5fba
A working DNS resolver (not yet tied in to anything)
18 years ago
Michael Brown
df0397f334
Update TFTP and FTP to take the same temporary URI scheme as HTTP
18 years ago
Michael Brown
afa752f5fb
Protocol's get() method no longer takes ownership of the URI. HTTP is the
exception rather than the rule; we may as well keep things clean for other
protocols.
18 years ago
Michael Brown
1f92c6b3e8
Must free http on the error path; nothing else will do it
18 years ago
Michael Brown
c676591cd1
Unmaintained example code is probably worse than useless.
18 years ago