aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tap.c b/tap.c
index 7ba6399..cf862ef 100644
--- a/tap.c
+++ b/tap.c
@@ -1096,7 +1096,11 @@ void tap_add_packet(struct ctx *c, struct iov_tail *data,
return;
if (memcmp(c->guest_mac, eh->h_source, ETH_ALEN)) {
+ char bufmac[ETH_ADDRSTRLEN];
+
memcpy(c->guest_mac, eh->h_source, ETH_ALEN);
+ debug("New guest MAC address observed: %s",
+ eth_ntop(c->guest_mac, bufmac, sizeof(bufmac)));
proto_update_l2_buf(c->guest_mac, NULL);
}