|
|
@ -4,8 +4,8 @@ import (
|
|
|
|
//Builtin
|
|
|
|
//Builtin
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"net"
|
|
|
|
"net"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"strconv"
|
|
|
|
"strconv"
|
|
|
|
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/op/go-logging"
|
|
|
|
"github.com/op/go-logging"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -71,7 +71,6 @@ func init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Print status of the network interfaces
|
|
|
|
// Print status of the network interfaces
|
|
|
|
func NetPrint(log *logging.Logger) {
|
|
|
|
func NetPrint(log *logging.Logger) {
|
|
|
|
strLine := ""
|
|
|
|
strLine := ""
|
|
|
@ -139,7 +138,6 @@ func NetPrint(log *logging.Logger) {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Convert longip to net.IP
|
|
|
|
// Convert longip to net.IP
|
|
|
|
func inet_ntoa(ipnr uint64) net.IP {
|
|
|
|
func inet_ntoa(ipnr uint64) net.IP {
|
|
|
|
var bytes [4]byte
|
|
|
|
var bytes [4]byte
|
|
|
|