Skip to content

Commit

Permalink
Only perform DHCP snooping for frames destined to the VM (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev authored Nov 10, 2022
1 parent 717e6b0 commit e2403f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/proxy/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit e2403f0

Please sign in to comment.