diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85a67c9d5982..e24d48dd99d3 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2731,6 +2731,11 @@ slow_output: | |||
2731 | } | 2731 | } |
2732 | EXPORT_SYMBOL_GPL(__ip_route_output_key); | 2732 | EXPORT_SYMBOL_GPL(__ip_route_output_key); |
2733 | 2733 | ||
2734 | static struct dst_entry *ipv4_blackhole_dst_check(struct dst_entry *dst, u32 cookie) | ||
2735 | { | ||
2736 | return NULL; | ||
2737 | } | ||
2738 | |||
2734 | static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | 2739 | static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) |
2735 | { | 2740 | { |
2736 | } | 2741 | } |
@@ -2739,7 +2744,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = { | |||
2739 | .family = AF_INET, | 2744 | .family = AF_INET, |
2740 | .protocol = cpu_to_be16(ETH_P_IP), | 2745 | .protocol = cpu_to_be16(ETH_P_IP), |
2741 | .destroy = ipv4_dst_destroy, | 2746 | .destroy = ipv4_dst_destroy, |
2742 | .check = ipv4_dst_check, | 2747 | .check = ipv4_blackhole_dst_check, |
2743 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, | 2748 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, |
2744 | .entries = ATOMIC_INIT(0), | 2749 | .entries = ATOMIC_INIT(0), |
2745 | }; | 2750 | }; |