diff options
author | David S. Miller <davem@davemloft.net> | 2010-09-10 01:27:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-10 01:27:33 -0400 |
commit | e548833df83c3554229eff0672900bfe958b45fd (patch) | |
tree | 85efc4a76dc356593d6d394776aeb845dc580fb6 /net/ipv4/route.c | |
parent | cbd9da7be869f676afc204e1a664163778c770bd (diff) | |
parent | 053d8f6622701f849fda2ca2c9ae596c13599ba9 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/mac80211/main.c
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 | }; |