Only perform DHCP snooping for frames destined to the VM (#10)

This commit is contained in:
Nikolay Edigaryev 2022-11-10 20:31:18 +04:00 committed by GitHub
parent 717e6b0f89
commit e2403f0ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ impl Proxy {
// Snoop bootpd(8) replies from the host to
// figure out the IP assigned to the VM
self.snoop(frame);
if frame.dst_addr() == self.vm_mac_address {
self.snoop(frame);
}
self.vm
.write(frame.as_ref())