qemu/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 Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
COPYRIGHT Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ctl.h initial user mode network support 2004-04-22 00:10:48 +00:00
debug.c Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
debug.h Remove unnecessary trailing newlines 2008-12-13 09:32:43 +00:00
icmp_var.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
if.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
if.h Add const etc. to places forgotten from the previous commit 2007-10-26 19:34:46 +00:00
ip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
ip_icmp.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
ip_icmp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
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 Fix some SLIRP warnings 2009-01-12 17:51:06 +00:00
mbuf.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
mbuf.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
misc.c Fix some win32 compile warnings 2009-04-05 18:03:31 +00:00
misc.h Fix inline use warnings from sparse 2008-10-26 15:26:09 +00:00
sbuf.c Sparse fixes: NULL use, header order, ANSI prototypes, static 2009-03-07 15:32:56 +00:00
sbuf.h Use const and static as needed, disable unused code 2007-10-26 19:01:16 +00:00
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 Fix some warnings that would be generated by gcc -Wredundant-decls 2008-08-30 09:51:20 +00:00
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 Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
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 Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcp_var.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tcpip.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00
tftp.c Suppress gcc 4.x -Wpointer-sign (included in -Wall) warnings 2008-09-20 08:07:15 +00:00
tftp.h find -type f | xargs sed -i 's/[\t ]$//g' # on most files 2007-09-16 21:08:06 +00:00
udp.c Use ANSI prototypes to please sparse 2009-04-18 07:32:41 +00:00
udp.h Remove the advertising clause from the slirp license 2009-01-26 19:37:41 +00:00