Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
1b2f8d62
Commit
1b2f8d62
authored
May 19, 2012
by
Grégoire Henry
Committed by
Juliusz Chroboczek
May 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix blackhole route installation on BSD
parent
03d6d27a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
kernel_socket.c
kernel_socket.c
+12
-3
No files found.
kernel_socket.c
View file @
1b2f8d62
...
@@ -412,10 +412,19 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
...
@@ -412,10 +412,19 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
return
0
;
return
0
;
if
(
operation
==
ROUTE_MODIFY
)
{
if
(
operation
==
ROUTE_MODIFY
)
{
if
(
metric
==
KERNEL_INFINITY
||
newmetric
==
KERNEL_INFINITY
)
{
kernel_route
(
ROUTE_FLUSH
,
dest
,
plen
,
gate
,
ifindex
,
metric
,
NULL
,
0
,
0
);
return
kernel_route
(
ROUTE_ADD
,
dest
,
plen
,
newgate
,
newifindex
,
newmetric
,
NULL
,
0
,
0
);
}
else
{
metric
=
newmetric
;
metric
=
newmetric
;
gate
=
newgate
;
gate
=
newgate
;
ifindex
=
newifindex
;
ifindex
=
newifindex
;
}
}
}
kdebugf
(
"kernel_route: %s %s/%d metric %d dev %d nexthop %s
\n
"
,
kdebugf
(
"kernel_route: %s %s/%d metric %d dev %d nexthop %s
\n
"
,
operation
==
ROUTE_ADD
?
"add"
:
operation
==
ROUTE_ADD
?
"add"
:
...
...
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