qemu-patch-raspberry4/slirp
aliguori b63c7f6b77 slirp: Handle DHCP requests for specific IP (Jan Kiszka)
This adds proper handling of the ciaddr field as well as the "Requested
IP Address" option to slirp's DHCP server. If the client requests an
invalid or used IP, a NAK reply is sent, if it requests a specific but
valid IP, this is now respected.

NAK'ing invalid IPs is specifically useful when changing the slirp IP
range via '-net user,ip=...' while the client saved its previously used
address and tries to reacquire it. Now this will be NAK'ed and the
client will start a new discovery round.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7198 c046a42c-6fe2-441c-8c8c-71466251a162
2009-04-21 19:56:20 +00:00
..
bootp.c slirp: Handle DHCP requests for specific IP (Jan Kiszka) 2009-04-21 19:56:20 +00:00
bootp.h slirp: Handle DHCP requests for specific IP (Jan Kiszka) 2009-04-21 19:56:20 +00:00
cksum.c
COPYRIGHT
ctl.h
debug.c
debug.h
icmp_var.h
if.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
if.h
ip.h
ip_icmp.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
ip_icmp.h
ip_input.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
ip_output.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
libslirp.h Move bootp_filename to avoid a sparse warning 2009-04-18 07:29:30 +00:00
main.h
mbuf.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
mbuf.h
misc.c Fix some win32 compile warnings 2009-04-05 18:03:31 +00:00
misc.h
sbuf.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
sbuf.h
slirp.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
slirp.h Fix windows build and clean up use of <windows.h> 2009-03-08 16:26:59 +00:00
slirp_config.h
socket.c Delete some unused macros detected with -Wp,-Wunused-macros use 2009-03-16 16:33:01 +00:00
socket.h Fix some win32 compile warnings 2009-04-05 18:03:31 +00:00
tcp.h
tcp_input.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
tcp_output.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
tcp_subr.c Delete some unused macros detected with -Wp,-Wunused-macros use 2009-03-16 16:33:01 +00:00
tcp_timer.c Use ANSI prototypes to please sparse 2009-04-18 07:32:41 +00:00
tcp_timer.h
tcp_var.h
tcpip.h
tftp.c
tftp.h
udp.c Use ANSI prototypes to please sparse 2009-04-18 07:32:41 +00:00
udp.h