fixup

parent 38181170
......@@ -244,8 +244,6 @@ func New() (routing.Router, error) {
if m.Flags&0x2 != 0 /* RTF_GATEWAY */ {
routeInfo.Src.Mask = net.CIDRMask(0, 8*len(routeInfo.Src.IP))
}
} else {
return nil, fmt.Errorf("Unexpected RIB src: (%v) %v", m.Addrs, err)
}
routeInfo.OutputIface = uint32(m.Index)
......
......@@ -6,7 +6,7 @@ import (
"github.com/google/gopacket/routing"
)
struct router {
type router struct {
routing.Router
}
......
......@@ -92,7 +92,7 @@ func copyInto(dst []int8, src []byte) {
}
}
func isZero(addr *windows.RawSockaddrAny) {
func isZero(addr *windows.RawSockaddrAny) bool {
for _, b := range addr.Addr.Data {
if b != 0 {
return false
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment