diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-12 03:39:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-12 03:39:24 -0400 |
commit | b587ee3ba21f58b7770a132e6bca5c6658ac5095 (patch) | |
tree | e8d93a75e52e1427667ae708218ac2ebd1007b45 /net/ipv6 | |
parent | b94f1c0904da9b8bf031667afc48080ba7c3e8c9 (diff) |
net: Add dummy dst_ops->redirect method where needed.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/route.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 7296af144d6c..3151aabff5fd 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -191,6 +191,10 @@ static void ip6_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
191 | { | 191 | { |
192 | } | 192 | } |
193 | 193 | ||
194 | static void ip6_rt_blackhole_redirect(struct dst_entry *dst, struct sk_buff *skb) | ||
195 | { | ||
196 | } | ||
197 | |||
194 | static u32 *ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, | 198 | static u32 *ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, |
195 | unsigned long old) | 199 | unsigned long old) |
196 | { | 200 | { |
@@ -205,6 +209,7 @@ static struct dst_ops ip6_dst_blackhole_ops = { | |||
205 | .mtu = ip6_blackhole_mtu, | 209 | .mtu = ip6_blackhole_mtu, |
206 | .default_advmss = ip6_default_advmss, | 210 | .default_advmss = ip6_default_advmss, |
207 | .update_pmtu = ip6_rt_blackhole_update_pmtu, | 211 | .update_pmtu = ip6_rt_blackhole_update_pmtu, |
212 | .redirect = ip6_rt_blackhole_redirect, | ||
208 | .cow_metrics = ip6_rt_blackhole_cow_metrics, | 213 | .cow_metrics = ip6_rt_blackhole_cow_metrics, |
209 | .neigh_lookup = ip6_neigh_lookup, | 214 | .neigh_lookup = ip6_neigh_lookup, |
210 | }; | 215 | }; |