optlen 383 include/linux/atmdev.h void __user *optval,int optlen); optlen 385 include/linux/atmdev.h void __user *optval,int optlen); optlen 63 include/linux/isdn_ppp.h int optlen; optlen 172 include/linux/net.h int optname, char __user *optval, int optlen); optlen 174 include/linux/net.h int optname, char __user *optval, int __user *optlen); optlen 176 include/linux/net.h int optname, char __user *optval, int optlen); optlen 178 include/linux/net.h int optname, char __user *optval, int __user *optlen); optlen 309 include/linux/net.h char __user *optval, int optlen), (sock, level, optname, optval, optlen)) \ optlen 311 include/linux/net.h char __user *optval, int __user *optlen), (sock, level, optname, optval, optlen)) \ optlen 1508 include/linux/security.h int (*socket_getpeersec_stream) (struct socket *sock, char __user *optval, int __user *optlen, unsigned len); optlen 51 include/net/inet_connection_sock.h char __user *optval, int optlen); optlen 53 include/net/inet_connection_sock.h char __user *optval, int __user *optlen); optlen 57 include/net/inet_connection_sock.h char __user *optval, int optlen); optlen 60 include/net/inet_connection_sock.h char __user *optval, int __user *optlen); optlen 42 include/net/inet_sock.h unsigned char optlen; optlen 58 include/net/inet_sock.h #define optlength(opt) (sizeof(struct ip_options) + opt->optlen) optlen 532 include/net/sctp/structs.h int optlen); optlen 537 include/net/sctp/structs.h int __user *optlen); optlen 542 include/net/sctp/structs.h int optlen); optlen 547 include/net/sctp/structs.h int __user *optlen); optlen 536 include/net/sock.h int optlen); optlen 544 include/net/sock.h int optlen); optlen 1383 include/net/tcp.h int optlen); optlen 596 include/net/xfrm.h u8 optlen; optlen 231 include/rdma/rdma_user_cm.h __u32 optlen; optlen 688 net/atm/common.c if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname)) optlen 720 net/atm/common.c return vcc->dev->ops->setsockopt(vcc,level,optname,optval,optlen); optlen 730 net/atm/common.c if (get_user(len, optlen)) optlen 68 net/atm/pvc.c error = vcc_setsockopt(sock, level, optname, optval, optlen); optlen 81 net/atm/pvc.c error = vcc_getsockopt(sock, level, optname, optval, optlen); optlen 454 net/atm/svc.c if (level != SOL_ATM || optlen != sizeof(struct atm_sap)) { optlen 458 net/atm/svc.c if (copy_from_user(&vcc->sap, optval, optlen)) { optlen 465 net/atm/svc.c if (level != SOL_ATM || optlen != sizeof(int)) { optlen 483 net/atm/svc.c optval, optlen); optlen 500 net/atm/svc.c error = vcc_getsockopt(sock, level, optname, optval, optlen); optlen 503 net/atm/svc.c if (get_user(len, optlen)) { optlen 542 net/ax25/af_ax25.c if (optlen < sizeof(int)) optlen 637 net/ax25/af_ax25.c if (optlen > IFNAMSIZ) optlen 638 net/ax25/af_ax25.c optlen=IFNAMSIZ; optlen 639 net/ax25/af_ax25.c if (copy_from_user(devname, optval, optlen)) { optlen 684 net/ax25/af_ax25.c if (get_user(maxlen, optlen)) optlen 761 net/ax25/af_ax25.c if (put_user(length, optlen)) optlen 556 net/bluetooth/hci_sock.c if (get_user(len, optlen)) optlen 1132 net/bluetooth/l2cap.c len = min_t(unsigned int, sizeof(opts), optlen); optlen 1169 net/bluetooth/l2cap.c if (get_user(len, optlen)) optlen 756 net/bluetooth/rfcomm/sock.c if (get_user(len, optlen)) optlen 685 net/bluetooth/sco.c if (get_user(len, optlen)) optlen 444 net/bridge/br_netfilter.c int optlen = nh[off + 1] + 2; optlen 448 net/bridge/br_netfilter.c optlen = 1; optlen 469 net/bridge/br_netfilter.c if (optlen > len) optlen 473 net/bridge/br_netfilter.c off += optlen; optlen 474 net/bridge/br_netfilter.c len -= optlen; optlen 421 net/can/raw.c if (optlen < 0) optlen 427 net/can/raw.c if (optlen % sizeof(struct can_filter) != 0) optlen 430 net/can/raw.c count = optlen / sizeof(struct can_filter); optlen 434 net/can/raw.c filter = kmalloc(optlen, GFP_KERNEL); optlen 438 net/can/raw.c if (copy_from_user(filter, optval, optlen)) { optlen 443 net/can/raw.c if (copy_from_user(&sfilter, optval, optlen)) optlen 491 net/can/raw.c if (optlen != sizeof(err_mask)) optlen 494 net/can/raw.c if (copy_from_user(&err_mask, optval, optlen)) optlen 528 net/can/raw.c if (optlen != sizeof(ro->loopback)) optlen 531 net/can/raw.c if (copy_from_user(&ro->loopback, optval, optlen)) optlen 537 net/can/raw.c if (optlen != sizeof(ro->recv_own_msgs)) optlen 540 net/can/raw.c if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) optlen 562 net/can/raw.c if (get_user(len, optlen)) optlen 582 net/can/raw.c err = put_user(len, optlen); optlen 607 net/can/raw.c if (put_user(len, optlen)) optlen 356 net/compat.c if (optlen < sizeof(*up)) optlen 375 net/compat.c optval, optlen); optlen 377 net/compat.c return do_set_sock_timeout(sock, level, optname, optval, optlen); optlen 379 net/compat.c return sock_setsockopt(sock, level, optname, optval, optlen); optlen 388 net/compat.c if (optlen < 0) optlen 401 net/compat.c optname, optval, optlen); optlen 404 net/compat.c optname, optval, optlen); optlen 407 net/compat.c optname, optval, optlen); optlen 422 net/compat.c if (get_user(len, optlen)) optlen 433 net/compat.c if (put_user(sizeof(*up), optlen) || optlen 446 net/compat.c return do_get_sock_timeout(sock, level, optname, optval, optlen); optlen 447 net/compat.c return sock_getsockopt(sock, level, optname, optval, optlen); optlen 515 net/compat.c optname, optval, optlen); optlen 518 net/compat.c optname, optval, optlen); optlen 521 net/compat.c optname, optval, optlen); optlen 560 net/compat.c int koptlen = optlen; optlen 617 net/compat.c koptlen = optlen + sizeof(struct group_filter) - optlen 654 net/compat.c return getsockopt(sock, level, optname, optval, optlen); optlen 657 net/compat.c if (!access_ok(VERIFY_READ, optlen, sizeof(*optlen)) || optlen 658 net/compat.c __get_user(ulen, optlen)) optlen 672 net/compat.c kgf = compat_alloc_user_space(klen+sizeof(*optlen)); optlen 694 net/compat.c if (!access_ok(VERIFY_WRITE, optlen, sizeof(*optlen)) || optlen 695 net/compat.c __put_user(ulen, optlen)) optlen 221 net/core/sock.c if (optlen < sizeof(tv)) optlen 387 net/core/sock.c if (optlen < 0) optlen 395 net/core/sock.c if (optlen > IFNAMSIZ - 1) optlen 396 net/core/sock.c optlen = IFNAMSIZ - 1; optlen 400 net/core/sock.c if (copy_from_user(devname, optval, optlen)) optlen 456 net/core/sock.c return sock_bindtodevice(sk, optval, optlen); optlen 458 net/core/sock.c if (optlen < sizeof(int)) optlen 579 net/core/sock.c if (optlen < sizeof(ling)) { optlen 633 net/core/sock.c ret = sock_set_timeout(&sk->sk_rcvtimeo, optval, optlen); optlen 637 net/core/sock.c ret = sock_set_timeout(&sk->sk_sndtimeo, optval, optlen); optlen 642 net/core/sock.c if (optlen == sizeof(struct sock_fprog)) { optlen 696 net/core/sock.c if (get_user(len, optlen)) optlen 837 net/core/sock.c return security_socket_getpeersec_stream(sock, optval, optlen, len); optlen 852 net/core/sock.c if (put_user(len, optlen)) optlen 1834 net/core/sock.c return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); optlen 1847 net/core/sock.c optval, optlen); optlen 1848 net/core/sock.c return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); optlen 1877 net/core/sock.c return sk->sk_prot->setsockopt(sk, level, optname, optval, optlen); optlen 1890 net/core/sock.c optval, optlen); optlen 1891 net/core/sock.c return sk->sk_prot->setsockopt(sk, level, optname, optval, optlen); optlen 86 net/dccp/ccid.h int __user *optlen); optlen 90 net/dccp/ccid.h int __user *optlen); optlen 199 net/dccp/ccid.h optval, optlen); optlen 210 net/dccp/ccid.h optval, optlen); optlen 628 net/dccp/ccids/ccid3.c if (put_user(len, optlen) || copy_to_user(optval, val, len)) optlen 937 net/dccp/ccids/ccid3.c if (put_user(len, optlen) || copy_to_user(optval, val, len)) optlen 89 net/dccp/ipv4.c inet_csk(sk)->icsk_ext_hdr_len = inet->opt->optlen; optlen 441 net/dccp/proto.c optlen > DCCP_SERVICE_LIST_MAX_LEN * sizeof(u32)) optlen 444 net/dccp/proto.c if (optlen > sizeof(service)) { optlen 445 net/dccp/proto.c sl = kmalloc(optlen, GFP_KERNEL); optlen 449 net/dccp/proto.c sl->dccpsl_nr = optlen / sizeof(u32) - 1; optlen 452 net/dccp/proto.c optlen - sizeof(service)) || optlen 513 net/dccp/proto.c if (optlen < sizeof(int)) optlen 520 net/dccp/proto.c return dccp_setsockopt_service(sk, val, optval, optlen); optlen 529 net/dccp/proto.c if (optlen != sizeof(struct dccp_so_feat)) optlen 537 net/dccp/proto.c if (optlen != sizeof(struct dccp_so_feat)) optlen 580 net/dccp/proto.c optlen); optlen 581 net/dccp/proto.c return do_dccp_setsockopt(sk, level, optname, optval, optlen); optlen 592 net/dccp/proto.c optval, optlen); optlen 593 net/dccp/proto.c return do_dccp_setsockopt(sk, level, optname, optval, optlen); optlen 618 net/dccp/proto.c if (put_user(total_len, optlen) || optlen 633 net/dccp/proto.c if (get_user(len, optlen)) optlen 647 net/dccp/proto.c (__be32 __user *)optval, optlen); optlen 662 net/dccp/proto.c len, (u32 __user *)optval, optlen); optlen 665 net/dccp/proto.c len, (u32 __user *)optval, optlen); optlen 671 net/dccp/proto.c if (put_user(len, optlen) || copy_to_user(optval, &val, len)) optlen 683 net/dccp/proto.c optlen); optlen 684 net/dccp/proto.c return do_dccp_getsockopt(sk, level, optname, optval, optlen); optlen 695 net/dccp/proto.c optval, optlen); optlen 696 net/dccp/proto.c return do_dccp_getsockopt(sk, level, optname, optval, optlen); optlen 1337 net/decnet/af_decnet.c err = __dn_setsockopt(sock, level, optname, optval, optlen, 0); optlen 1359 net/decnet/af_decnet.c if (optlen && !optval) optlen 1362 net/decnet/af_decnet.c if (optlen > sizeof(u)) optlen 1365 net/decnet/af_decnet.c if (copy_from_user(&u, optval, optlen)) optlen 1375 net/decnet/af_decnet.c if (optlen != sizeof(struct optdata_dn)) optlen 1381 net/decnet/af_decnet.c memcpy(&scp->conndata_out, &u.opt, optlen); optlen 1388 net/decnet/af_decnet.c if (optlen != sizeof(struct optdata_dn)) optlen 1394 net/decnet/af_decnet.c memcpy(&scp->discdata_out, &u.opt, optlen); optlen 1403 net/decnet/af_decnet.c if (optlen != sizeof(struct accessdata_dn)) optlen 1411 net/decnet/af_decnet.c memcpy(&scp->accessdata, &u.acc, optlen); optlen 1420 net/decnet/af_decnet.c if (optlen != sizeof(int)) optlen 1449 net/decnet/af_decnet.c return nf_setsockopt(sk, PF_DECnet, optname, optval, optlen); optlen 1457 net/decnet/af_decnet.c if (optlen != sizeof(unsigned long)) optlen 1469 net/decnet/af_decnet.c if (optlen != sizeof(int)) optlen 1478 net/decnet/af_decnet.c if (optlen != sizeof(int)) optlen 1487 net/decnet/af_decnet.c if (optlen != sizeof(unsigned char)) optlen 1497 net/decnet/af_decnet.c if (optlen != sizeof(unsigned char)) optlen 1514 net/decnet/af_decnet.c err = __dn_getsockopt(sock, level, optname, optval, optlen, 0); optlen 1529 net/decnet/af_decnet.c if(get_user(r_len , optlen)) optlen 1584 net/decnet/af_decnet.c if(get_user(len, optlen)) optlen 1590 net/decnet/af_decnet.c val = put_user(len, optlen); optlen 1636 net/decnet/af_decnet.c if (put_user(r_len, optlen)) optlen 21 net/ipv4/ah4.c int optlen; optlen 32 net/ipv4/ah4.c optlen = optptr[1]; optlen 33 net/ipv4/ah4.c if (optlen<2 || optlen>l) optlen 44 net/ipv4/ah4.c if (optlen < 6) optlen 46 net/ipv4/ah4.c memcpy(daddr, optptr+optlen-4, 4); optlen 49 net/ipv4/ah4.c memset(optptr, 0, optlen); optlen 51 net/ipv4/ah4.c l -= optlen; optlen 52 net/ipv4/ah4.c optptr += optlen; optlen 1872 net/ipv4/cipso_ipv4.c opt->optlen = opt_len; optlen 1881 net/ipv4/cipso_ipv4.c sk_conn->icsk_ext_hdr_len -= sk_inet->opt->optlen; optlen 1882 net/ipv4/cipso_ipv4.c sk_conn->icsk_ext_hdr_len += opt->optlen; optlen 1937 net/ipv4/cipso_ipv4.c opt->optlen - cipso_off - cipso_len); optlen 1946 net/ipv4/cipso_ipv4.c while (iter < opt->optlen) optlen 1952 net/ipv4/cipso_ipv4.c hdr_delta = opt->optlen; optlen 1953 net/ipv4/cipso_ipv4.c opt->optlen = (optlen_new + 3) & ~3; optlen 1954 net/ipv4/cipso_ipv4.c hdr_delta -= opt->optlen; optlen 1959 net/ipv4/cipso_ipv4.c hdr_delta = opt->optlen; optlen 2077 net/ipv4/cipso_ipv4.c len_delta = opt_len - opt->optlen; optlen 2095 net/ipv4/cipso_ipv4.c memset(iph + 1, IPOPT_NOP, opt->optlen); optlen 2099 net/ipv4/cipso_ipv4.c if (opt->optlen > 0) optlen 2101 net/ipv4/cipso_ipv4.c opt->optlen = opt_len; optlen 378 net/ipv4/icmp.c if (icmp_param->replyopts.optlen) { optlen 630 net/ipv4/icmp.c room -= sizeof(struct iphdr) + icmp_param.replyopts.optlen; optlen 2113 net/ipv4/igmp.c if (put_user(IP_MSFILTER_SIZE(copycount), optlen) || optlen 2160 net/ipv4/igmp.c if (put_user(GROUP_FILTER_SIZE(copycount), optlen) || optlen 680 net/ipv4/inet_connection_sock.c optval, optlen); optlen 682 net/ipv4/inet_connection_sock.c optval, optlen); optlen 694 net/ipv4/inet_connection_sock.c optval, optlen); optlen 696 net/ipv4/inet_connection_sock.c optval, optlen); optlen 47 net/ipv4/ip_forward.c if (unlikely(opt->optlen)) optlen 284 net/ipv4/ip_input.c opt->optlen = iph->ihl*4 - sizeof(struct iphdr); optlen 44 net/ipv4/ip_options.c memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); optlen 90 net/ipv4/ip_options.c int optlen; optlen 97 net/ipv4/ip_options.c if (sopt->optlen == 0) { optlen 98 net/ipv4/ip_options.c dopt->optlen = 0; optlen 108 net/ipv4/ip_options.c optlen = sptr[sopt->rr+1]; optlen 110 net/ipv4/ip_options.c dopt->rr = dopt->optlen + sizeof(struct iphdr); optlen 111 net/ipv4/ip_options.c memcpy(dptr, sptr+sopt->rr, optlen); optlen 112 net/ipv4/ip_options.c if (sopt->rr_needaddr && soffset <= optlen) { optlen 113 net/ipv4/ip_options.c if (soffset + 3 > optlen) optlen 118 net/ipv4/ip_options.c dptr += optlen; optlen 119 net/ipv4/ip_options.c dopt->optlen += optlen; optlen 122 net/ipv4/ip_options.c optlen = sptr[sopt->ts+1]; optlen 124 net/ipv4/ip_options.c dopt->ts = dopt->optlen + sizeof(struct iphdr); optlen 125 net/ipv4/ip_options.c memcpy(dptr, sptr+sopt->ts, optlen); optlen 126 net/ipv4/ip_options.c if (soffset <= optlen) { optlen 128 net/ipv4/ip_options.c if (soffset + 3 > optlen) optlen 134 net/ipv4/ip_options.c if (soffset + 3 > optlen) optlen 142 net/ipv4/ip_options.c if (soffset + 8 <= optlen) { optlen 155 net/ipv4/ip_options.c dptr += optlen; optlen 156 net/ipv4/ip_options.c dopt->optlen += optlen; optlen 162 net/ipv4/ip_options.c optlen = start[1]; optlen 165 net/ipv4/ip_options.c if (soffset > optlen) optlen 166 net/ipv4/ip_options.c soffset = optlen + 1; optlen 186 net/ipv4/ip_options.c dopt->srr = dopt->optlen + sizeof(struct iphdr); optlen 187 net/ipv4/ip_options.c dopt->optlen += doffset+3; optlen 192 net/ipv4/ip_options.c optlen = sptr[sopt->cipso+1]; optlen 193 net/ipv4/ip_options.c dopt->cipso = dopt->optlen+sizeof(struct iphdr); optlen 194 net/ipv4/ip_options.c memcpy(dptr, sptr+sopt->cipso, optlen); optlen 195 net/ipv4/ip_options.c dptr += optlen; optlen 196 net/ipv4/ip_options.c dopt->optlen += optlen; optlen 198 net/ipv4/ip_options.c while (dopt->optlen & 3) { optlen 200 net/ipv4/ip_options.c dopt->optlen++; optlen 215 net/ipv4/ip_options.c int l = opt->optlen; optlen 216 net/ipv4/ip_options.c int optlen; optlen 227 net/ipv4/ip_options.c optlen = optptr[1]; optlen 228 net/ipv4/ip_options.c if (optlen<2 || optlen>l) optlen 231 net/ipv4/ip_options.c memset(optptr, IPOPT_NOOP, optlen); optlen 232 net/ipv4/ip_options.c l -= optlen; optlen 233 net/ipv4/ip_options.c optptr += optlen; optlen 255 net/ipv4/ip_options.c int optlen; optlen 266 net/ipv4/ip_options.c for (l = opt->optlen; l > 0; ) { optlen 281 net/ipv4/ip_options.c optlen = optptr[1]; optlen 282 net/ipv4/ip_options.c if (optlen<2 || optlen>l) { optlen 289 net/ipv4/ip_options.c if (optlen < 3) { optlen 303 net/ipv4/ip_options.c if (optptr[2] != 4 || optlen < 7 || ((optlen-3) & 3)) { optlen 308 net/ipv4/ip_options.c if (optlen > 7) optlen 309 net/ipv4/ip_options.c memmove(&optptr[3], &optptr[7], optlen-7); optlen 319 net/ipv4/ip_options.c if (optlen < 3) { optlen 327 net/ipv4/ip_options.c if (optptr[2] <= optlen) { optlen 328 net/ipv4/ip_options.c if (optptr[2]+3 > optlen) { optlen 346 net/ipv4/ip_options.c if (optlen < 4) { optlen 354 net/ipv4/ip_options.c if (optptr[2] <= optlen) { optlen 428 net/ipv4/ip_options.c if (optlen < 4) { optlen 455 net/ipv4/ip_options.c l -= optlen; optlen 456 net/ipv4/ip_options.c optptr += optlen; optlen 504 net/ipv4/ip_options.c return kzalloc(sizeof(struct ip_options) + ((optlen + 3) & ~3), optlen 511 net/ipv4/ip_options.c while (optlen & 3) optlen 512 net/ipv4/ip_options.c opt->__data[optlen++] = IPOPT_END; optlen 513 net/ipv4/ip_options.c opt->optlen = optlen; optlen 514 net/ipv4/ip_options.c if (optlen && ip_options_compile(net, opt, NULL)) { optlen 526 net/ipv4/ip_options.c struct ip_options *opt = ip_options_get_alloc(optlen); optlen 530 net/ipv4/ip_options.c if (optlen && copy_from_user(opt->__data, data, optlen)) { optlen 534 net/ipv4/ip_options.c return ip_options_get_finish(net, optp, opt, optlen); optlen 540 net/ipv4/ip_options.c struct ip_options *opt = ip_options_get_alloc(optlen); optlen 544 net/ipv4/ip_options.c if (optlen) optlen 545 net/ipv4/ip_options.c memcpy(opt->__data, data, optlen); optlen 546 net/ipv4/ip_options.c return ip_options_get_finish(net, optp, opt, optlen); optlen 147 net/ipv4/ip_output.c skb_push(skb, sizeof(struct iphdr) + (opt ? opt->optlen : 0)); optlen 163 net/ipv4/ip_output.c if (opt && opt->optlen) { optlen 164 net/ipv4/ip_output.c iph->ihl += opt->optlen>>2; optlen 365 net/ipv4/ip_output.c skb_push(skb, sizeof(struct iphdr) + (opt ? opt->optlen : 0)); optlen 379 net/ipv4/ip_output.c if (opt && opt->optlen) { optlen 380 net/ipv4/ip_output.c iph->ihl += opt->optlen >> 2; optlen 811 net/ipv4/ip_output.c memcpy(inet->cork.opt, opt, sizeof(struct ip_options)+opt->optlen); optlen 838 net/ipv4/ip_output.c fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); optlen 1087 net/ipv4/ip_output.c fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0); optlen 1269 net/ipv4/ip_output.c iph->ihl += opt->optlen>>2; optlen 1358 net/ipv4/ip_output.c if (replyopts.opt.optlen) { optlen 86 net/ipv4/ip_sockglue.c if (IPCB(skb)->opt.optlen == 0) optlen 89 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, optlen 99 net/ipv4/ip_sockglue.c if (IPCB(skb)->opt.optlen == 0) optlen 108 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); optlen 425 net/ipv4/ip_sockglue.c if (optlen >= sizeof(int)) { optlen 428 net/ipv4/ip_sockglue.c } else if (optlen >= sizeof(char)) { optlen 440 net/ipv4/ip_sockglue.c return ip_mroute_setsockopt(sk,optname,optval,optlen); optlen 449 net/ipv4/ip_sockglue.c if (optlen > 40 || optlen < 0) optlen 452 net/ipv4/ip_sockglue.c optval, optlen); optlen 464 net/ipv4/ip_sockglue.c icsk->icsk_ext_hdr_len -= inet->opt->optlen; optlen 466 net/ipv4/ip_sockglue.c icsk->icsk_ext_hdr_len += opt->optlen; optlen 524 net/ipv4/ip_sockglue.c if (optlen<1) optlen 550 net/ipv4/ip_sockglue.c if (optlen<1) optlen 559 net/ipv4/ip_sockglue.c if (optlen<1) optlen 575 net/ipv4/ip_sockglue.c if (optlen >= sizeof(struct ip_mreqn)) { optlen 580 net/ipv4/ip_sockglue.c if (optlen >= sizeof(struct in_addr) && optlen 625 net/ipv4/ip_sockglue.c if (optlen < sizeof(struct ip_mreq)) optlen 628 net/ipv4/ip_sockglue.c if (optlen >= sizeof(struct ip_mreqn)) { optlen 648 net/ipv4/ip_sockglue.c if (optlen < IP_MSFILTER_SIZE(0)) optlen 650 net/ipv4/ip_sockglue.c if (optlen > sysctl_optmem_max) { optlen 654 net/ipv4/ip_sockglue.c msf = kmalloc(optlen, GFP_KERNEL); optlen 660 net/ipv4/ip_sockglue.c if (copy_from_user(msf, optval, optlen)) { optlen 671 net/ipv4/ip_sockglue.c if (IP_MSFILTER_SIZE(msf->imsf_numsrc) > optlen) { optlen 688 net/ipv4/ip_sockglue.c if (optlen != sizeof(struct ip_mreq_source)) optlen 725 net/ipv4/ip_sockglue.c if (optlen < sizeof(struct group_req)) optlen 753 net/ipv4/ip_sockglue.c if (optlen != sizeof(struct group_source_req)) optlen 805 net/ipv4/ip_sockglue.c if (optlen < GROUP_FILTER_SIZE(0)) optlen 807 net/ipv4/ip_sockglue.c if (optlen > sysctl_optmem_max) { optlen 811 net/ipv4/ip_sockglue.c gsf = kmalloc(optlen,GFP_KERNEL); optlen 817 net/ipv4/ip_sockglue.c if (copy_from_user(gsf, optval, optlen)) { optlen 826 net/ipv4/ip_sockglue.c if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { optlen 868 net/ipv4/ip_sockglue.c if (optlen<1) optlen 878 net/ipv4/ip_sockglue.c err = xfrm_user_policy(sk, optname, optval, optlen); optlen 886 net/ipv4/ip_sockglue.c if (optlen < 1) optlen 911 net/ipv4/ip_sockglue.c err = do_ip_setsockopt(sk, level, optname, optval, optlen); optlen 919 net/ipv4/ip_sockglue.c err = nf_setsockopt(sk, PF_INET, optname, optval, optlen); optlen 936 net/ipv4/ip_sockglue.c return compat_mc_setsockopt(sk, level, optname, optval, optlen, optlen 939 net/ipv4/ip_sockglue.c err = do_ip_setsockopt(sk, level, optname, optval, optlen); optlen 948 net/ipv4/ip_sockglue.c optval, optlen); optlen 974 net/ipv4/ip_sockglue.c return ip_mroute_getsockopt(sk,optname,optval,optlen); optlen 976 net/ipv4/ip_sockglue.c if (get_user(len,optlen)) optlen 988 net/ipv4/ip_sockglue.c opt->optlen = 0; optlen 992 net/ipv4/ip_sockglue.c inet->opt->optlen); optlen 995 net/ipv4/ip_sockglue.c if (opt->optlen == 0) optlen 996 net/ipv4/ip_sockglue.c return put_user(0, optlen); optlen 1000 net/ipv4/ip_sockglue.c len = min_t(unsigned int, len, opt->optlen); optlen 1001 net/ipv4/ip_sockglue.c if (put_user(len, optlen)) optlen 1070 net/ipv4/ip_sockglue.c if (put_user(len, optlen)) optlen 1090 net/ipv4/ip_sockglue.c (struct ip_msfilter __user *)optval, optlen); optlen 1108 net/ipv4/ip_sockglue.c (struct group_filter __user *)optval, optlen); optlen 1138 net/ipv4/ip_sockglue.c return put_user(len, optlen); optlen 1155 net/ipv4/ip_sockglue.c if (put_user(len, optlen)) optlen 1161 net/ipv4/ip_sockglue.c if (put_user(len, optlen)) optlen 1174 net/ipv4/ip_sockglue.c err = do_ip_getsockopt(sk, level, optname, optval, optlen); optlen 1181 net/ipv4/ip_sockglue.c if (get_user(len,optlen)) optlen 1189 net/ipv4/ip_sockglue.c err = put_user(len, optlen); optlen 1203 net/ipv4/ip_sockglue.c return compat_mc_getsockopt(sk, level, optname, optval, optlen, optlen 1206 net/ipv4/ip_sockglue.c err = do_ip_getsockopt(sk, level, optname, optval, optlen); optlen 1214 net/ipv4/ip_sockglue.c if (get_user(len, optlen)) optlen 1221 net/ipv4/ip_sockglue.c err = put_user(len, optlen); optlen 921 net/ipv4/ipmr.c if (optlen!=sizeof(int)) optlen 946 net/ipv4/ipmr.c if (optlen!=sizeof(vif)) optlen 967 net/ipv4/ipmr.c if (optlen!=sizeof(mfc)) optlen 1043 net/ipv4/ipmr.c if (get_user(olr, optlen)) optlen 1050 net/ipv4/ipmr.c if (put_user(olr,optlen)) optlen 1183 net/ipv4/ipmr.c if (unlikely(opt->optlen)) optlen 711 net/ipv4/raw.c if (optlen > sizeof(struct icmp_filter)) optlen 712 net/ipv4/raw.c optlen = sizeof(struct icmp_filter); optlen 713 net/ipv4/raw.c if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) optlen 722 net/ipv4/raw.c if (get_user(len, optlen)) optlen 730 net/ipv4/raw.c if (put_user(len, optlen) || optlen 744 net/ipv4/raw.c return raw_seticmpfilter(sk, optval, optlen); optlen 753 net/ipv4/raw.c return ip_setsockopt(sk, level, optname, optval, optlen); optlen 754 net/ipv4/raw.c return do_raw_setsockopt(sk, level, optname, optval, optlen); optlen 762 net/ipv4/raw.c return compat_ip_setsockopt(sk, level, optname, optval, optlen); optlen 763 net/ipv4/raw.c return do_raw_setsockopt(sk, level, optname, optval, optlen); optlen 774 net/ipv4/raw.c return raw_geticmpfilter(sk, optval, optlen); optlen 783 net/ipv4/raw.c return ip_getsockopt(sk, level, optname, optval, optlen); optlen 784 net/ipv4/raw.c return do_raw_getsockopt(sk, level, optname, optval, optlen); optlen 792 net/ipv4/raw.c return compat_ip_getsockopt(sk, level, optname, optval, optlen); optlen 793 net/ipv4/raw.c return do_raw_getsockopt(sk, level, optname, optval, optlen); optlen 315 net/ipv4/syncookies.c if (opt && opt->optlen) { optlen 316 net/ipv4/syncookies.c int opt_size = sizeof(struct ip_options) + opt->optlen; optlen 1999 net/ipv4/tcp.c if (optlen < 1) optlen 2003 net/ipv4/tcp.c min(TCP_CA_NAME_MAX-1, optlen)); optlen 2014 net/ipv4/tcp.c if (optlen < sizeof(int)) optlen 2162 net/ipv4/tcp.c err = tp->af_specific->md5_parse(sk, optval, optlen); optlen 2182 net/ipv4/tcp.c optval, optlen); optlen 2183 net/ipv4/tcp.c return do_tcp_setsockopt(sk, level, optname, optval, optlen); optlen 2192 net/ipv4/tcp.c optval, optlen); optlen 2193 net/ipv4/tcp.c return do_tcp_setsockopt(sk, level, optname, optval, optlen); optlen 2271 net/ipv4/tcp.c if (get_user(len, optlen)) optlen 2318 net/ipv4/tcp.c if (get_user(len, optlen)) optlen 2324 net/ipv4/tcp.c if (put_user(len, optlen)) optlen 2335 net/ipv4/tcp.c if (get_user(len, optlen)) optlen 2338 net/ipv4/tcp.c if (put_user(len, optlen)) optlen 2347 net/ipv4/tcp.c if (put_user(len, optlen)) optlen 2361 net/ipv4/tcp.c optval, optlen); optlen 2362 net/ipv4/tcp.c return do_tcp_getsockopt(sk, level, optname, optval, optlen); optlen 2371 net/ipv4/tcp.c optval, optlen); optlen 2372 net/ipv4/tcp.c return do_tcp_getsockopt(sk, level, optname, optval, optlen); optlen 221 net/ipv4/tcp_ipv4.c inet_csk(sk)->icsk_ext_hdr_len = inet->opt->optlen; optlen 778 net/ipv4/tcp_ipv4.c if (opt && opt->optlen) { optlen 956 net/ipv4/tcp_ipv4.c if (optlen < sizeof(cmd)) optlen 1367 net/ipv4/tcp_ipv4.c inet_csk(newsk)->icsk_ext_hdr_len = newinet->opt->optlen; optlen 1271 net/ipv4/udp.c if (optlen<sizeof(int)) optlen 1347 net/ipv4/udp.c return udp_lib_setsockopt(sk, level, optname, optval, optlen, optlen 1349 net/ipv4/udp.c return ip_setsockopt(sk, level, optname, optval, optlen); optlen 1357 net/ipv4/udp.c return udp_lib_setsockopt(sk, level, optname, optval, optlen, optlen 1359 net/ipv4/udp.c return compat_ip_setsockopt(sk, level, optname, optval, optlen); optlen 1369 net/ipv4/udp.c if (get_user(len,optlen)) optlen 1400 net/ipv4/udp.c if (put_user(len, optlen)) optlen 1411 net/ipv4/udp.c return udp_lib_getsockopt(sk, level, optname, optval, optlen); optlen 1412 net/ipv4/udp.c return ip_getsockopt(sk, level, optname, optval, optlen); optlen 1420 net/ipv4/udp.c return udp_lib_getsockopt(sk, level, optname, optval, optlen); optlen 1421 net/ipv4/udp.c return compat_ip_getsockopt(sk, level, optname, optval, optlen); optlen 43 net/ipv4/xfrm4_mode_beet.c int hdrlen, optlen; optlen 46 net/ipv4/xfrm4_mode_beet.c optlen = XFRM_MODE_SKB_CB(skb)->optlen; optlen 47 net/ipv4/xfrm4_mode_beet.c if (unlikely(optlen)) optlen 48 net/ipv4/xfrm4_mode_beet.c hdrlen += IPV4_BEET_PHMAXLEN - (optlen & 4); optlen 65 net/ipv4/xfrm4_mode_beet.c if (unlikely(optlen)) { optlen 66 net/ipv4/xfrm4_mode_beet.c BUG_ON(optlen < 0); optlen 68 net/ipv4/xfrm4_mode_beet.c ph->padlen = 4 - (optlen & 4); optlen 69 net/ipv4/xfrm4_mode_beet.c ph->hdrlen = optlen / 8; optlen 87 net/ipv4/xfrm4_mode_beet.c int optlen = 0; optlen 100 net/ipv4/xfrm4_mode_beet.c optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen); optlen 101 net/ipv4/xfrm4_mode_beet.c if (optlen < 0 || optlen & 3 || optlen > 250) optlen 122 net/ipv4/xfrm4_mode_beet.c iph->ihl += optlen / 4; optlen 60 net/ipv4/xfrm4_state.c XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); optlen 44 net/ipv6/ah6.c int optlen = 0; optlen 54 net/ipv6/ah6.c optlen = 1; optlen 59 net/ipv6/ah6.c optlen = opt[off+1]+2; optlen 60 net/ipv6/ah6.c if (len < optlen) optlen 67 net/ipv6/ah6.c off += optlen; optlen 68 net/ipv6/ah6.c len -= optlen; optlen 88 net/ipv6/ah6.c int optlen = 0; optlen 98 net/ipv6/ah6.c optlen = 1; optlen 103 net/ipv6/ah6.c optlen = opt[off+1]+2; optlen 104 net/ipv6/ah6.c if (len < optlen) optlen 128 net/ipv6/ah6.c off += optlen; optlen 129 net/ipv6/ah6.c len -= optlen; optlen 70 net/ipv6/exthdrs.c int optlen; optlen 77 net/ipv6/exthdrs.c optlen = 1; optlen 80 net/ipv6/exthdrs.c optlen = nh[offset + 1] + 2; optlen 81 net/ipv6/exthdrs.c if (optlen > len) optlen 85 net/ipv6/exthdrs.c offset += optlen; optlen 86 net/ipv6/exthdrs.c len -= optlen; optlen 153 net/ipv6/exthdrs.c int optlen = nh[off + 1] + 2; optlen 157 net/ipv6/exthdrs.c optlen = 1; optlen 164 net/ipv6/exthdrs.c if (optlen > len) optlen 182 net/ipv6/exthdrs.c off += optlen; optlen 183 net/ipv6/exthdrs.c len -= optlen; optlen 336 net/ipv6/ip6_flowlabel.c olen = optlen - CMSG_ALIGN(sizeof(*freq)); optlen 476 net/ipv6/ip6_flowlabel.c if (optlen < sizeof(freq)) optlen 524 net/ipv6/ip6_flowlabel.c fl = fl_create(net, &freq, optval, optlen, &err); optlen 343 net/ipv6/ip6_tunnel.c __u16 optlen = 0; optlen 354 net/ipv6/ip6_tunnel.c optlen = 8; optlen 356 net/ipv6/ip6_tunnel.c optlen = (hdr->hdrlen + 2) << 2; optlen 358 net/ipv6/ip6_tunnel.c optlen = ipv6_optlen(hdr); optlen 366 net/ipv6/ip6_tunnel.c if (i + sizeof (*tel) > off + optlen) optlen 382 net/ipv6/ip6_tunnel.c off += optlen; optlen 1193 net/ipv6/ip6mr.c if (optlen < sizeof(int)) optlen 1202 net/ipv6/ip6mr.c if (optlen < sizeof(vif)) optlen 1214 net/ipv6/ip6mr.c if (optlen < sizeof(mifi_t)) optlen 1229 net/ipv6/ip6mr.c if (optlen < sizeof(mfc)) optlen 1314 net/ipv6/ip6mr.c if (get_user(olr, optlen)) optlen 1321 net/ipv6/ip6mr.c if (put_user(olr, optlen)) optlen 136 net/ipv6/ipv6_sockglue.c if (optlen >= sizeof(int)) { optlen 146 net/ipv6/ipv6_sockglue.c return ip6_mroute_setsockopt(sk, optname, optval, optlen); optlen 153 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 237 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int) || optlen 245 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 252 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 259 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 266 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 273 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 280 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 287 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 294 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 301 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 308 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 315 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 324 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 331 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 347 net/ipv6/ipv6_sockglue.c if (optlen == 0) optlen 351 net/ipv6/ipv6_sockglue.c else if (optlen < sizeof(struct ipv6_opt_hdr) || optlen 352 net/ipv6/ipv6_sockglue.c optlen & 0x7 || optlen > 8 * 255) optlen 362 net/ipv6/ipv6_sockglue.c optlen); optlen 403 net/ipv6/ipv6_sockglue.c if (optlen == 0) optlen 410 net/ipv6/ipv6_sockglue.c if (optlen > 64*1024) optlen 413 net/ipv6/ipv6_sockglue.c opt = sock_kmalloc(sk, sizeof(*opt) + optlen, GFP_KERNEL); optlen 419 net/ipv6/ipv6_sockglue.c opt->tot_len = sizeof(*opt) + optlen; optlen 421 net/ipv6/ipv6_sockglue.c if (copy_from_user(opt+1, optval, optlen)) optlen 424 net/ipv6/ipv6_sockglue.c msg.msg_controllen = optlen; optlen 439 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 450 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 459 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 470 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 490 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(struct ipv6_mreq)) optlen 512 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(struct ipv6_mreq)) optlen 531 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(struct group_req)) optlen 558 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(struct group_source_req)) optlen 598 net/ipv6/ipv6_sockglue.c if (optlen < GROUP_FILTER_SIZE(0)) optlen 600 net/ipv6/ipv6_sockglue.c if (optlen > sysctl_optmem_max) { optlen 604 net/ipv6/ipv6_sockglue.c gsf = kmalloc(optlen,GFP_KERNEL); optlen 610 net/ipv6/ipv6_sockglue.c if (copy_from_user(gsf, optval, optlen)) { optlen 621 net/ipv6/ipv6_sockglue.c if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) { optlen 632 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 637 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 645 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 653 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 661 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 667 net/ipv6/ipv6_sockglue.c retv = ipv6_flowlabel_opt(sk, optval, optlen); optlen 674 net/ipv6/ipv6_sockglue.c retv = xfrm_user_policy(sk, optname, optval, optlen); optlen 682 net/ipv6/ipv6_sockglue.c if (optlen < sizeof(int)) optlen 756 net/ipv6/ipv6_sockglue.c return udp_prot.setsockopt(sk, level, optname, optval, optlen); optlen 761 net/ipv6/ipv6_sockglue.c err = do_ipv6_setsockopt(sk, level, optname, optval, optlen); optlen 768 net/ipv6/ipv6_sockglue.c optlen); optlen 786 net/ipv6/ipv6_sockglue.c optval, optlen); optlen 787 net/ipv6/ipv6_sockglue.c return udp_prot.setsockopt(sk, level, optname, optval, optlen); optlen 794 net/ipv6/ipv6_sockglue.c return compat_mc_setsockopt(sk, level, optname, optval, optlen, optlen 797 net/ipv6/ipv6_sockglue.c err = do_ipv6_setsockopt(sk, level, optname, optval, optlen); optlen 804 net/ipv6/ipv6_sockglue.c optval, optlen); optlen 856 net/ipv6/ipv6_sockglue.c return ip6_mroute_getsockopt(sk, optname, optval, optlen); optlen 858 net/ipv6/ipv6_sockglue.c if (get_user(len, optlen)) optlen 883 net/ipv6/ipv6_sockglue.c (struct group_filter __user *)optval, optlen); optlen 934 net/ipv6/ipv6_sockglue.c return put_user(len, optlen); optlen 993 net/ipv6/ipv6_sockglue.c return put_user(len, optlen); optlen 1089 net/ipv6/ipv6_sockglue.c if(put_user(len, optlen)) optlen 1102 net/ipv6/ipv6_sockglue.c return udp_prot.getsockopt(sk, level, optname, optval, optlen); optlen 1107 net/ipv6/ipv6_sockglue.c err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); optlen 1113 net/ipv6/ipv6_sockglue.c if (get_user(len, optlen)) optlen 1121 net/ipv6/ipv6_sockglue.c err = put_user(len, optlen); optlen 1138 net/ipv6/ipv6_sockglue.c optval, optlen); optlen 1139 net/ipv6/ipv6_sockglue.c return udp_prot.getsockopt(sk, level, optname, optval, optlen); optlen 1146 net/ipv6/ipv6_sockglue.c return compat_mc_getsockopt(sk, level, optname, optval, optlen, optlen 1149 net/ipv6/ipv6_sockglue.c err = do_ipv6_getsockopt(sk, level, optname, optval, optlen); optlen 1155 net/ipv6/ipv6_sockglue.c if (get_user(len, optlen)) optlen 1163 net/ipv6/ipv6_sockglue.c err = put_user(len, optlen); optlen 631 net/ipv6/mcast.c if (put_user(GROUP_FILTER_SIZE(copycount), optlen) || optlen 1080 net/ipv6/ndisc.c int optlen; optlen 1085 net/ipv6/ndisc.c optlen = (skb->tail - skb->transport_header) - sizeof(struct ra_msg); optlen 1092 net/ipv6/ndisc.c if (optlen < 0) { optlen 1122 net/ipv6/ndisc.c if (!ndisc_parse_options(opt, optlen, &ndopts)) { optlen 1364 net/ipv6/ndisc.c int optlen; optlen 1383 net/ipv6/ndisc.c optlen = skb->tail - skb->transport_header; optlen 1384 net/ipv6/ndisc.c optlen -= sizeof(struct icmp6hdr) + 2 * sizeof(struct in6_addr); optlen 1386 net/ipv6/ndisc.c if (optlen < 0) { optlen 1424 net/ipv6/ndisc.c if (!ndisc_parse_options((u8*)(dest + 1), optlen, &ndopts)) { optlen 58 net/ipv6/netfilter/ip6t_hbh.c unsigned int optlen; optlen 137 net/ipv6/netfilter/ip6t_hbh.c optlen = *lp + 2; optlen 140 net/ipv6/netfilter/ip6t_hbh.c optlen = 1; optlen 144 net/ipv6/netfilter/ip6t_hbh.c pr_debug("len%04X \n", optlen); optlen 146 net/ipv6/netfilter/ip6t_hbh.c if ((ptr > skb->len - optlen || hdrlen < optlen) && optlen 151 net/ipv6/netfilter/ip6t_hbh.c ptr += optlen; optlen 152 net/ipv6/netfilter/ip6t_hbh.c hdrlen -= optlen; optlen 921 net/ipv6/raw.c if (optlen > sizeof(struct icmp6_filter)) optlen 922 net/ipv6/raw.c optlen = sizeof(struct icmp6_filter); optlen 923 net/ipv6/raw.c if (copy_from_user(&raw6_sk(sk)->filter, optval, optlen)) optlen 940 net/ipv6/raw.c if (get_user(len, optlen)) optlen 946 net/ipv6/raw.c if (put_user(len, optlen)) optlen 1013 net/ipv6/raw.c optlen); optlen 1019 net/ipv6/raw.c optlen); optlen 1022 net/ipv6/raw.c return do_rawv6_setsockopt(sk, level, optname, optval, optlen); optlen 1035 net/ipv6/raw.c return rawv6_seticmpfilter(sk, level, optname, optval, optlen); optlen 1041 net/ipv6/raw.c optval, optlen); optlen 1043 net/ipv6/raw.c return do_rawv6_setsockopt(sk, level, optname, optval, optlen); optlen 1053 net/ipv6/raw.c if (get_user(len,optlen)) optlen 1075 net/ipv6/raw.c if (put_user(len, optlen)) optlen 1093 net/ipv6/raw.c optlen); optlen 1099 net/ipv6/raw.c optlen); optlen 1102 net/ipv6/raw.c return do_rawv6_getsockopt(sk, level, optname, optval, optlen); optlen 1115 net/ipv6/raw.c return rawv6_geticmpfilter(sk, level, optname, optval, optlen); optlen 1121 net/ipv6/raw.c optval, optlen); optlen 1123 net/ipv6/raw.c return do_rawv6_getsockopt(sk, level, optname, optval, optlen); optlen 699 net/ipv6/tcp_ipv6.c if (optlen < sizeof(cmd)) optlen 922 net/ipv6/udp.c return udp_lib_setsockopt(sk, level, optname, optval, optlen, optlen 924 net/ipv6/udp.c return ipv6_setsockopt(sk, level, optname, optval, optlen); optlen 932 net/ipv6/udp.c return udp_lib_setsockopt(sk, level, optname, optval, optlen, optlen 934 net/ipv6/udp.c return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); optlen 942 net/ipv6/udp.c return udp_lib_getsockopt(sk, level, optname, optval, optlen); optlen 943 net/ipv6/udp.c return ipv6_getsockopt(sk, level, optname, optval, optlen); optlen 951 net/ipv6/udp.c return udp_lib_getsockopt(sk, level, optname, optval, optlen); optlen 952 net/ipv6/udp.c return compat_ipv6_getsockopt(sk, level, optname, optval, optlen); optlen 45 net/ipv6/xfrm6_mode_beet.c int optlen, hdr_len; optlen 49 net/ipv6/xfrm6_mode_beet.c optlen = XFRM_MODE_SKB_CB(skb)->optlen; optlen 50 net/ipv6/xfrm6_mode_beet.c if (unlikely(optlen)) optlen 51 net/ipv6/xfrm6_mode_beet.c hdr_len += IPV4_BEET_PHMAXLEN - (optlen & 4); optlen 64 net/ipv6/xfrm6_mode_beet.c if (unlikely(optlen)) { optlen 66 net/ipv6/xfrm6_mode_beet.c BUG_ON(optlen < 0); optlen 68 net/ipv6/xfrm6_mode_beet.c ph->padlen = 4 - (optlen & 4); optlen 69 net/ipv6/xfrm6_mode_beet.c ph->hdrlen = optlen / 8; optlen 159 net/ipv6/xfrm6_state.c XFRM_MODE_SKB_CB(skb)->optlen = 0; optlen 1300 net/ipx/af_ipx.c if (optlen != sizeof(int)) optlen 1331 net/ipx/af_ipx.c if (get_user(len, optlen)) optlen 1340 net/ipx/af_ipx.c if (put_user(len, optlen) || copy_to_user(optval, &val, len)) optlen 1852 net/irda/af_irda.c if (optlen != sizeof(struct irda_ias_set)) optlen 1860 net/irda/af_irda.c if (copy_from_user(ias_opt, optval, optlen)) { optlen 1972 net/irda/af_irda.c if (optlen != sizeof(struct irda_ias_set)) optlen 1980 net/irda/af_irda.c if (copy_from_user(ias_opt, optval, optlen)) { optlen 2027 net/irda/af_irda.c if (optlen < sizeof(int)) optlen 2045 net/irda/af_irda.c if (optlen < sizeof(int)) optlen 2064 net/irda/af_irda.c if (optlen < sizeof(int)) optlen 2159 net/irda/af_irda.c if (get_user(len, optlen)) optlen 2198 net/irda/af_irda.c if (put_user(total, optlen)) optlen 2209 net/irda/af_irda.c if (put_user(len, optlen)) optlen 983 net/llc/af_llc.c if (unlikely(level != SOL_LLC || optlen != sizeof(int))) optlen 1060 net/llc/af_llc.c rc = get_user(len, optlen); optlen 1088 net/llc/af_llc.c if (put_user(len, optlen) || copy_to_user(optval, &val, len)) optlen 94 net/netfilter/xt_TCPMSS.c for (i = sizeof(struct tcphdr); i < tcph->doff*4; i += optlen(opt, i)) { optlen 53 net/netfilter/xt_TCPOPTSTRIP.c optl = optlen(opt, i); optlen 45 net/netfilter/xt_dccp.c unsigned int optlen = dh->dccph_doff*4 - __dccp_hdr_len(dh); optlen 53 net/netfilter/xt_dccp.c if (!optlen) optlen 57 net/netfilter/xt_dccp.c op = skb_header_pointer(skb, protoff + optoff, optlen, dccp_optbuf); optlen 65 net/netfilter/xt_dccp.c for (i = 0; i < optlen; ) { optlen 36 net/netfilter/xt_tcpmss.c unsigned int i, optlen; optlen 47 net/netfilter/xt_tcpmss.c optlen = th->doff*4 - sizeof(*th); optlen 48 net/netfilter/xt_tcpmss.c if (!optlen) optlen 52 net/netfilter/xt_tcpmss.c op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt); optlen 56 net/netfilter/xt_tcpmss.c for (i = 0; i < optlen; ) { optlen 58 net/netfilter/xt_tcpmss.c && (optlen - i) >= TCPOLEN_MSS optlen 51 net/netfilter/xt_tcpudp.c if (!optlen) optlen 56 net/netfilter/xt_tcpudp.c optlen, _opt); optlen 62 net/netfilter/xt_tcpudp.c for (i = 0; i < optlen; ) { optlen 1127 net/netlink/af_netlink.c if (optlen >= sizeof(int) && optlen 1171 net/netlink/af_netlink.c if (get_user(len, optlen)) optlen 1182 net/netlink/af_netlink.c if (put_user(len, optlen) || optlen 314 net/netrom/af_netrom.c if (optlen < sizeof(int)) optlen 367 net/netrom/af_netrom.c if (get_user(len, optlen)) optlen 400 net/netrom/af_netrom.c if (put_user(len, optlen)) optlen 1395 net/packet/af_packet.c int len = optlen; optlen 1417 net/packet/af_packet.c if (optlen<sizeof(req)) optlen 1427 net/packet/af_packet.c if (optlen!=sizeof(val)) optlen 1439 net/packet/af_packet.c if (optlen != sizeof(val)) optlen 1458 net/packet/af_packet.c if (optlen != sizeof(val)) optlen 1472 net/packet/af_packet.c if (optlen < sizeof(val)) optlen 1484 net/packet/af_packet.c if (optlen < sizeof(val)) optlen 1510 net/packet/af_packet.c if (get_user(len, optlen)) optlen 1577 net/packet/af_packet.c if (put_user(len, optlen)) optlen 748 net/phonet/pep.c if (optlen >= sizeof(int)) { optlen 797 net/phonet/pep.c if (get_user(len, optlen)) optlen 812 net/phonet/pep.c if (put_user(len, optlen)) optlen 385 net/rose/af_rose.c if (optlen < sizeof(int)) optlen 446 net/rose/af_rose.c if (get_user(len, optlen)) optlen 487 net/rose/af_rose.c if (put_user(len, optlen)) optlen 515 net/rxrpc/af_rxrpc.c _enter(",%d,%d,,%d", level, optname, optlen); optlen 524 net/rxrpc/af_rxrpc.c if (optlen != 0) optlen 539 net/rxrpc/af_rxrpc.c ret = rxrpc_request_key(rx, optval, optlen); optlen 549 net/rxrpc/af_rxrpc.c ret = rxrpc_server_keyring(rx, optval, optlen); optlen 554 net/rxrpc/af_rxrpc.c if (optlen != sizeof(unsigned)) optlen 219 net/rxrpc/ar-key.c if (optlen <= 0 || optlen > PAGE_SIZE - 1) optlen 222 net/rxrpc/ar-key.c description = kmalloc(optlen + 1, GFP_KERNEL); optlen 226 net/rxrpc/ar-key.c if (copy_from_user(description, optval, optlen)) { optlen 230 net/rxrpc/ar-key.c description[optlen] = 0; optlen 256 net/rxrpc/ar-key.c if (optlen <= 0 || optlen > PAGE_SIZE - 1) optlen 259 net/rxrpc/ar-key.c description = kmalloc(optlen + 1, GFP_KERNEL); optlen 263 net/rxrpc/ar-key.c if (copy_from_user(description, optval, optlen)) { optlen 267 net/rxrpc/ar-key.c description[optlen] = 0; optlen 1994 net/sctp/socket.c if (optlen < sizeof(int)) optlen 2008 net/sctp/socket.c if (optlen > sizeof(struct sctp_event_subscribe)) optlen 2010 net/sctp/socket.c if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen)) optlen 2034 net/sctp/socket.c if (optlen != sizeof(int)) optlen 2036 net/sctp/socket.c if (copy_from_user(&sp->autoclose, optval, optlen)) optlen 2290 net/sctp/socket.c if (optlen != sizeof(struct sctp_paddrparams)) optlen 2293 net/sctp/socket.c if (copy_from_user(¶ms, optval, optlen)) optlen 2400 net/sctp/socket.c if (optlen == sizeof(struct sctp_sack_info)) { optlen 2401 net/sctp/socket.c if (copy_from_user(¶ms, optval, optlen)) optlen 2406 net/sctp/socket.c } else if (optlen == sizeof(struct sctp_assoc_value)) { optlen 2410 net/sctp/socket.c if (copy_from_user(¶ms, optval, optlen)) optlen 2514 net/sctp/socket.c if (optlen != sizeof(struct sctp_initmsg)) optlen 2516 net/sctp/socket.c if (copy_from_user(&sinit, optval, optlen)) optlen 2552 net/sctp/socket.c if (optlen != sizeof(struct sctp_sndrcvinfo)) optlen 2554 net/sctp/socket.c if (copy_from_user(&info, optval, optlen)) optlen 2590 net/sctp/socket.c if (optlen != sizeof(struct sctp_prim)) optlen 2618 net/sctp/socket.c if (optlen < sizeof(int)) optlen 2643 net/sctp/socket.c if (optlen != sizeof (struct sctp_rtoinfo)) optlen 2646 net/sctp/socket.c if (copy_from_user(&rtoinfo, optval, optlen)) optlen 2697 net/sctp/socket.c if (optlen != sizeof(struct sctp_assocparams)) optlen 2699 net/sctp/socket.c if (copy_from_user(&assocparams, optval, optlen)) optlen 2768 net/sctp/socket.c if (optlen < sizeof(int)) optlen 2796 net/sctp/socket.c if (optlen < sizeof(int)) optlen 2837 net/sctp/socket.c if (optlen != sizeof(struct sctp_setpeerprim)) optlen 2840 net/sctp/socket.c if (copy_from_user(&prim, optval, optlen)) optlen 2877 net/sctp/socket.c if (optlen != sizeof(struct sctp_setadaptation)) optlen 2879 net/sctp/socket.c if (copy_from_user(&adaptation, optval, optlen)) optlen 2908 net/sctp/socket.c if (optlen != sizeof(struct sctp_assoc_value)) optlen 2910 net/sctp/socket.c if (copy_from_user(¶ms, optval, optlen)) optlen 2957 net/sctp/socket.c if (optlen != sizeof(int)) optlen 2983 net/sctp/socket.c if (optlen != sizeof(u32)) optlen 3014 net/sctp/socket.c if (optlen < sizeof(int)) optlen 3017 net/sctp/socket.c if (optlen == sizeof(int)) { optlen 3022 net/sctp/socket.c if (copy_from_user(&val, optval, optlen)) optlen 3024 net/sctp/socket.c } else if (optlen == sizeof(struct sctp_assoc_value)) { optlen 3025 net/sctp/socket.c if (copy_from_user(¶ms, optval, optlen)) optlen 3061 net/sctp/socket.c if (optlen != sizeof(struct sctp_authchunk)) optlen 3063 net/sctp/socket.c if (copy_from_user(&val, optval, optlen)) optlen 3095 net/sctp/socket.c if (optlen < sizeof(struct sctp_hmacalgo)) optlen 3098 net/sctp/socket.c hmacs = kmalloc(optlen, GFP_KERNEL); optlen 3102 net/sctp/socket.c if (copy_from_user(hmacs, optval, optlen)) { optlen 3109 net/sctp/socket.c (idents * sizeof(u16)) > (optlen - sizeof(struct sctp_hmacalgo))) { optlen 3137 net/sctp/socket.c if (optlen <= sizeof(struct sctp_authkey)) optlen 3140 net/sctp/socket.c authkey = kmalloc(optlen, GFP_KERNEL); optlen 3144 net/sctp/socket.c if (copy_from_user(authkey, optval, optlen)) { optlen 3149 net/sctp/socket.c if (authkey->sca_keylength > optlen - sizeof(struct sctp_authkey)) { optlen 3182 net/sctp/socket.c if (optlen != sizeof(struct sctp_authkeyid)) optlen 3184 net/sctp/socket.c if (copy_from_user(&val, optval, optlen)) optlen 3210 net/sctp/socket.c if (optlen != sizeof(struct sctp_authkeyid)) optlen 3212 net/sctp/socket.c if (copy_from_user(&val, optval, optlen)) optlen 3260 net/sctp/socket.c retval = af->setsockopt(sk, level, optname, optval, optlen); optlen 3270 net/sctp/socket.c optlen, SCTP_BINDX_ADD_ADDR); optlen 3276 net/sctp/socket.c optlen, SCTP_BINDX_REM_ADDR); optlen 3283 net/sctp/socket.c optlen); optlen 3290 net/sctp/socket.c optlen); optlen 3294 net/sctp/socket.c retval = sctp_setsockopt_disable_fragments(sk, optval, optlen); optlen 3298 net/sctp/socket.c retval = sctp_setsockopt_events(sk, optval, optlen); optlen 3302 net/sctp/socket.c retval = sctp_setsockopt_autoclose(sk, optval, optlen); optlen 3306 net/sctp/socket.c retval = sctp_setsockopt_peer_addr_params(sk, optval, optlen); optlen 3310 net/sctp/socket.c retval = sctp_setsockopt_delayed_ack(sk, optval, optlen); optlen 3313 net/sctp/socket.c retval = sctp_setsockopt_partial_delivery_point(sk, optval, optlen); optlen 3317 net/sctp/socket.c retval = sctp_setsockopt_initmsg(sk, optval, optlen); optlen 3321 net/sctp/socket.c optlen); optlen 3324 net/sctp/socket.c retval = sctp_setsockopt_primary_addr(sk, optval, optlen); optlen 3327 net/sctp/socket.c retval = sctp_setsockopt_peer_primary_addr(sk, optval, optlen); optlen 3330 net/sctp/socket.c retval = sctp_setsockopt_nodelay(sk, optval, optlen); optlen 3333 net/sctp/socket.c retval = sctp_setsockopt_rtoinfo(sk, optval, optlen); optlen 3336 net/sctp/socket.c retval = sctp_setsockopt_associnfo(sk, optval, optlen); optlen 3339 net/sctp/socket.c retval = sctp_setsockopt_mappedv4(sk, optval, optlen); optlen 3342 net/sctp/socket.c retval = sctp_setsockopt_maxseg(sk, optval, optlen); optlen 3345 net/sctp/socket.c retval = sctp_setsockopt_adaptation_layer(sk, optval, optlen); optlen 3348 net/sctp/socket.c retval = sctp_setsockopt_context(sk, optval, optlen); optlen 3351 net/sctp/socket.c retval = sctp_setsockopt_fragment_interleave(sk, optval, optlen); optlen 3354 net/sctp/socket.c retval = sctp_setsockopt_maxburst(sk, optval, optlen); optlen 3357 net/sctp/socket.c retval = sctp_setsockopt_auth_chunk(sk, optval, optlen); optlen 3360 net/sctp/socket.c retval = sctp_setsockopt_hmac_ident(sk, optval, optlen); optlen 3363 net/sctp/socket.c retval = sctp_setsockopt_auth_key(sk, optval, optlen); optlen 3366 net/sctp/socket.c retval = sctp_setsockopt_active_key(sk, optval, optlen); optlen 3369 net/sctp/socket.c retval = sctp_setsockopt_del_key(sk, optval, optlen); optlen 3728 net/sctp/socket.c if (put_user(len, optlen)) { optlen 3788 net/sctp/socket.c if (put_user(len, optlen)) { optlen 3819 net/sctp/socket.c if (put_user(len, optlen)) optlen 3837 net/sctp/socket.c if (put_user(len, optlen)) optlen 3863 net/sctp/socket.c if (put_user(len, optlen)) optlen 3946 net/sctp/socket.c if (put_user(len, optlen)) optlen 4116 net/sctp/socket.c if (put_user(len, optlen)) optlen 4212 net/sctp/socket.c if (put_user(len, optlen)) optlen 4234 net/sctp/socket.c if (put_user(len, optlen)) optlen 4318 net/sctp/socket.c if (put_user(len, optlen)) optlen 4371 net/sctp/socket.c if (put_user(bytes_copied, optlen)) optlen 4738 net/sctp/socket.c if (put_user(bytes_copied, optlen)) optlen 4779 net/sctp/socket.c if (put_user(len, optlen)) optlen 4805 net/sctp/socket.c if (put_user(len, optlen)) optlen 4866 net/sctp/socket.c if (put_user(len, optlen)) optlen 4894 net/sctp/socket.c if (put_user(len, optlen)) optlen 4946 net/sctp/socket.c if (put_user(len, optlen)) optlen 5018 net/sctp/socket.c if (put_user(len, optlen)) optlen 5048 net/sctp/socket.c if (put_user(len, optlen)) optlen 5086 net/sctp/socket.c if (put_user(len, optlen)) optlen 5115 net/sctp/socket.c if (put_user(len, optlen)) optlen 5138 net/sctp/socket.c if (put_user(len, optlen)) optlen 5162 net/sctp/socket.c if (put_user(len, optlen)) optlen 5239 net/sctp/socket.c if (put_user(len, optlen)) optlen 5272 net/sctp/socket.c if (put_user(len, optlen)) optlen 5317 net/sctp/socket.c if (put_user(len, optlen)) return -EFAULT; optlen 5363 net/sctp/socket.c if (put_user(len, optlen)) optlen 5389 net/sctp/socket.c retval = af->getsockopt(sk, level, optname, optval, optlen); optlen 5393 net/sctp/socket.c if (get_user(len, optlen)) optlen 5400 net/sctp/socket.c retval = sctp_getsockopt_sctp_status(sk, len, optval, optlen); optlen 5404 net/sctp/socket.c optlen); optlen 5407 net/sctp/socket.c retval = sctp_getsockopt_events(sk, len, optval, optlen); optlen 5410 net/sctp/socket.c retval = sctp_getsockopt_autoclose(sk, len, optval, optlen); optlen 5413 net/sctp/socket.c retval = sctp_getsockopt_peeloff(sk, len, optval, optlen); optlen 5417 net/sctp/socket.c optlen); optlen 5421 net/sctp/socket.c optlen); optlen 5424 net/sctp/socket.c retval = sctp_getsockopt_initmsg(sk, len, optval, optlen); optlen 5428 net/sctp/socket.c optlen); optlen 5432 net/sctp/socket.c optlen); optlen 5436 net/sctp/socket.c optlen); optlen 5440 net/sctp/socket.c optlen); optlen 5444 net/sctp/socket.c optlen); optlen 5448 net/sctp/socket.c optlen); optlen 5452 net/sctp/socket.c optval, optlen); optlen 5455 net/sctp/socket.c retval = sctp_getsockopt_primary_addr(sk, len, optval, optlen); optlen 5458 net/sctp/socket.c retval = sctp_getsockopt_nodelay(sk, len, optval, optlen); optlen 5461 net/sctp/socket.c retval = sctp_getsockopt_rtoinfo(sk, len, optval, optlen); optlen 5464 net/sctp/socket.c retval = sctp_getsockopt_associnfo(sk, len, optval, optlen); optlen 5467 net/sctp/socket.c retval = sctp_getsockopt_mappedv4(sk, len, optval, optlen); optlen 5470 net/sctp/socket.c retval = sctp_getsockopt_maxseg(sk, len, optval, optlen); optlen 5474 net/sctp/socket.c optlen); optlen 5478 net/sctp/socket.c optlen); optlen 5481 net/sctp/socket.c retval = sctp_getsockopt_context(sk, len, optval, optlen); optlen 5485 net/sctp/socket.c optlen); optlen 5489 net/sctp/socket.c optlen); optlen 5492 net/sctp/socket.c retval = sctp_getsockopt_maxburst(sk, len, optval, optlen); optlen 5500 net/sctp/socket.c retval = sctp_getsockopt_hmac_ident(sk, len, optval, optlen); optlen 5503 net/sctp/socket.c retval = sctp_getsockopt_active_key(sk, len, optval, optlen); optlen 5507 net/sctp/socket.c optlen); optlen 5511 net/sctp/socket.c optlen); optlen 1799 net/socket.c if (optlen < 0) optlen 1811 net/socket.c optlen); optlen 1815 net/socket.c optlen); optlen 1842 net/socket.c optlen); optlen 1846 net/socket.c optlen); optlen 2402 net/socket.c err = sock_getsockopt(sock, level, optname, optval, optlen); optlen 2405 net/socket.c optlen); optlen 2418 net/socket.c err = sock_setsockopt(sock, level, optname, optval, optlen); optlen 2421 net/socket.c optlen); optlen 409 net/x25/af_x25.c if (optlen < sizeof(int)) optlen 432 net/x25/af_x25.c if (get_user(len, optlen)) optlen 442 net/x25/af_x25.c if (put_user(len, optlen)) optlen 1864 net/xfrm/xfrm_state.c if (optlen <= 0 || optlen > PAGE_SIZE) optlen 1867 net/xfrm/xfrm_state.c data = kmalloc(optlen, GFP_KERNEL); optlen 1872 net/xfrm/xfrm_state.c if (copy_from_user(data, optval, optlen)) optlen 1879 net/xfrm/xfrm_state.c optlen, &err); optlen 969 security/security.c return security_ops->socket_getpeersec_stream(sock, optval, optlen, len); optlen 4226 security/selinux/hooks.c if (put_user(scontext_len, optlen)) optlen 335 security/selinux/netlabel.c (sk_inet->opt ? sk_inet->opt->optlen : 0); optlen 2213 security/smack/smack_lsm.c if (put_user(slen, optlen) != 0)