@ -1,6 +1,8 @@
|
||||
package debug
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/google/gopacket"
|
||||
"github.com/google/gopacket/layers"
|
||||
log "github.com/sirupsen/logrus"
|
||||
@ -19,3 +21,7 @@ func DebugPacket(p *radius.Packet) {
|
||||
}
|
||||
log.Debug(layer.(*layers.RADIUS))
|
||||
}
|
||||
|
||||
func FormatBytes(d []byte) string {
|
||||
return fmt.Sprintf("% x", d)
|
||||
}
|
||||
|
Reference in New Issue
Block a user