Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8d26784c
Commit
8d26784c
authored
Nov 17, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipv6: Use pr_warn() in ip6_fib.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
14df015b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
net/ipv6/ip6_fib.c
net/ipv6/ip6_fib.c
+10
-10
No files found.
net/ipv6/ip6_fib.c
View file @
8d26784c
...
...
@@ -451,12 +451,12 @@ static struct fib6_node * fib6_add_1(struct fib6_node *root, void *addr,
!
ipv6_prefix_equal
(
&
key
->
addr
,
addr
,
fn
->
fn_bit
))
{
if
(
!
allow_create
)
{
if
(
replace_required
)
{
pr
intk
(
KERN_WARNING
"IPv6: Can't replace route,
no match found
\n
"
);
pr
_warn
(
"IPv6: Can't replace route, "
"
no match found
\n
"
);
return
ERR_PTR
(
-
ENOENT
);
}
pr
intk
(
KERN_WARNING
"IPv6: NLM_F_CREATE should be set
when creating new route
\n
"
);
pr
_warn
(
"IPv6: NLM_F_CREATE should be set "
"
when creating new route
\n
"
);
}
goto
insert_above
;
}
...
...
@@ -499,11 +499,11 @@ static struct fib6_node * fib6_add_1(struct fib6_node *root, void *addr,
* That would keep IPv6 consistent with IPv4
*/
if
(
replace_required
)
{
printk
(
KERN_WARNING
"IPv6: Can't replace route, no match found
\n
"
);
pr_warn
(
"IPv6: Can't replace route, no match found
\n
"
);
return
ERR_PTR
(
-
ENOENT
);
}
printk
(
KERN_WARNING
"IPv6: NLM_F_CREATE should be set when creating new route
\n
"
);
pr_warn
(
"IPv6: NLM_F_CREATE should be set "
"when creating new route
\n
"
);
}
/*
* We walked to the bottom of tree.
...
...
@@ -697,7 +697,7 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt,
*/
if
(
!
replace
)
{
if
(
!
add
)
pr
intk
(
KERN_WARNING
"IPv6: NLM_F_CREATE should be set when creating new route
\n
"
);
pr
_warn
(
"IPv6: NLM_F_CREATE should be set when creating new route
\n
"
);
add:
rt
->
dst
.
rt6_next
=
iter
;
...
...
@@ -716,7 +716,7 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt,
if
(
!
found
)
{
if
(
add
)
goto
add
;
pr
intk
(
KERN_WARNING
"IPv6: NLM_F_REPLACE set, but no existing node found!
\n
"
);
pr
_warn
(
"IPv6: NLM_F_REPLACE set, but no existing node found!
\n
"
);
return
-
ENOENT
;
}
*
ins
=
rt
;
...
...
@@ -768,7 +768,7 @@ int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info)
replace_required
=
1
;
}
if
(
!
allow_create
&&
!
replace_required
)
pr
intk
(
KERN_WARNING
"IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
\n
"
);
pr
_warn
(
"IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE
\n
"
);
fn
=
fib6_add_1
(
root
,
&
rt
->
rt6i_dst
.
addr
,
sizeof
(
struct
in6_addr
),
rt
->
rt6i_dst
.
plen
,
offsetof
(
struct
rt6_info
,
rt6i_dst
),
...
...
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