diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-12 03:39:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-12 03:39:24 -0400 |
commit | b587ee3ba21f58b7770a132e6bca5c6658ac5095 (patch) | |
tree | e8d93a75e52e1427667ae708218ac2ebd1007b45 /net/decnet/dn_route.c | |
parent | b94f1c0904da9b8bf031667afc48080ba7c3e8c9 (diff) |
net: Add dummy dst_ops->redirect method where needed.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r-- | net/decnet/dn_route.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 | */ |