Searched refs:cscov (Results 1 – 10 of 10) sorted by relevance
/linux-5.19.10/include/net/ |
D | udplite.h | 40 u16 cscov; in udplite_checksum_init() local 50 cscov = ntohs(uh->len); in udplite_checksum_init() 52 if (cscov == 0) /* Indicates that full coverage is required. */ in udplite_checksum_init() 54 else if (cscov < 8 || cscov > skb->len) { in udplite_checksum_init() 59 cscov, skb->len); in udplite_checksum_init() 62 } else if (cscov < skb->len) { in udplite_checksum_init() 64 UDP_SKB_CB(skb)->cscov = cscov; in udplite_checksum_init()
|
D | udp.h | 46 __u16 cscov; member 111 return (UDP_SKB_CB(skb)->cscov == skb->len ? in __udp_lib_checksum_complete() 113 __skb_checksum_complete_head(skb, UDP_SKB_CB(skb)->cscov)); in __udp_lib_checksum_complete() 164 UDP_SKB_CB(skb)->cscov -= sizeof(struct udphdr); in udp_csum_pull_header() 515 UDP_SKB_CB(skb)->cscov = skb->len; in udp_post_segment_fix_csum()
|
/linux-5.19.10/net/netfilter/ |
D | nf_conntrack_proto_udp.c | 145 unsigned int cscov; in udplite_error() local 154 cscov = ntohs(hdr->len); in udplite_error() 155 if (cscov == 0) { in udplite_error() 156 cscov = udplen; in udplite_error() 157 } else if (cscov < sizeof(*hdr) || cscov > udplen) { in udplite_error() 171 nf_checksum_partial(skb, state->hook, dataoff, cscov, IPPROTO_UDP, in udplite_error()
|
D | nf_conntrack_proto_dccp.c | 436 unsigned int cscov; in dccp_error() local 445 cscov = dccp_len; in dccp_error() 447 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error() 448 if (cscov > dccp_len) { in dccp_error() 456 nf_checksum_partial(skb, state->hook, dataoff, cscov, in dccp_error()
|
/linux-5.19.10/net/dccp/ |
D | proto.c | 436 static int dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx) in dccp_setsockopt_cscov() argument 441 if (cscov < 0 || cscov > 15) in dccp_setsockopt_cscov() 449 if (cscov == 0) in dccp_setsockopt_cscov() 451 len = 16 - cscov; in dccp_setsockopt_cscov() 458 list[i] = cscov++; in dccp_setsockopt_cscov() 464 dccp_sk(sk)->dccps_pcrlen = cscov; in dccp_setsockopt_cscov() 466 dccp_sk(sk)->dccps_pcslen = cscov; in dccp_setsockopt_cscov()
|
D | ipv4.c | 716 unsigned int cscov; in dccp_invalid_packet() local 767 cscov = dccp_csum_coverage(skb); in dccp_invalid_packet() 768 if (cscov > skb->len) { in dccp_invalid_packet() 776 skb->csum = skb_checksum(skb, 0, cscov, 0); in dccp_invalid_packet()
|
D | feat.c | 112 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()
|
/linux-5.19.10/net/ipv6/ |
D | ip6_checksum.c | 70 UDP_SKB_CB(skb)->cscov = skb->len; in udp6_csum_init()
|
D | udp.c | 726 UDP_SKB_CB(skb)->cscov, skb->len); in udpv6_queue_rcv_one_skb() 729 if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { in udpv6_queue_rcv_one_skb() 731 UDP_SKB_CB(skb)->cscov, up->pcrlen); in udpv6_queue_rcv_one_skb()
|
/linux-5.19.10/net/ipv4/ |
D | udp.c | 2194 UDP_SKB_CB(skb)->cscov, skb->len); in udp_queue_rcv_one_skb() 2203 if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { in udp_queue_rcv_one_skb() 2205 UDP_SKB_CB(skb)->cscov, up->pcrlen); in udp_queue_rcv_one_skb() 2354 UDP_SKB_CB(skb)->cscov = skb->len; in udp4_csum_init()
|