Home
last modified time | relevance | path

Searched refs:ulen (Results 1 – 5 of 5) sorted by relevance

/net/ipv6/
Dudp.c166 unsigned int ulen, copied; in udpv6_recvmsg() local
184 ulen = skb->len - sizeof(struct udphdr); in udpv6_recvmsg()
186 if (copied > ulen) in udpv6_recvmsg()
187 copied = ulen; in udpv6_recvmsg()
188 else if (copied < ulen) in udpv6_recvmsg()
199 if (copied < ulen || UDP_SKB_CB(skb)->partial_cov) { in udpv6_recvmsg()
257 err = ulen; in udpv6_recvmsg()
501 u32 ulen = 0; in __udp6_lib_rcv() local
511 ulen = ntohs(uh->len); in __udp6_lib_rcv()
512 if (ulen > skb->len) in __udp6_lib_rcv()
[all …]
/net/ipv4/
Dudp.c576 int ulen = len; in udp_sendmsg() local
615 ulen += sizeof(struct udphdr); in udp_sendmsg()
742 up->len += ulen; in udp_sendmsg()
744 err = ip_append_data(sk, getfrag, msg->msg_iov, ulen, in udp_sendmsg()
881 unsigned int ulen, copied; in udp_recvmsg() local
901 ulen = skb->len - sizeof(struct udphdr); in udp_recvmsg()
903 if (copied > ulen) in udp_recvmsg()
904 copied = ulen; in udp_recvmsg()
905 else if (copied < ulen) in udp_recvmsg()
914 if (copied < ulen || UDP_SKB_CB(skb)->partial_cov) { in udp_recvmsg()
[all …]
/net/core/
Dnetpoll.c89 unsigned short ulen, __be32 saddr, __be32 daddr) in checksum_udp() argument
96 psum = csum_tcpudp_nofold(saddr, daddr, ulen, IPPROTO_UDP, 0); in checksum_udp()
478 int proto, len, ulen; in __netpoll_rx() local
530 ulen = ntohs(uh->len); in __netpoll_rx()
532 if (ulen != len) in __netpoll_rx()
534 if (checksum_udp(skb, uh, ulen, iph->saddr, iph->daddr)) in __netpoll_rx()
545 ulen - sizeof(struct udphdr)); in __netpoll_rx()
/net/
Dcompat.c651 int klen, ulen, err; in compat_mc_getsockopt() local
658 __get_user(ulen, optlen)) in compat_mc_getsockopt()
662 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt()
692 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt()
695 __put_user(ulen, optlen)) in compat_mc_getsockopt()
699 !access_ok(VERIFY_WRITE, gf32, ulen) || in compat_mc_getsockopt()
Dsocket.c188 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr *kaddr) in move_addr_to_kernel() argument
190 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel()
192 if (ulen == 0) in move_addr_to_kernel()
194 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
196 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel()
217 int __user *ulen) in move_addr_to_user() argument
222 err = get_user(len, ulen); in move_addr_to_user()
239 return __put_user(klen, ulen); in move_addr_to_user()