diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-04 17:28:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-04 17:28:58 -0500 |
commit | bd4a6974cc9090ef3851e5b0a2071e5383565c7c (patch) | |
tree | e96ef46426d293b730a305b5185ba5412c9172d4 /net/ipv4/route.c | |
parent | 2b7bcebf958c74124220ee8103024def8597b36c (diff) | |
parent | 1e6d93e45b231b3ae87c01902ede2315aacfe976 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 242a3de83fbb..e4c81652f17d 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2773,6 +2773,11 @@ static struct dst_entry *ipv4_blackhole_dst_check(struct dst_entry *dst, u32 coo | |||
2773 | return NULL; | 2773 | return NULL; |
2774 | } | 2774 | } |
2775 | 2775 | ||
2776 | static unsigned int ipv4_blackhole_default_mtu(const struct dst_entry *dst) | ||
2777 | { | ||
2778 | return 0; | ||
2779 | } | ||
2780 | |||
2776 | static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | 2781 | static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) |
2777 | { | 2782 | { |
2778 | } | 2783 | } |
@@ -2782,6 +2787,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = { | |||
2782 | .protocol = cpu_to_be16(ETH_P_IP), | 2787 | .protocol = cpu_to_be16(ETH_P_IP), |
2783 | .destroy = ipv4_dst_destroy, | 2788 | .destroy = ipv4_dst_destroy, |
2784 | .check = ipv4_blackhole_dst_check, | 2789 | .check = ipv4_blackhole_dst_check, |
2790 | .default_mtu = ipv4_blackhole_default_mtu, | ||
2785 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, | 2791 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, |
2786 | }; | 2792 | }; |
2787 | 2793 | ||