From b3d6c9a38560ac54724d3566c9396bb37b42992f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 26 Dec 2018 11:57:08 +0000 Subject: [PATCH] Print when peermacs learned --- src/yggdrasil/icmpv6.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yggdrasil/icmpv6.go b/src/yggdrasil/icmpv6.go index a8d4e6d..a34fa21 100644 --- a/src/yggdrasil/icmpv6.go +++ b/src/yggdrasil/icmpv6.go @@ -180,7 +180,7 @@ func (i *icmpv6) parse_packet_tun(datain []byte, datamac *[]byte) ([]byte, error copy(addr[:], ipv6Header.Src[:]) copy(target[:], datain[48:64]) copy(mac[:], (*datamac)[:]) - // i.tun.core.log.Println("Learning peer MAC", mac, "for", target) + i.tun.core.log.Printf("Learning peer MAC %x for %x\n", mac, target) neighbor := i.peermacs[target] neighbor.mac = mac neighbor.learned = true