Re: [libvirt] [PATCH v2] nwfilter: Also pick IP address from a DHCP ACK message

2010-04-30 Thread Daniel Veillard
On Thu, Apr 29, 2010 at 09:39:15AM -0400, Stefan Berger wrote: 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

Re: [libvirt] [PATCH v2] nwfilter: Also pick IP address from a DHCP ACK message

2010-04-30 Thread Stefan Berger
Daniel Veillard veill...@redhat.com wrote on 04/30/2010 07:50:02 AM: Please respond to veillard [...] -case 53: /* Message type */ +case DHCP_OPT_MESSAGETYPE: /* Message type */ if (dhcp_opts_len = 3) { uint8_t *val = (uint8_t

[libvirt] [PATCH v2] nwfilter: Also pick IP address from a DHCP ACK message

2010-04-29 Thread Stefan Berger
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