diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-11 23:55:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 23:55:47 -0400 |
commit | e47a185b31dd2acd424fac7dc0efb96fc5b31a33 (patch) | |
tree | 31947f03e2600b8fd73a9afd391a69c218234f03 /include/net/dst_ops.h | |
parent | 94206125c4aac32e43c25bfe1b827e7ab993b7dc (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h index 4badc86e45d1..085931fa7ce0 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h | |||
@@ -25,6 +25,7 @@ struct dst_ops { | |||
25 | struct dst_entry * (*negative_advice)(struct dst_entry *); | 25 | struct dst_entry * (*negative_advice)(struct dst_entry *); |
26 | void (*link_failure)(struct sk_buff *); | 26 | void (*link_failure)(struct sk_buff *); |
27 | void (*update_pmtu)(struct dst_entry *dst, u32 mtu); | 27 | void (*update_pmtu)(struct dst_entry *dst, u32 mtu); |
28 | void (*redirect)(struct dst_entry *dst, struct sk_buff *skb); | ||
28 | int (*local_out)(struct sk_buff *skb); | 29 | int (*local_out)(struct sk_buff *skb); |
29 | struct neighbour * (*neigh_lookup)(const struct dst_entry *dst, | 30 | struct neighbour * (*neigh_lookup)(const struct dst_entry *dst, |
30 | struct sk_buff *skb, | 31 | struct sk_buff *skb, |