#ifndef _NET_IPCOMP_H #define _NET_IPCOMP_H #include #define IPCOMP_SCRATCH_SIZE 65400 struct crypto_comp; struct ipcomp_data { u16 threshold; struct crypto_comp * __percpu *tfms; }; struct ip_comp_hdr; struct sk_buff; struct xfrm_state; int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb); int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb); void ipcomp_destroy(struct xfrm_state *x); int ipcomp_init_state(struct xfrm_state *x); static inline struct ip_comp_hdr *ip_comp_hdr(const struct sk_buff *skb) { return (struct ip_comp_hdr *)skb_transport_header(skb); } #endif '>
summaryrefslogtreecommitdiff
path: root/net/sctp/sm_sideeffect.c
AgeCommit message (Collapse)AuthorFilesLines
2017-02-07sctp: add dst_pending_confirm flagJulian Anastasov1-1/+1
Add new transport flag to allow sockets to confirm neighbour. When same struct dst_entry can be used for many different neighbours we can not use it for pending confirmations. The flag is propagated from transport to every packet. It is reset when cached dst is reset. Reported-by: YueHaibing <yuehaibing@huawei.com> Fixes: 5110effee8fd ("net: Do delayed neigh confirmation.") Fixes: f2bb4bedf35d ("ipv4: Cache output routes in fib_info nexthops.") Signed-off-by: Julian Anastasov <ja@ssi.bg> Acked-by: Eric Dumazet <edumazet@google.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>