mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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>
This commit is contained in:
parent
94206125c4
commit
e47a185b31
2 changed files with 55 additions and 40 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue