diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-01 17:45:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-01 17:45:33 -0500 |
commit | 69ead7afdf6028184f713a77376ee26f8aaafdcd (patch) | |
tree | bd5cd86f9786daadfd5425f65106bd1c7383fcc7 /include/net/ipv6.h | |
parent | 80c0bc9e37adfc892af82cb6aa8cace79f8a96cb (diff) |
ipv6: Normalize arguments to ip6_dst_blackhole().
Return a dst pointer which is potentitally error encoded.
Don't pass original dst pointer by reference, pass a struct net
instead of a socket, and elide the flow argument since it is
unnecessary.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 8f78aace0a9..5d125c1293a 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -520,9 +520,8 @@ extern struct dst_entry * ip6_sk_dst_lookup_flow(struct sock *sk, | |||
520 | struct flowi *fl, | 520 | struct flowi *fl, |
521 | const struct in6_addr *final_dst, | 521 | const struct in6_addr *final_dst, |
522 | bool can_sleep); | 522 | bool can_sleep); |
523 | extern int ip6_dst_blackhole(struct sock *sk, | 523 | extern struct dst_entry * ip6_dst_blackhole(struct net *net, |
524 | struct dst_entry **dst, | 524 | struct dst_entry *orig_dst); |
525 | struct flowi *fl); | ||
526 | 525 | ||
527 | /* | 526 | /* |
528 | * skb processing functions | 527 | * skb processing functions |