tag | line | file | source code |
optlen | 72 | include/linux/ip.h | unsigned char optlen; |
optlen | 110 | include/linux/net.h | char *optval, int optlen); |
optlen | 112 | include/linux/net.h | char *optval, int *optlen); |
optlen | 151 | include/net/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
optlen | 152 | include/net/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
optlen | 363 | include/net/sock.h | char *optval, int optlen); |
optlen | 475 | include/net/sock.h | int optlen); |
optlen | 479 | include/net/sock.h | int *optlen); |
optlen | 1017 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 1043 | net/appletalk/ddp.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1056 | net/appletalk/ddp.c | char *optval, int *optlen) |
optlen | 1076 | net/appletalk/ddp.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1081 | net/appletalk/ddp.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1084 | net/appletalk/ddp.c | put_user(sizeof(int),optlen); |
optlen | 877 | net/ax25/af_ax25.c | char *optval, int optlen) |
optlen | 885 | net/ax25/af_ax25.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 964 | net/ax25/af_ax25.c | char *optval, int *optlen) |
optlen | 973 | net/ax25/af_ax25.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 1023 | net/ax25/af_ax25.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 1026 | net/ax25/af_ax25.c | put_user(sizeof(int), optlen); |
optlen | 124 | net/core/sock.c | char *optval, int optlen) |
optlen | 238 | net/core/sock.c | char *optval, int *optlen) |
optlen | 300 | net/core/sock.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 303 | net/core/sock.c | put_fs_long(sizeof(ling),(unsigned long *)optlen); |
optlen | 316 | net/core/sock.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 319 | net/core/sock.c | put_fs_long(sizeof(int),(unsigned long *) optlen); |
optlen | 468 | net/ipv4/af_inet.c | char *optval, int optlen) |
optlen | 472 | net/ipv4/af_inet.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 476 | net/ipv4/af_inet.c | return sk->prot->setsockopt(sk,level,optname,optval,optlen); |
optlen | 484 | net/ipv4/af_inet.c | char *optval, int *optlen) |
optlen | 488 | net/ipv4/af_inet.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 492 | net/ipv4/af_inet.c | return sk->prot->getsockopt(sk,level,optname,optval,optlen); |
optlen | 369 | net/ipv4/ip_forward.c | if (opt->optlen) |
optlen | 36 | net/ipv4/ip_options.c | memcpy(iph+sizeof(struct iphdr), opt->__data, opt->optlen); |
optlen | 79 | net/ipv4/ip_options.c | int optlen; |
optlen | 88 | net/ipv4/ip_options.c | if (sopt->optlen == 0) |
optlen | 90 | net/ipv4/ip_options.c | dopt->optlen = 0; |
optlen | 100 | net/ipv4/ip_options.c | optlen = sptr[sopt->rr+1]; |
optlen | 102 | net/ipv4/ip_options.c | dopt->rr = dopt->optlen + sizeof(struct iphdr); |
optlen | 103 | net/ipv4/ip_options.c | memcpy(dptr, sptr+sopt->rr, optlen); |
optlen | 104 | net/ipv4/ip_options.c | if (sopt->rr_needaddr && soffset <= optlen) { |
optlen | 105 | net/ipv4/ip_options.c | if (soffset + 3 > optlen) |
optlen | 110 | net/ipv4/ip_options.c | dptr += optlen; |
optlen | 111 | net/ipv4/ip_options.c | dopt->optlen += optlen; |
optlen | 115 | net/ipv4/ip_options.c | optlen = sptr[sopt->ts+1]; |
optlen | 117 | net/ipv4/ip_options.c | dopt->ts = dopt->optlen + sizeof(struct iphdr); |
optlen | 118 | net/ipv4/ip_options.c | memcpy(dptr, sptr+sopt->ts, optlen); |
optlen | 119 | net/ipv4/ip_options.c | if (soffset <= optlen) |
optlen | 123 | net/ipv4/ip_options.c | if (soffset + 3 > optlen) |
optlen | 130 | net/ipv4/ip_options.c | if (soffset + 3 > optlen) |
optlen | 148 | net/ipv4/ip_options.c | dptr += optlen; |
optlen | 149 | net/ipv4/ip_options.c | dopt->optlen += optlen; |
optlen | 156 | net/ipv4/ip_options.c | optlen = start[1]; |
optlen | 159 | net/ipv4/ip_options.c | if (soffset > optlen) |
optlen | 160 | net/ipv4/ip_options.c | soffset = optlen + 1; |
optlen | 181 | net/ipv4/ip_options.c | dopt->srr = dopt->optlen + sizeof(struct iphdr); |
optlen | 182 | net/ipv4/ip_options.c | dopt->optlen += doffset+3; |
optlen | 186 | net/ipv4/ip_options.c | while (dopt->optlen & 3) |
optlen | 189 | net/ipv4/ip_options.c | dopt->optlen++; |
optlen | 198 | net/ipv4/ip_options.c | int l = opt->optlen; |
optlen | 199 | net/ipv4/ip_options.c | int optlen; |
optlen | 212 | net/ipv4/ip_options.c | optlen = optptr[1]; |
optlen | 213 | net/ipv4/ip_options.c | if (optlen<2 || optlen>l) |
optlen | 216 | net/ipv4/ip_options.c | memset(optptr, IPOPT_NOOP, optlen); |
optlen | 217 | net/ipv4/ip_options.c | l -= optlen; |
optlen | 218 | net/ipv4/ip_options.c | optptr += optlen; |
optlen | 239 | net/ipv4/ip_options.c | int optlen; |
optlen | 247 | net/ipv4/ip_options.c | opt->optlen = ((struct iphdr *)iph)->ihl*4 - sizeof(struct iphdr); |
optlen | 257 | net/ipv4/ip_options.c | for (l = opt->optlen; l > 0; ) |
optlen | 276 | net/ipv4/ip_options.c | optlen = optptr[1]; |
optlen | 277 | net/ipv4/ip_options.c | if (optlen<2 || optlen>l) |
optlen | 286 | net/ipv4/ip_options.c | if (optlen < 3) |
optlen | 304 | net/ipv4/ip_options.c | if (optptr[2] != 4 || optlen < 7 || ((optlen-3) & 3)) |
optlen | 310 | net/ipv4/ip_options.c | if (optlen > 7) |
optlen | 311 | net/ipv4/ip_options.c | memmove(&optptr[3], &optptr[7], optlen-7); |
optlen | 322 | net/ipv4/ip_options.c | if (optlen < 3) |
optlen | 332 | net/ipv4/ip_options.c | if (optptr[2] <= optlen) |
optlen | 334 | net/ipv4/ip_options.c | if (optptr[2]+3 > optlen) |
optlen | 355 | net/ipv4/ip_options.c | if (optlen < 4) |
optlen | 365 | net/ipv4/ip_options.c | if (optptr[2] <= optlen) |
optlen | 458 | net/ipv4/ip_options.c | l -= optlen; |
optlen | 459 | net/ipv4/ip_options.c | optptr += optlen; |
optlen | 291 | net/ipv4/ip_output.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen); |
optlen | 305 | net/ipv4/ip_output.c | if (!opt || !opt->optlen) |
optlen | 307 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 647 | net/ipv4/ip_output.c | if(opt) length += opt->optlen; |
optlen | 703 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 736 | net/ipv4/ip_output.c | length -= opt->optlen; |
optlen | 737 | net/ipv4/ip_output.c | fragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen; |
optlen | 738 | net/ipv4/ip_output.c | maxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; |
optlen | 879 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 112 | net/ipv4/ip_sockglue.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
optlen | 138 | net/ipv4/ip_sockglue.c | return ip_mroute_setsockopt(sk,optname,optval,optlen); |
optlen | 148 | net/ipv4/ip_sockglue.c | if (optlen > 40 || optlen < 0) |
optlen | 150 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_READ, optval, optlen); |
optlen | 153 | net/ipv4/ip_sockglue.c | opt = kmalloc(sizeof(struct options)+((optlen+3)&~3), GFP_KERNEL); |
optlen | 157 | net/ipv4/ip_sockglue.c | if (optlen) |
optlen | 158 | net/ipv4/ip_sockglue.c | memcpy_fromfs(opt->__data, optval, optlen); |
optlen | 159 | net/ipv4/ip_sockglue.c | while (optlen & 3) |
optlen | 160 | net/ipv4/ip_sockglue.c | opt->__data[optlen++] = IPOPT_END; |
optlen | 161 | net/ipv4/ip_sockglue.c | opt->optlen = optlen; |
optlen | 164 | net/ipv4/ip_sockglue.c | if (optlen && ip_options_compile(opt, NULL)) |
optlen | 166 | net/ipv4/ip_sockglue.c | kfree_s(opt, sizeof(struct options) + optlen); |
optlen | 178 | net/ipv4/ip_sockglue.c | kfree_s(old_opt, sizeof(struct optlen) + old_opt->optlen); |
optlen | 403 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 405 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 408 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw,optval,optlen); |
optlen | 409 | net/ipv4/ip_sockglue.c | err=ip_fw_ctl(optname, &tmp_fw,optlen); |
optlen | 421 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 423 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 426 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw, optval,optlen); |
optlen | 427 | net/ipv4/ip_sockglue.c | err=ip_acct_ctl(optname, &tmp_fw,optlen); |
optlen | 441 | net/ipv4/ip_sockglue.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 454 | net/ipv4/ip_sockglue.c | return ip_mroute_getsockopt(sk,optname,optval,optlen); |
optlen | 464 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 468 | net/ipv4/ip_sockglue.c | opt->optlen = 0; |
optlen | 470 | net/ipv4/ip_sockglue.c | memcpy(optbuf, sk->opt, sizeof(struct options)+sk->opt->optlen); |
optlen | 472 | net/ipv4/ip_sockglue.c | if (opt->optlen == 0) |
optlen | 474 | net/ipv4/ip_sockglue.c | put_fs_long(0,(unsigned long *) optlen); |
optlen | 477 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optval, opt->optlen); |
optlen | 509 | net/ipv4/ip_sockglue.c | put_fs_long(opt->optlen, (unsigned long *) optlen); |
optlen | 510 | net/ipv4/ip_sockglue.c | memcpy_tofs(optval, opt->__data, opt->optlen); |
optlen | 530 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 537 | net/ipv4/ip_sockglue.c | put_user(len,(int *) optlen); |
optlen | 544 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 547 | net/ipv4/ip_sockglue.c | put_user(sizeof(int),(int *) optlen); |
optlen | 427 | net/ipv4/ipmr.c | int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) |
optlen | 444 | net/ipv4/ipmr.c | if(optlen!=sizeof(int)) |
optlen | 461 | net/ipv4/ipmr.c | if(optlen!=sizeof(vif)) |
optlen | 549 | net/ipv4/ipmr.c | if(optlen!=sizeof(int)) |
optlen | 568 | net/ipv4/ipmr.c | int ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen) |
optlen | 578 | net/ipv4/ipmr.c | olr=get_user(optlen); |
optlen | 584 | net/ipv4/ipmr.c | put_user(sizeof(int),optlen); |
optlen | 2019 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
optlen | 2024 | net/ipv4/tcp.c | return ip_setsockopt(sk,level,optname,optval,optlen); |
optlen | 2055 | net/ipv4/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 2060 | net/ipv4/tcp.c | return ip_getsockopt(sk,level,optname,optval,optlen); |
optlen | 2073 | net/ipv4/tcp.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 2076 | net/ipv4/tcp.c | put_user(sizeof(int),(int *) optlen); |
optlen | 377 | net/ipv4/tcp_input.c | if (opt && opt->optlen) |
optlen | 379 | net/ipv4/tcp_input.c | sk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC); |
optlen | 389 | net/ipv4/tcp_input.c | kfree_s(sk->opt, sizeof(struct options)+opt->optlen); |
optlen | 1589 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 1618 | net/ipx/af_ipx.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1626 | net/ipx/af_ipx.c | char *optval, int *optlen) |
optlen | 1649 | net/ipx/af_ipx.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1654 | net/ipx/af_ipx.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1657 | net/ipx/af_ipx.c | put_fs_long(sizeof(int),(unsigned long *)optlen); |
optlen | 362 | net/netrom/af_netrom.c | char *optval, int optlen) |
optlen | 370 | net/netrom/af_netrom.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 418 | net/netrom/af_netrom.c | char *optval, int *optlen) |
optlen | 427 | net/netrom/af_netrom.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 457 | net/netrom/af_netrom.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 460 | net/netrom/af_netrom.c | put_fs_long(sizeof(int), (unsigned long *)optlen); |
optlen | 1056 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
optlen | 1066 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
optlen | 1074 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
optlen | 1086 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
optlen | 227 | net/unix/af_unix.c | static int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 232 | net/unix/af_unix.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 235 | net/unix/af_unix.c | static int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) |
optlen | 240 | net/unix/af_unix.c | return sock_getsockopt(sk,level,optname,optval,optlen); |