Propagate host-side tap(4) lladdr to guest vm process to allow unicast dhcp
authordv <dv@openbsd.org>
Mon, 29 Mar 2021 23:37:01 +0000 (23:37 +0000)
committerdv <dv@openbsd.org>
Mon, 29 Mar 2021 23:37:01 +0000 (23:37 +0000)
commit97f33f1d96ff4ad5235952e1d2fee5ab905682f6
tree5f98db859e14c58bc80df932102f19a273d7d13a
parentcbb0e97fdcaae0bf41bc65bb74d1a0ca1a8e0df8
Propagate host-side tap(4) lladdr to guest vm process to allow unicast dhcp
and bootp renewals with vmd(8)'s built-in dhcp server. Previous behavior
ignored did not intercept these packets and instead transmitted them.

This should make vmd(8)'s dhcp behave more as a true dhcp server should and
allows it to work properly with the new dhcpleased(8) attempting a renewal.

OK mlarkin@
usr.sbin/vmd/config.c
usr.sbin/vmd/dhcp.c
usr.sbin/vmd/priv.c
usr.sbin/vmd/virtio.c
usr.sbin/vmd/virtio.h
usr.sbin/vmd/vm.c
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h
usr.sbin/vmd/vmm.c