Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos.package
Commits
aaaadb60
Commit
aaaadb60
authored
Jul 14, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use same functions to manage route in the Windows 7
parent
43b9d3a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
windows/babeld/cyginet.c
windows/babeld/cyginet.c
+2
-5
No files found.
windows/babeld/cyginet.c
View file @
aaaadb60
...
...
@@ -941,9 +941,8 @@ libwinet_edit_route_entry(const struct sockaddr *dest,
unsigned
int
metric
,
int
cmdflag
)
{
#if _WIN32_WINNT < _WIN32_WINNT_VISTA
/* Add ipv6 route before Windows Vista */
if
(
dest
->
sa_family
==
AF_INET6
)
{
const
int
MAX_BUFFER_SIZE
=
1024
;
const
char
*
cmdformat
=
"netsh interface ipv6 %s route "
"prefix=%s/%d interface=%d "
...
...
@@ -1083,9 +1082,7 @@ libwinet_edit_route_entry(const struct sockaddr *dest,
if (libwinet_run_command(cmdbuf) != 0)
return -1;
}
#endif /* if 0 */
#else
do {
/* Add route entry after Windows Vista */
MIB_IPFORWARD_ROW2 Row2;
...
...
@@ -1130,7 +1127,7 @@ libwinet_edit_route_entry(const struct sockaddr *dest,
return -1;
} while (0);
#endif
/*
_WIN32_WINNT < _WIN32_WINNT_VISTA
*/
#endif /*
if 0
*/
return
1
;
}
...
...
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