]> xenbits.xensource.com Git - libvirt.git/commit
nwfilter: Also pick IP address from a DHCP ACK message
authorStefan Berger <stefanb@us.ibm.com>
Fri, 30 Apr 2010 11:51:47 +0000 (07:51 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 30 Apr 2010 11:51:47 +0000 (07:51 -0400)
commit7c66c033a91f084aac60abcfb76afa5b7b55dc76
tree14b4cbf2d2d58c05a63f3f11d15b4bc8476ef2cc
parentc179a0f63c5e21e0e6676611fd2268456fa47efa
nwfilter: Also pick IP address from a DHCP ACK message

The local DHCP server on virtbr0 sends DHCP ACK messages when a VM is
started and requests an IP address while the initial DHCP lease on the
VM's MAC address hasn't expired. So, also pick the IP address of the VM
if that type of message is seen.
Thanks to Gerhard Stenzel for providing a test case for this.

Changes from V1 to V2:
- cleanup: replacing DHCP option numbers through constants
src/nwfilter/nwfilter_learnipaddr.c