More log
This commit is contained in:
parent
112012bf5b
commit
07ea3688d5
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -198,9 +198,12 @@ func main() {
|
||||||
|
|
||||||
switch ethFrame.SNAPProto {
|
switch ethFrame.SNAPProto {
|
||||||
case ethertalk.AARPProto:
|
case ethertalk.AARPProto:
|
||||||
|
log.Print("Got an AARP frame")
|
||||||
aarpCh <- ethFrame
|
aarpCh <- ethFrame
|
||||||
|
|
||||||
case ethertalk.AppleTalkProto:
|
case ethertalk.AppleTalkProto:
|
||||||
|
log.Print("Got an AppleTalk frame")
|
||||||
|
|
||||||
var ddpkt ddp.ExtPacket
|
var ddpkt ddp.ExtPacket
|
||||||
if err := ddp.ExtUnmarshal(ethFrame.Payload, &ddpkt); err != nil {
|
if err := ddp.ExtUnmarshal(ethFrame.Payload, &ddpkt); err != nil {
|
||||||
log.Printf("Couldn't unmarshal DDP packet: %v", err)
|
log.Printf("Couldn't unmarshal DDP packet: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue