More log
This commit is contained in:
parent
3953511438
commit
3b850ad89e
2 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,7 @@ func (rtr *Router) HandleNBP(srcHWAddr ethernet.Addr, ddpkt *ddp.ExtPacket) erro
|
||||||
if err != nil || outDDP == nil {
|
if err != nil || outDDP == nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
log.Print("NBP: Replying to LkUp with LkUp-Reply for myself")
|
||||||
return rtr.sendEtherTalkDDP(srcHWAddr, outDDP)
|
return rtr.sendEtherTalkDDP(srcHWAddr, outDDP)
|
||||||
|
|
||||||
case nbp.FunctionBrRq:
|
case nbp.FunctionBrRq:
|
||||||
|
@ -100,6 +101,7 @@ func (rtr *Router) HandleNBP(srcHWAddr ethernet.Addr, ddpkt *ddp.ExtPacket) erro
|
||||||
if outDDP2 == nil {
|
if outDDP2 == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
log.Print("NBP: Replying to BrRq with LkUp-Reply for myself")
|
||||||
if err := rtr.sendEtherTalkDDP(srcHWAddr, outDDP2); err != nil {
|
if err := rtr.sendEtherTalkDDP(srcHWAddr, outDDP2); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,7 @@ func (rtr *Router) HandleNBPInAURP(peer *Peer, ddpkt *ddp.ExtPacket) error {
|
||||||
if err != nil || outDDP == nil {
|
if err != nil || outDDP == nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
log.Print("NBP/DDP/AURP: Replying to BrRq with LkUp-Reply for myself")
|
||||||
outDDPRaw, err := ddp.ExtMarshal(*outDDP)
|
outDDPRaw, err := ddp.ExtMarshal(*outDDP)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue