diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f4b7f806afd8..d63f780c6941 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2692,6 +2692,12 @@ static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
2692 | { | 2692 | { |
2693 | } | 2693 | } |
2694 | 2694 | ||
2695 | static u32 *ipv4_rt_blackhole_cow_metrics(struct dst_entry *dst, | ||
2696 | unsigned long old) | ||
2697 | { | ||
2698 | return NULL; | ||
2699 | } | ||
2700 | |||
2695 | static struct dst_ops ipv4_dst_blackhole_ops = { | 2701 | static struct dst_ops ipv4_dst_blackhole_ops = { |
2696 | .family = AF_INET, | 2702 | .family = AF_INET, |
2697 | .protocol = cpu_to_be16(ETH_P_IP), | 2703 | .protocol = cpu_to_be16(ETH_P_IP), |
@@ -2700,6 +2706,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = { | |||
2700 | .default_mtu = ipv4_blackhole_default_mtu, | 2706 | .default_mtu = ipv4_blackhole_default_mtu, |
2701 | .default_advmss = ipv4_default_advmss, | 2707 | .default_advmss = ipv4_default_advmss, |
2702 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, | 2708 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, |
2709 | .cow_metrics = ipv4_rt_blackhole_cow_metrics, | ||
2703 | }; | 2710 | }; |
2704 | 2711 | ||
2705 | struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig) | 2712 | struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig) |