10 #define UDPLITE_SEND_CSCOV 10
11 #define UDPLITE_RECV_CSCOV 11
26 static inline int udplite_sk_init(
struct sock *
sk)
35 static inline int udplite_checksum_init(
struct sk_buff *skb,
struct udphdr *uh)
51 else if (cscov < 8 || cscov > skb->
len) {
59 }
else if (cscov < skb->len) {
101 const int off = skb_transport_offset(skb);
102 const int len = skb->
len - off;
104 csum =
skb_checksum(skb, off, (cscov > len)? len : cscov, csum);
106 if ((cscov -= len) <= 0)
116 const int off = skb_transport_offset(skb);
117 int len = skb->
len - off;
131 int (*scmp)(
const struct sock *,
const struct sock *));