Searched refs:cscov (Results 1 – 9 of 9) sorted by relevance
/linux-3.4.99/include/net/ |
D | udplite.h | 37 u16 cscov; in udplite_checksum_init() local 47 cscov = ntohs(uh->len); in udplite_checksum_init() 49 if (cscov == 0) /* Indicates that full coverage is required. */ in udplite_checksum_init() 51 else if (cscov < 8 || cscov > skb->len) { in udplite_checksum_init() 56 cscov, skb->len); in udplite_checksum_init() 59 } else if (cscov < skb->len) { in udplite_checksum_init() 61 UDP_SKB_CB(skb)->cscov = cscov; in udplite_checksum_init() 73 int cscov = up->len; in udplite_csum_outgoing() local 83 cscov = up->pcslen; in udplite_csum_outgoing() 104 csum = skb_checksum(skb, off, (cscov > len)? len : cscov, csum); in udplite_csum_outgoing() [all …]
|
D | udp.h | 49 __u16 cscov; member 123 return __skb_checksum_complete_head(skb, UDP_SKB_CB(skb)->cscov); in __udp_lib_checksum_complete()
|
/linux-3.4.99/net/netfilter/ |
D | nf_conntrack_proto_udplite.c | 117 unsigned int cscov; in udplite_error() local 128 cscov = ntohs(hdr->len); in udplite_error() 129 if (cscov == 0) in udplite_error() 130 cscov = udplen; in udplite_error() 131 else if (cscov < sizeof(*hdr) || cscov > udplen) { in udplite_error() 148 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_UDP, in udplite_error()
|
D | nf_conntrack_proto_dccp.c | 579 unsigned int cscov; in dccp_error() local 594 cscov = dccp_len; in dccp_error() 596 cscov = (dh->dccph_cscov - 1) * 4; in dccp_error() 597 if (cscov > dccp_len) { in dccp_error() 604 nf_checksum_partial(skb, hooknum, dataoff, cscov, IPPROTO_DCCP, in dccp_error()
|
/linux-3.4.99/net/dccp/ |
D | proto.c | 431 static int dccp_setsockopt_cscov(struct sock *sk, int cscov, bool rx) in dccp_setsockopt_cscov() argument 436 if (cscov < 0 || cscov > 15) in dccp_setsockopt_cscov() 444 if (cscov == 0) in dccp_setsockopt_cscov() 446 len = 16 - cscov; in dccp_setsockopt_cscov() 453 list[i] = cscov++; in dccp_setsockopt_cscov() 459 dccp_sk(sk)->dccps_pcrlen = cscov; in dccp_setsockopt_cscov() 461 dccp_sk(sk)->dccps_pcslen = cscov; in dccp_setsockopt_cscov()
|
D | ipv4.c | 733 unsigned int cscov; in dccp_invalid_packet() local 782 cscov = dccp_csum_coverage(skb); in dccp_invalid_packet() 783 if (cscov > skb->len) { in dccp_invalid_packet() 791 skb->csum = skb_checksum(skb, 0, cscov, 0); in dccp_invalid_packet()
|
D | feat.c | 117 static int dccp_hdlr_min_cscov(struct sock *sk, u64 cscov, bool rx) in dccp_hdlr_min_cscov() argument 122 dp->dccps_pcrlen = cscov; in dccp_hdlr_min_cscov() 125 dp->dccps_pcslen = cscov; in dccp_hdlr_min_cscov() 126 else if (cscov > dp->dccps_pcslen) in dccp_hdlr_min_cscov() 128 dp->dccps_pcslen, (u8)cscov); in dccp_hdlr_min_cscov()
|
/linux-3.4.99/net/ipv6/ |
D | udp.c | 523 UDP_SKB_CB(skb)->cscov, skb->len); in udpv6_queue_rcv_skb() 526 if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { in udpv6_queue_rcv_skb() 529 UDP_SKB_CB(skb)->cscov, up->pcrlen); in udpv6_queue_rcv_skb() 688 UDP_SKB_CB(skb)->cscov = skb->len; in udp6_csum_init()
|
/linux-3.4.99/net/ipv4/ |
D | udp.c | 1451 UDP_SKB_CB(skb)->cscov, skb->len); in udp_queue_rcv_skb() 1460 if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { in udp_queue_rcv_skb() 1462 UDP_SKB_CB(skb)->cscov, up->pcrlen); in udp_queue_rcv_skb() 1588 UDP_SKB_CB(skb)->cscov = skb->len; in udp4_csum_init()
|