tag | line | file | source code |
optlen | 72 | include/linux/ip.h | unsigned char optlen; |
optlen | 112 | include/linux/net.h | char *optval, int optlen); |
optlen | 114 | include/linux/net.h | char *optval, int *optlen); |
optlen | 150 | include/net/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
optlen | 151 | include/net/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
optlen | 299 | include/net/sock.h | char *optval, int optlen); |
optlen | 367 | include/net/sock.h | int optlen); |
optlen | 371 | include/net/sock.h | int *optlen); |
optlen | 966 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 992 | net/appletalk/ddp.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1005 | net/appletalk/ddp.c | char *optval, int *optlen) |
optlen | 1025 | net/appletalk/ddp.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1030 | net/appletalk/ddp.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1033 | net/appletalk/ddp.c | put_user(sizeof(int),optlen); |
optlen | 697 | net/ax25/af_ax25.c | char *optval, int optlen) |
optlen | 705 | net/ax25/af_ax25.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 772 | net/ax25/af_ax25.c | char *optval, int *optlen) |
optlen | 781 | net/ax25/af_ax25.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 823 | net/ax25/af_ax25.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 826 | net/ax25/af_ax25.c | put_user(sizeof(int), optlen); |
optlen | 120 | net/core/sock.c | char *optval, int optlen) |
optlen | 221 | net/core/sock.c | char *optval, int *optlen) |
optlen | 282 | net/core/sock.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 285 | net/core/sock.c | put_fs_long(sizeof(ling),(unsigned long *)optlen); |
optlen | 298 | net/core/sock.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 301 | net/core/sock.c | put_fs_long(sizeof(int),(unsigned long *) optlen); |
optlen | 463 | net/ipv4/af_inet.c | char *optval, int optlen) |
optlen | 467 | net/ipv4/af_inet.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 471 | net/ipv4/af_inet.c | return sk->prot->setsockopt(sk,level,optname,optval,optlen); |
optlen | 479 | net/ipv4/af_inet.c | char *optval, int *optlen) |
optlen | 483 | net/ipv4/af_inet.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 487 | net/ipv4/af_inet.c | return sk->prot->getsockopt(sk,level,optname,optval,optlen); |
optlen | 342 | 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 (l<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 (l<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 | 292 | net/ipv4/ip_output.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen); |
optlen | 306 | net/ipv4/ip_output.c | if (!opt || !opt->optlen) |
optlen | 308 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 643 | net/ipv4/ip_output.c | length += opt->optlen; |
optlen | 697 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 730 | net/ipv4/ip_output.c | length -= opt->optlen; |
optlen | 731 | net/ipv4/ip_output.c | fragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen; |
optlen | 732 | net/ipv4/ip_output.c | maxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; |
optlen | 873 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 111 | net/ipv4/ip_sockglue.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
optlen | 137 | net/ipv4/ip_sockglue.c | return ip_mroute_setsockopt(sk,optname,optval,optlen); |
optlen | 147 | net/ipv4/ip_sockglue.c | if (optlen > 40 || optlen < 0) |
optlen | 149 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_READ, optval, optlen); |
optlen | 152 | net/ipv4/ip_sockglue.c | opt = kmalloc(sizeof(struct options)+((optlen+3)&~3), GFP_KERNEL); |
optlen | 156 | net/ipv4/ip_sockglue.c | if (optlen) |
optlen | 157 | net/ipv4/ip_sockglue.c | memcpy_fromfs(opt->__data, optval, optlen); |
optlen | 158 | net/ipv4/ip_sockglue.c | while (optlen & 3) |
optlen | 159 | net/ipv4/ip_sockglue.c | opt->__data[optlen++] = IPOPT_END; |
optlen | 160 | net/ipv4/ip_sockglue.c | opt->optlen = optlen; |
optlen | 163 | net/ipv4/ip_sockglue.c | if (optlen && ip_options_compile(opt, NULL)) |
optlen | 165 | net/ipv4/ip_sockglue.c | kfree_s(opt, sizeof(struct options) + optlen); |
optlen | 177 | net/ipv4/ip_sockglue.c | kfree_s(old_opt, sizeof(struct optlen) + old_opt->optlen); |
optlen | 383 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 385 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 388 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw,optval,optlen); |
optlen | 389 | net/ipv4/ip_sockglue.c | err=ip_fw_ctl(optname, &tmp_fw,optlen); |
optlen | 400 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 402 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 405 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw, optval,optlen); |
optlen | 406 | net/ipv4/ip_sockglue.c | err=ip_acct_ctl(optname, &tmp_fw,optlen); |
optlen | 420 | net/ipv4/ip_sockglue.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 433 | net/ipv4/ip_sockglue.c | return ip_mroute_getsockopt(sk,optname,optval,optlen); |
optlen | 443 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 447 | net/ipv4/ip_sockglue.c | opt->optlen = 0; |
optlen | 449 | net/ipv4/ip_sockglue.c | memcpy(optbuf, sk->opt, sizeof(struct options)+sk->opt->optlen); |
optlen | 451 | net/ipv4/ip_sockglue.c | if (opt->optlen == 0) |
optlen | 453 | net/ipv4/ip_sockglue.c | put_fs_long(0,(unsigned long *) optlen); |
optlen | 456 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optval, opt->optlen); |
optlen | 488 | net/ipv4/ip_sockglue.c | put_fs_long(opt->optlen, (unsigned long *) optlen); |
optlen | 489 | net/ipv4/ip_sockglue.c | memcpy_tofs(optval, opt->__data, opt->optlen); |
optlen | 509 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 516 | net/ipv4/ip_sockglue.c | put_user(len,(int *) optlen); |
optlen | 523 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 526 | net/ipv4/ip_sockglue.c | put_user(sizeof(int),(int *) optlen); |
optlen | 426 | net/ipv4/ipmr.c | int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) |
optlen | 443 | net/ipv4/ipmr.c | if(optlen!=sizeof(int)) |
optlen | 460 | net/ipv4/ipmr.c | if(optlen!=sizeof(vif)) |
optlen | 548 | net/ipv4/ipmr.c | if(optlen!=sizeof(int)) |
optlen | 567 | net/ipv4/ipmr.c | int ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen) |
optlen | 577 | net/ipv4/ipmr.c | olr=get_user(optlen); |
optlen | 583 | net/ipv4/ipmr.c | put_user(sizeof(int),optlen); |
optlen | 2982 | net/ipv4/tcp.c | if (opt && opt->optlen) { |
optlen | 2983 | net/ipv4/tcp.c | sk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC); |
optlen | 2991 | net/ipv4/tcp.c | kfree_s(sk->opt, sizeof(struct options)+opt->optlen); |
optlen | 5452 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
optlen | 5457 | net/ipv4/tcp.c | return ip_setsockopt(sk,level,optname,optval,optlen); |
optlen | 5488 | net/ipv4/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 5493 | net/ipv4/tcp.c | return ip_getsockopt(sk,level,optname,optval,optlen); |
optlen | 5506 | net/ipv4/tcp.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 5509 | net/ipv4/tcp.c | put_user(sizeof(int),(int *) optlen); |
optlen | 1364 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 1393 | net/ipx/af_ipx.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1401 | net/ipx/af_ipx.c | char *optval, int *optlen) |
optlen | 1424 | net/ipx/af_ipx.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1429 | net/ipx/af_ipx.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1432 | net/ipx/af_ipx.c | put_fs_long(sizeof(int),(unsigned long *)optlen); |
optlen | 297 | net/netrom/af_netrom.c | char *optval, int optlen) |
optlen | 305 | net/netrom/af_netrom.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 347 | net/netrom/af_netrom.c | char *optval, int *optlen) |
optlen | 356 | net/netrom/af_netrom.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 382 | net/netrom/af_netrom.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 385 | net/netrom/af_netrom.c | put_fs_long(sizeof(int), (unsigned long *)optlen); |
optlen | 1022 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
optlen | 1032 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
optlen | 1040 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
optlen | 1052 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
optlen | 218 | net/unix/af_unix.c | static int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 223 | net/unix/af_unix.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 226 | net/unix/af_unix.c | static int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) |
optlen | 231 | net/unix/af_unix.c | return sock_getsockopt(sk,level,optname,optval,optlen); |