diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-11 20:55:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 20:55:47 -0700 |
commit | e47a185b31dd2acd424fac7dc0efb96fc5b31a33 (patch) | |
tree | 31947f03e2600b8fd73a9afd391a69c218234f03 /include/net/dst_ops.h | |
parent | 94206125c4aac32e43c25bfe1b827e7ab993b7dc (diff) | |
download | blackbird-op-linux-e47a185b31dd2acd424fac7dc0efb96fc5b31a33.tar.gz blackbird-op-linux-e47a185b31dd2acd424fac7dc0efb96fc5b31a33.zip |
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 { 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, |