Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277595
b: refs/heads/master
c: 8d26784
h: refs/heads/master
i:
  277593: 5ffd2eb
  277591: 9eeac57
v: v3
  • Loading branch information
David S. Miller committed Nov 17, 2011
1 parent 43d4ea6 commit 3858cfe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14df015bb1708cd7ba1e5af11a1b0365b165a3ef
refs/heads/master: 8d26784cf0d04c1238e906efdd5de76439cb0a1e
20 changes: 10 additions & 10 deletions trunk/net/ipv6/ip6_fib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
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");
}
goto insert_above;
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -697,7 +697,7 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt,
*/
if (!replace) {
if (!add)
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");

add:
rt->dst.rt6_next = iter;
Expand All @@ -716,7 +716,7 @@ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt,
if (!found) {
if (add)
goto add;
printk(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;
Expand Down Expand Up @@ -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)
printk(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),
Expand Down

0 comments on commit 3858cfe

Please sign in to comment.