Home
last modified time | relevance | path

Searched refs:cscov (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/include/net/
H A Dudplite.h33 u16 cscov; in udplite_checksum_init() local
43 cscov = ntohs(uh->len); in udplite_checksum_init()
45 if (cscov == 0) /* Indicates that full coverage is required. */ in udplite_checksum_init()
47 else if (cscov < 8 || cscov > skb->len) { in udplite_checksum_init()
52 cscov, skb->len); in udplite_checksum_init()
55 } else if (cscov < skb->len) { in udplite_checksum_init()
57 UDP_SKB_CB(skb)->cscov = cscov; in udplite_checksum_init()
H A Dudp.h47 __u16 cscov; member
113 return (UDP_SKB_CB(skb)->cscov == skb->len ? in __udp_lib_checksum_complete()
115 __skb_checksum_complete_head(skb, UDP_SKB_CB(skb)->cscov)); in __udp_lib_checksum_complete()
166 UDP_SKB_CB(skb)->cscov -= sizeof(struct udphdr); in udp_csum_pull_header()
522 UDP_SKB_CB(skb)->cscov = skb->len; in udp_post_segment_fix_csum()
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_udp.c147 unsigned int cscov; in udplite_error() local
156 cscov = ntohs(hdr->len); in udplite_error()
157 if (cscov == 0) { in udplite_error()
158 cscov = udplen; in udplite_error()
159 } else if (cscov < sizeof(*hdr) || cscov > udplen) { in udplite_error()
173 nf_checksum_partial(skb, state->hook, dataoff, cscov, IPPROTO_UDP, in udplite_error()
H A Dnf_conntrack_proto_dccp.c445 unsigned int cscov; in dccp_error() local
457 cscov = dccp_len; in dccp_error()
459 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error()
460 if (cscov > dccp_len) { in dccp_error()
468 nf_checksum_partial(skb, state->hook, dataoff, cscov, in dccp_error()
/openbmc/linux/net/dccp/
H A Dproto.c448 static int dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx) in dccp_setsockopt_cscov() argument
453 if (cscov < 0 || cscov > 15) in dccp_setsockopt_cscov()
461 if (cscov == 0) in dccp_setsockopt_cscov()
463 len = 16 - cscov; in dccp_setsockopt_cscov()
470 list[i] = cscov++; in dccp_setsockopt_cscov()
476 dccp_sk(sk)->dccps_pcrlen = cscov; in dccp_setsockopt_cscov()
478 dccp_sk(sk)->dccps_pcslen = cscov; in dccp_setsockopt_cscov()
H A Dipv4.c728 unsigned int cscov; in dccp_invalid_packet() local
779 cscov = dccp_csum_coverage(skb); in dccp_invalid_packet()
780 if (cscov > skb->len) { in dccp_invalid_packet()
788 skb->csum = skb_checksum(skb, 0, cscov, 0); in dccp_invalid_packet()
H A Dfeat.c112 static int dccp_hdlr_min_cscov(struct sock *sk, u64 cscov, bool rx) in dccp_hdlr_min_cscov() argument
117 dp->dccps_pcrlen = cscov; in dccp_hdlr_min_cscov()
120 dp->dccps_pcslen = cscov; in dccp_hdlr_min_cscov()
121 else if (cscov > dp->dccps_pcslen) in dccp_hdlr_min_cscov()
123 dp->dccps_pcslen, (u8)cscov); in dccp_hdlr_min_cscov()
/openbmc/linux/net/ipv6/
H A Dip6_checksum.c70 UDP_SKB_CB(skb)->cscov = skb->len; in udp6_csum_init()
H A Dudp.c749 UDP_SKB_CB(skb)->cscov, skb->len); in udpv6_queue_rcv_one_skb()
752 if (UDP_SKB_CB(skb)->cscov < pcrlen) { in udpv6_queue_rcv_one_skb()
754 UDP_SKB_CB(skb)->cscov, pcrlen); in udpv6_queue_rcv_one_skb()
/openbmc/linux/net/ipv4/
H A Dudp.c2164 UDP_SKB_CB(skb)->cscov, skb->len); in udp_queue_rcv_one_skb()
2173 if (UDP_SKB_CB(skb)->cscov < pcrlen) { in udp_queue_rcv_one_skb()
2175 UDP_SKB_CB(skb)->cscov, pcrlen); in udp_queue_rcv_one_skb()
2324 UDP_SKB_CB(skb)->cscov = skb->len; in udp4_csum_init()