xfrm: Handle blackhole route creation via afinfo.

That way we don't have to potentially do this in every xfrm_lookup()
caller.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2011-03-01 14:59:04 -08:00
parent 69ead7afdf
commit 2774c131b1
10 changed files with 50 additions and 67 deletions

View File

@ -520,8 +520,8 @@ extern struct dst_entry * ip6_sk_dst_lookup_flow(struct sock *sk,
struct flowi *fl,
const struct in6_addr *final_dst,
bool can_sleep);
extern struct dst_entry * ip6_dst_blackhole(struct net *net,
struct dst_entry *orig_dst);
extern struct dst_entry * ip6_blackhole_route(struct net *net,
struct dst_entry *orig_dst);
/*
* skb processing functions