Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-netroute
Commits
7b351d86
Unverified
Commit
7b351d86
authored
Mar 08, 2020
by
Will Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
38181170
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
netroute_darwin.go
netroute_darwin.go
+0
-2
netroute_linux.go
netroute_linux.go
+1
-1
netroute_windows.go
netroute_windows.go
+1
-1
No files found.
netroute_darwin.go
View file @
7b351d86
...
...
@@ -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
)
...
...
netroute_linux.go
View file @
7b351d86
...
...
@@ -6,7 +6,7 @@ import (
"github.com/google/gopacket/routing"
)
struct
router
{
type
router
struct
{
routing
.
Router
}
...
...
netroute_windows.go
View file @
7b351d86
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment