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/ipv6/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/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 72609f1c6158..0a63d44e6f48 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -144,6 +144,11 @@ static struct dst_ops ip6_dst_ops_template = { | |||
144 | .local_out = __ip6_local_out, | 144 | .local_out = __ip6_local_out, |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static unsigned int ip6_blackhole_default_mtu(const struct dst_entry *dst) | ||
148 | { | ||
149 | return 0; | ||
150 | } | ||
151 | |||
147 | static void ip6_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | 152 | static void ip6_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) |
148 | { | 153 | { |
149 | } | 154 | } |
@@ -153,6 +158,7 @@ static struct dst_ops ip6_dst_blackhole_ops = { | |||
153 | .protocol = cpu_to_be16(ETH_P_IPV6), | 158 | .protocol = cpu_to_be16(ETH_P_IPV6), |
154 | .destroy = ip6_dst_destroy, | 159 | .destroy = ip6_dst_destroy, |
155 | .check = ip6_dst_check, | 160 | .check = ip6_dst_check, |
161 | .default_mtu = ip6_blackhole_default_mtu, | ||
156 | .update_pmtu = ip6_rt_blackhole_update_pmtu, | 162 | .update_pmtu = ip6_rt_blackhole_update_pmtu, |
157 | }; | 163 | }; |
158 | 164 | ||