diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-01 17:59:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-01 17:59:04 -0500 |
commit | 2774c131b1d19920b4587db1cfbd6f0750ad1f15 (patch) | |
tree | 3a0482c727cf4dcc046a211214f12459dcba8271 /include/net/xfrm.h | |
parent | 69ead7afdf6028184f713a77376ee26f8aaafdcd (diff) |
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>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index efded23dc4ae..d5dcf3974636 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -280,6 +280,7 @@ struct xfrm_policy_afinfo { | |||
280 | int (*fill_dst)(struct xfrm_dst *xdst, | 280 | int (*fill_dst)(struct xfrm_dst *xdst, |
281 | struct net_device *dev, | 281 | struct net_device *dev, |
282 | const struct flowi *fl); | 282 | const struct flowi *fl); |
283 | struct dst_entry *(*blackhole_route)(struct net *net, struct dst_entry *orig); | ||
283 | }; | 284 | }; |
284 | 285 | ||
285 | extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo); | 286 | extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo); |