/net/ipv6/ |
D | ip6_checksum.c | 14 __u32 ulen; in csum_ipv6_magic() local 50 ulen = (__force u32)htonl((__u32) len); in csum_ipv6_magic() 51 sum += ulen; in csum_ipv6_magic() 52 carry = (sum < ulen); in csum_ipv6_magic()
|
D | udp.c | 273 unsigned int ulen, copied; in udpv6_recvmsg() local 292 ulen = udp6_skb_len(skb); in udpv6_recvmsg() 294 if (copied > ulen - off) in udpv6_recvmsg() 295 copied = ulen - off; in udpv6_recvmsg() 296 else if (copied < ulen) in udpv6_recvmsg() 308 if (copied < ulen || peeking || in udpv6_recvmsg() 380 err = ulen; in udpv6_recvmsg() 847 u32 ulen = 0; in __udp6_lib_rcv() local 856 ulen = ntohs(uh->len); in __udp6_lib_rcv() 857 if (ulen > skb->len) in __udp6_lib_rcv() [all …]
|
/net/ipv4/ |
D | udp_offload.c | 356 unsigned int ulen; in udp_gro_receive_segment() local 365 ulen = ntohs(uh->len); in udp_gro_receive_segment() 366 if (ulen <= sizeof(*uh) || ulen != skb_gro_len(skb)) { in udp_gro_receive_segment() 392 if (ulen > ntohs(uh2->len) || skb_gro_receive(p, skb) || in udp_gro_receive_segment() 393 ulen != ntohs(uh2->len) || in udp_gro_receive_segment()
|
D | udp.c | 972 int ulen = len; in udp_sendmsg() local 1014 ulen += sizeof(struct udphdr); in udp_sendmsg() 1173 skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 1203 up->len += ulen; in udp_sendmsg() 1204 err = ip_append_data(sk, fl4, getfrag, msg, ulen, in udp_sendmsg() 1731 unsigned int ulen, copied; in udp_recvmsg() local 1745 ulen = udp_skb_len(skb); in udp_recvmsg() 1747 if (copied > ulen - off) in udp_recvmsg() 1748 copied = ulen - off; in udp_recvmsg() 1749 else if (copied < ulen) in udp_recvmsg() [all …]
|
/net/ |
D | compat.c | 557 int klen, ulen, err; in compat_mc_getsockopt() local 564 __get_user(ulen, optlen)) in compat_mc_getsockopt() 568 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt() 598 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt() 601 __put_user(ulen, optlen)) in compat_mc_getsockopt() 605 !access_ok(gf32, ulen) || in compat_mc_getsockopt()
|
D | socket.c | 178 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 180 if (ulen < 0 || ulen > sizeof(struct sockaddr_storage)) in move_addr_to_kernel() 182 if (ulen == 0) in move_addr_to_kernel() 184 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 186 return audit_sockaddr(ulen, kaddr); in move_addr_to_kernel() 207 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument 213 err = get_user(len, ulen); in move_addr_to_user() 230 return __put_user(klen, ulen); in move_addr_to_user()
|
/net/can/j1939/ |
D | socket.c | 726 int ret, ulen; in j1939_sk_getsockopt() local 734 if (get_user(ulen, optlen)) in j1939_sk_getsockopt() 736 if (ulen < 0) in j1939_sk_getsockopt() 759 if (len > ulen) in j1939_sk_getsockopt()
|
/net/l2tp/ |
D | l2tp_ip6.c | 504 int ulen = len + transhdrlen; in l2tp_ip6_sendmsg() local 636 ulen, transhdrlen, &ipc6, in l2tp_ip6_sendmsg()
|
/net/netfilter/ipvs/ |
D | ip_vs_core.c | 1730 int ulen; in ip_vs_in_icmp() local 1737 ulen = ipvs_udp_decap(ipvs, skb, offset2, AF_INET, in ip_vs_in_icmp() 1740 ulen = ipvs_gre_decap(ipvs, skb, offset2, AF_INET, in ip_vs_in_icmp() 1742 if (ulen > 0) { in ip_vs_in_icmp() 1744 offset = offset2 + ulen; in ip_vs_in_icmp()
|
/net/netfilter/ |
D | nf_tables_api.c | 2727 unsigned int size, i, n, ulen = 0, usize = 0; in nf_tables_newrule() local 2816 ulen = nla_len(nla[NFTA_RULE_USERDATA]); in nf_tables_newrule() 2817 if (ulen > 0) in nf_tables_newrule() 2818 usize = sizeof(struct nft_userdata) + ulen; in nf_tables_newrule() 2830 rule->udata = ulen ? 1 : 0; in nf_tables_newrule() 2832 if (ulen) { in nf_tables_newrule() 2834 udata->len = ulen - 1; in nf_tables_newrule() 2835 nla_memcpy(udata->data, nla[NFTA_RULE_USERDATA], ulen); in nf_tables_newrule() 4504 u8 ulen; in nft_add_set_elem() local 4635 ulen = 0; in nft_add_set_elem() [all …]
|
/net/xfrm/ |
D | xfrm_user.c | 428 unsigned int ulen; in xfrm_replay_verify_len() local 434 ulen = xfrm_replay_state_esn_len(up); in xfrm_replay_verify_len() 438 if (nla_len(rp) < (int)ulen || in xfrm_replay_verify_len() 439 xfrm_replay_state_esn_len(replay_esn) != ulen || in xfrm_replay_verify_len() 454 unsigned int klen, ulen; in xfrm_alloc_replay_state_esn() local 461 ulen = nla_len(rta) >= (int)klen ? klen : sizeof(*up); in xfrm_alloc_replay_state_esn() 473 memcpy(p, up, ulen); in xfrm_alloc_replay_state_esn() 474 memcpy(pp, up, ulen); in xfrm_alloc_replay_state_esn()
|