summaryrefslogtreecommitdiffstats
path: root/include/net/dst_ops.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-07-11 20:55:47 -0700
committerDavid S. Miller <davem@davemloft.net>2012-07-11 20:55:47 -0700
commite47a185b31dd2acd424fac7dc0efb96fc5b31a33 (patch)
tree31947f03e2600b8fd73a9afd391a69c218234f03 /include/net/dst_ops.h
parent94206125c4aac32e43c25bfe1b827e7ab993b7dc (diff)
downloadop-kernel-dev-e47a185b31dd2acd424fac7dc0efb96fc5b31a33.zip
op-kernel-dev-e47a185b31dd2acd424fac7dc0efb96fc5b31a33.tar.gz
ipv4: Generalize ip_do_redirect() and hook into new dst_ops->redirect.
All of the redirect acceptance policy is now contained within. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/dst_ops.h')
-rw-r--r--include/net/dst_ops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h
index 4badc86..085931f 100644
--- a/include/net/dst_ops.h
+++ b/include/net/dst_ops.h
@@ -25,6 +25,7 @@ struct dst_ops {
struct dst_entry * (*negative_advice)(struct dst_entry *);
void (*link_failure)(struct sk_buff *);
void (*update_pmtu)(struct dst_entry *dst, u32 mtu);
+ void (*redirect)(struct dst_entry *dst, struct sk_buff *skb);
int (*local_out)(struct sk_buff *skb);
struct neighbour * (*neigh_lookup)(const struct dst_entry *dst,
struct sk_buff *skb,
OpenPOWER on IntegriCloud