From 74692b689abb56fbca4fbcf4290693ad84c26e35 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 26 Dec 2018 12:25:28 +0000 Subject: [PATCH] Fix OpenBSD (tested and working on 6.4) --- src/yggdrasil/icmpv6.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yggdrasil/icmpv6.go b/src/yggdrasil/icmpv6.go index a34fa21..fc037fc 100644 --- a/src/yggdrasil/icmpv6.go +++ b/src/yggdrasil/icmpv6.go @@ -180,12 +180,12 @@ 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.Printf("Learning peer MAC %x for %x\n", mac, 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 neighbor.lastadvertisement = time.Now() - i.peermacs[addr] = neighbor + i.peermacs[target] = neighbor } return nil, errors.New("No response needed") }