diff options
-rw-r--r-- | net/bridge/br_netfilter.c | 5 | ||||
-rw-r--r-- | net/decnet/dn_route.c | 6 | ||||
-rw-r--r-- | net/ipv4/route.c | 5 | ||||
-rw-r--r-- | net/ipv6/route.c | 5 |
4 files changed, 21 insertions, 0 deletions
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c index b98d3d78ca7f..81f76c402cf2 100644 --- a/net/bridge/br_netfilter.c +++ b/net/bridge/br_netfilter.c | |||
@@ -115,6 +115,10 @@ static void fake_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
115 | { | 115 | { |
116 | } | 116 | } |
117 | 117 | ||
118 | static void fake_redirect(struct dst_entry *dst, struct sk_buff *skb) | ||
119 | { | ||
120 | } | ||
121 | |||
118 | static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old) | 122 | static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old) |
119 | { | 123 | { |
120 | return NULL; | 124 | return NULL; |
@@ -136,6 +140,7 @@ static struct dst_ops fake_dst_ops = { | |||
136 | .family = AF_INET, | 140 | .family = AF_INET, |
137 | .protocol = cpu_to_be16(ETH_P_IP), | 141 | .protocol = cpu_to_be16(ETH_P_IP), |
138 | .update_pmtu = fake_update_pmtu, | 142 | .update_pmtu = fake_update_pmtu, |
143 | .redirect = fake_redirect, | ||
139 | .cow_metrics = fake_cow_metrics, | 144 | .cow_metrics = fake_cow_metrics, |
140 | .neigh_lookup = fake_neigh_lookup, | 145 | .neigh_lookup = fake_neigh_lookup, |
141 | .mtu = fake_mtu, | 146 | .mtu = fake_mtu, |
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index b5594cc73ee1..e9c4e2e864c6 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -118,6 +118,7 @@ static void dn_dst_ifdown(struct dst_entry *, struct net_device *dev, int how); | |||
118 | static struct dst_entry *dn_dst_negative_advice(struct dst_entry *); | 118 | static struct dst_entry *dn_dst_negative_advice(struct dst_entry *); |
119 | static void dn_dst_link_failure(struct sk_buff *); | 119 | static void dn_dst_link_failure(struct sk_buff *); |
120 | static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu); | 120 | static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu); |
121 | static void dn_dst_redirect(struct dst_entry *dst, struct sk_buff *skb); | ||
121 | static struct neighbour *dn_dst_neigh_lookup(const struct dst_entry *dst, | 122 | static struct neighbour *dn_dst_neigh_lookup(const struct dst_entry *dst, |
122 | struct sk_buff *skb, | 123 | struct sk_buff *skb, |
123 | const void *daddr); | 124 | const void *daddr); |
@@ -145,6 +146,7 @@ static struct dst_ops dn_dst_ops = { | |||
145 | .negative_advice = dn_dst_negative_advice, | 146 | .negative_advice = dn_dst_negative_advice, |
146 | .link_failure = dn_dst_link_failure, | 147 | .link_failure = dn_dst_link_failure, |
147 | .update_pmtu = dn_dst_update_pmtu, | 148 | .update_pmtu = dn_dst_update_pmtu, |
149 | .redirect = dn_dst_redirect, | ||
148 | .neigh_lookup = dn_dst_neigh_lookup, | 150 | .neigh_lookup = dn_dst_neigh_lookup, |
149 | }; | 151 | }; |
150 | 152 | ||
@@ -292,6 +294,10 @@ static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
292 | } | 294 | } |
293 | } | 295 | } |
294 | 296 | ||
297 | static void dn_dst_redirect(struct dst_entry *dst, struct sk_buff *skb) | ||
298 | { | ||
299 | } | ||
300 | |||
295 | /* | 301 | /* |
296 | * When a route has been marked obsolete. (e.g. routing cache flush) | 302 | * When a route has been marked obsolete. (e.g. routing cache flush) |
297 | */ | 303 | */ |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e98207dcd088..23bbe29b3bba 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2591,6 +2591,10 @@ static void ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
2591 | { | 2591 | { |
2592 | } | 2592 | } |
2593 | 2593 | ||
2594 | static void ipv4_rt_blackhole_redirect(struct dst_entry *dst, struct sk_buff *skb) | ||
2595 | { | ||
2596 | } | ||
2597 | |||
2594 | static u32 *ipv4_rt_blackhole_cow_metrics(struct dst_entry *dst, | 2598 | static u32 *ipv4_rt_blackhole_cow_metrics(struct dst_entry *dst, |
2595 | unsigned long old) | 2599 | unsigned long old) |
2596 | { | 2600 | { |
@@ -2605,6 +2609,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = { | |||
2605 | .mtu = ipv4_blackhole_mtu, | 2609 | .mtu = ipv4_blackhole_mtu, |
2606 | .default_advmss = ipv4_default_advmss, | 2610 | .default_advmss = ipv4_default_advmss, |
2607 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, | 2611 | .update_pmtu = ipv4_rt_blackhole_update_pmtu, |
2612 | .redirect = ipv4_rt_blackhole_redirect, | ||
2608 | .cow_metrics = ipv4_rt_blackhole_cow_metrics, | 2613 | .cow_metrics = ipv4_rt_blackhole_cow_metrics, |
2609 | .neigh_lookup = ipv4_neigh_lookup, | 2614 | .neigh_lookup = ipv4_neigh_lookup, |
2610 | }; | 2615 | }; |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 7296af144d6c..3151aabff5fd 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -191,6 +191,10 @@ static void ip6_rt_blackhole_update_pmtu(struct dst_entry *dst, u32 mtu) | |||
191 | { | 191 | { |
192 | } | 192 | } |
193 | 193 | ||
194 | static void ip6_rt_blackhole_redirect(struct dst_entry *dst, struct sk_buff *skb) | ||
195 | { | ||
196 | } | ||
197 | |||
194 | static u32 *ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, | 198 | static u32 *ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, |
195 | unsigned long old) | 199 | unsigned long old) |
196 | { | 200 | { |
@@ -205,6 +209,7 @@ static struct dst_ops ip6_dst_blackhole_ops = { | |||
205 | .mtu = ip6_blackhole_mtu, | 209 | .mtu = ip6_blackhole_mtu, |
206 | .default_advmss = ip6_default_advmss, | 210 | .default_advmss = ip6_default_advmss, |
207 | .update_pmtu = ip6_rt_blackhole_update_pmtu, | 211 | .update_pmtu = ip6_rt_blackhole_update_pmtu, |
212 | .redirect = ip6_rt_blackhole_redirect, | ||
208 | .cow_metrics = ip6_rt_blackhole_cow_metrics, | 213 | .cow_metrics = ip6_rt_blackhole_cow_metrics, |
209 | .neigh_lookup = ip6_neigh_lookup, | 214 | .neigh_lookup = ip6_neigh_lookup, |
210 | }; | 215 | }; |