ipv4: Generalize ip_do_redirect() and hook into new dst_ops->redirect.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / net / dst_ops.h
index 4badc86e45d14181c9975dc0c63d26ecbc0a9ad2..085931fa7ce00c80bdc231b059cd0bfa1d8e8b61 100644 (file)
@@ -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,