Michael Brown
0becbf5fba
Add ProxyDHCP support.
17 anos atrás
Michael Brown
fb809da2df
Remove some assumptions about DHCP obtaining only a single options block.
17 anos atrás
Michael Brown
8d18338ae7
Add PXE-required DHCP options to DHCPDISCOVER and DHCPREQUEST packets.
17 anos atrás
Michael Brown
26f3a09ccf
Add UUID to DHCP request as option 97 (if available).
17 anos atrás
Michael Brown
af303db75d
Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us
to construct DHCP packets suitable for Infiniband.
18 anos atrás
Michael Brown
7e4e5af462
Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us
to construct DHCP packets suitable for Infiniband.
18 anos atrás
Michael Brown
771455653b
Bugfix: DHCP message type should be a one-byte option... (d'oh)
18 anos atrás
Michael Brown
c0d99245a9
Bugfix: DHCP message type should be a one-byte option... (d'oh)
18 anos atrás
Michael Brown
972f293e46
Check for correct block number in tftp_rx_data().
(Problem observed by Clay McClure in VMware Fusion.)
18 anos atrás
Michael Brown
00d93c6dd9
Minor style fix: structure fields are generally initialised in the
order in which they occur.
18 anos atrás
Marty Connor
14e1d3cc4d
TFTP default blocksize fix from Vampyre
18 anos atrás
Michael Brown
2ff1b1245b
Use start_timer_nodelay() in protocols which rely on the retry timer
to generate the initial transmission; this cuts off around 0.3s per
instantiated connection.
18 anos atrás
Michael Brown
9fd6a0418f
Allowed zero-cost enforced ordering of features in startup banner
list.
Added FEATURE() macros to most relevant (non-driver) files.
18 anos atrás
Michael Brown
0acb016840
Add FEATURE() macro, plus code to display features at startup time,
and generate DHCP options to indicate features to DHCP server (and to
PXE NBPs).
18 anos atrás
Michael Brown
79691961ba
Add identifier for the network device into the DHCP request.
18 anos atrás
Michael Brown
5e26df0325
Centralise construction of the DHCP request and response packets.
18 anos atrás
Michael Brown
f44969f7df
nameserver should be static
18 anos atrás
Michael Brown
237e23c1c9
Add debug message when nameserver setting is applied/changed via DHCP.
18 anos atrás
Michael Brown
b34d4d0449
Separate the "is data ready" function of xfer_seek() into an
xfer_window() function, which can return a scalar rather than a
boolean.
18 anos atrás
Michael Brown
ca4c6f9eee
Kill off unused request() method in data-xfer interface.
18 anos atrás
Holger Lubitz
a4d3476e0e
convert to zalloc
18 anos atrás
Holger Lubitz
da3c785816
convert to zalloc
18 anos atrás
Holger Lubitz
2b9fb513f4
convert to zalloc
18 anos atrás
Michael Brown
934b70d62c
Apply global DHCP options when register_dhcp_options() is called. Do
not apply DHCP options in dhcp_configure_netdev().
18 anos atrás
Michael Brown
1567b69895
Add concept of DHCP option applicators.
18 anos atrás
Michael Brown
d7e471f654
Improve debugging
18 anos atrás
Michael Brown
3bf5eb49d0
Can't use strncpy() to copy strings that aren't NUL-terminated to
begin with.
18 anos atrás
Michael Brown
acd598b4f9
Don't build option-overloaded packets; they just confuse people (ISC
DHCPD and Windows RIS in particular).
18 anos atrás
Michael Brown
c73bff7ae5
Set current working URI based on TFTP server specified by DHCP.
18 anos atrás
Michael Brown
d465ae9785
Bugfix: iobuf->data always points to the start of the allocated
portion, not to the bit we want to currently write to...
18 anos atrás
Michael Brown
1ec7bb789d
Add dhcp_configure_netdev()
18 anos atrás
Michael Brown
cf33b568dc
Forgot to set initial session state. Now works!
18 anos atrás
Michael Brown
73fe1ba9dd
Kill off job::start() (it was only ever added as part of an aborted
attempt at triggering TCP-related protocols to start).
18 anos atrás
Michael Brown
07dc294de8
Update DHCP to use data-xfer interface (not yet tested).
18 anos atrás
Michael Brown
f77815f2b1
Kill off hotplug.h and just make net devices normal reference-counted
structures.
DHCP still broken and #if 0'd out.
18 anos atrás
Michael Brown
2d4c72b762
Remove unused headers.
18 anos atrás
Michael Brown
f87bc837f4
Updated DNS to use not-yet-implemented UDP data-xfer API.
18 anos atrás
Michael Brown
01b4bde8a0
Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer
UDP API.
18 anos atrás
Michael Brown
63719deea9
Introduce name resolution interface and named socket opener.
18 anos atrás
Anselm Martin Hoffmeister
ed7dc02a95
hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise
output buffering defintions and the like)
18 anos atrás
Michael Brown
92a78c8e15
Added SIGKILL handler
18 anos atrás
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
18 anos atrás
Michael Brown
4e3976711d
A working name resolution framework
18 anos atrás
Michael Brown
075f8144ff
Have DHCP set the nameserver, rather than DNS read the DHCP nameserver
value.
18 anos atrás
Michael Brown
99e58865c7
Use struct sockaddr rather than struct sockaddr_tcpip
Tidy up code
18 anos atrás
Michael Brown
835d35749f
Improved debugging
18 anos atrás
Michael Brown
9af12d5fba
A working DNS resolver (not yet tied in to anything)
18 anos atrás
Michael Brown
df0397f334
Update TFTP and FTP to take the same temporary URI scheme as HTTP
18 anos atrás
Michael Brown
4e20d73bb5
Gave asynchronous operations approximate POSIX signal semantics. This
will enable us to cascade async operations, which is necessary in order to
properly support DNS. (For example, an HTTP request may have to redirect
to a new location and will have to perform a new DNS lookup, so we can't
just rely on doing the name lookup at the time of parsing the initial
URL).
Anything other than HTTP is probably broken right now; I'll fix the others
up asap.
18 anos atrás
Michael Brown
0010e10ef3
Update TFTP to use a struct buffer rather than a callback.
Add debug autocolourisation to TFTP.
18 anos atrás