]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: Process DHCP option to determine whether packet is a DHCP_OFFER
authorStefan Berger <stefanb@us.ibm.com>
Fri, 9 Apr 2010 19:54:29 +0000 (15:54 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 9 Apr 2010 19:54:29 +0000 (15:54 -0400)
commit55d444cc10f36bb33d32f8430ba0103aa4c9a69f
treef8975ebb091055c69b6f7275e82b4513a75d06bf
parentcddd3ac8b0503c55fa938fc5d4ff5a3ed4599ca9
nwfilter: Process DHCP option to determine whether packet is a DHCP_OFFER

I mistakenly took the op field in the DHCP message as the DHCP_OFFER
type. Rather than basing the decision to read the VM's IP address on
that field, process the appended DHCP options where option 53 indicates
the actual type of the packet. I am also reading the broadcast address
of the VM, but don't use it so far.
src/nwfilter/nwfilter_learnipaddr.c