/[qemu]
ViewVC logotype

Revision 7198


Jump to revision: Previous Next
Author: aliguori
Date: Tue Apr 21 19:56:20 2009 UTC (14 years, 7 months ago)
Changed paths: 2
Log Message:
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>

Changed paths:

Path Details
Directorytrunk/slirp/bootp.c modified , text changed
Directorytrunk/slirp/bootp.h modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5