From 3b850ad89e887e8d22d512ddcb222a9e62d00248 Mon Sep 17 00:00:00 2001 From: Josh Deprez Date: Sun, 21 Apr 2024 17:53:47 +1000 Subject: [PATCH] More log --- router/nbp.go | 2 ++ router/nbp_aurp.go | 1 + 2 files changed, 3 insertions(+) diff --git a/router/nbp.go b/router/nbp.go index 77584b8..0a778e6 100644 --- a/router/nbp.go +++ b/router/nbp.go @@ -46,6 +46,7 @@ func (rtr *Router) HandleNBP(srcHWAddr ethernet.Addr, ddpkt *ddp.ExtPacket) erro if err != nil || outDDP == nil { return err } + log.Print("NBP: Replying to LkUp with LkUp-Reply for myself") return rtr.sendEtherTalkDDP(srcHWAddr, outDDP) case nbp.FunctionBrRq: @@ -100,6 +101,7 @@ func (rtr *Router) HandleNBP(srcHWAddr ethernet.Addr, ddpkt *ddp.ExtPacket) erro if outDDP2 == nil { continue } + log.Print("NBP: Replying to BrRq with LkUp-Reply for myself") if err := rtr.sendEtherTalkDDP(srcHWAddr, outDDP2); err != nil { return err } diff --git a/router/nbp_aurp.go b/router/nbp_aurp.go index 9bdec25..b8e6c9d 100644 --- a/router/nbp_aurp.go +++ b/router/nbp_aurp.go @@ -80,6 +80,7 @@ func (rtr *Router) HandleNBPInAURP(peer *Peer, ddpkt *ddp.ExtPacket) error { if err != nil || outDDP == nil { return err } + log.Print("NBP/DDP/AURP: Replying to BrRq with LkUp-Reply for myself") outDDPRaw, err := ddp.ExtMarshal(*outDDP) if err != nil { return err