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
fb84409e
Unverified
Commit
fb84409e
authored
Mar 08, 2020
by
Will Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
7b351d86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
netroute_linux.go
netroute_linux.go
+2
-0
netroute_windows.go
netroute_windows.go
+1
-1
No files found.
netroute_linux.go
View file @
fb84409e
...
...
@@ -3,6 +3,8 @@
package
netroute
import
(
"net"
"github.com/google/gopacket/routing"
)
...
...
netroute_windows.go
View file @
fb84409e
...
...
@@ -222,7 +222,7 @@ func (r *winRouter) RouteWithSrc(input net.HardwareAddr, src, dst net.IP) (iface
}
iface
=
getIface
(
route
.
index
)
if
route
.
nextHop
.
Addr
.
Family
==
0
/* AF_UNDEF */
{
if
route
nextHop
==
nil
||
route
.
nextHop
.
Addr
.
Family
==
0
/* AF_UNDEF */
{
return
iface
,
nil
,
pref
,
nil
}
addr
,
err
:=
route
.
nextHop
.
Sockaddr
()
...
...
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