tag | line | file | source code |
optlen | 72 | include/linux/ip.h | unsigned char optlen; |
optlen | 113 | include/linux/net.h | char *optval, int optlen); |
optlen | 115 | 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 | 362 | include/net/sock.h | char *optval, int optlen); |
optlen | 472 | include/net/sock.h | int optlen); |
optlen | 476 | include/net/sock.h | int *optlen); |
optlen | 1016 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 1042 | net/appletalk/ddp.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1055 | net/appletalk/ddp.c | char *optval, int *optlen) |
optlen | 1075 | net/appletalk/ddp.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1080 | net/appletalk/ddp.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1083 | net/appletalk/ddp.c | put_user(sizeof(int),optlen); |
optlen | 859 | net/ax25/af_ax25.c | char *optval, int optlen) |
optlen | 867 | net/ax25/af_ax25.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 946 | net/ax25/af_ax25.c | char *optval, int *optlen) |
optlen | 955 | net/ax25/af_ax25.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 1005 | net/ax25/af_ax25.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 1008 | net/ax25/af_ax25.c | put_user(sizeof(int), optlen); |
optlen | 122 | net/core/sock.c | char *optval, int optlen) |
optlen | 236 | net/core/sock.c | char *optval, int *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(ling),(unsigned long *)optlen); |
optlen | 314 | net/core/sock.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 317 | net/core/sock.c | put_fs_long(sizeof(int),(unsigned long *) optlen); |
optlen | 458 | net/ipv4/af_inet.c | char *optval, int optlen) |
optlen | 462 | net/ipv4/af_inet.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 466 | net/ipv4/af_inet.c | return sk->prot->setsockopt(sk,level,optname,optval,optlen); |
optlen | 474 | net/ipv4/af_inet.c | char *optval, int *optlen) |
optlen | 478 | net/ipv4/af_inet.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 482 | net/ipv4/af_inet.c | return sk->prot->getsockopt(sk,level,optname,optval,optlen); |
optlen | 361 | 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 | 293 | net/ipv4/ip_output.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr) + opt->optlen); |
optlen | 307 | net/ipv4/ip_output.c | if (!opt || !opt->optlen) |
optlen | 309 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 644 | net/ipv4/ip_output.c | length += opt->optlen; |
optlen | 699 | net/ipv4/ip_output.c | iph->ihl += opt->optlen>>2; |
optlen | 732 | net/ipv4/ip_output.c | length -= opt->optlen; |
optlen | 733 | net/ipv4/ip_output.c | fragheaderlen = dev->hard_header_len + sizeof(struct iphdr) + opt->optlen; |
optlen | 734 | net/ipv4/ip_output.c | maxfraglen = ((dev->mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; |
optlen | 875 | 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 | 392 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 394 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 397 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw,optval,optlen); |
optlen | 398 | net/ipv4/ip_sockglue.c | err=ip_fw_ctl(optname, &tmp_fw,optlen); |
optlen | 410 | net/ipv4/ip_sockglue.c | if(optlen>sizeof(tmp_fw) || optlen<1) |
optlen | 412 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_READ,optval,optlen); |
optlen | 415 | net/ipv4/ip_sockglue.c | memcpy_fromfs(&tmp_fw, optval,optlen); |
optlen | 416 | net/ipv4/ip_sockglue.c | err=ip_acct_ctl(optname, &tmp_fw,optlen); |
optlen | 430 | net/ipv4/ip_sockglue.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 443 | net/ipv4/ip_sockglue.c | return ip_mroute_getsockopt(sk,optname,optval,optlen); |
optlen | 453 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 457 | net/ipv4/ip_sockglue.c | opt->optlen = 0; |
optlen | 459 | net/ipv4/ip_sockglue.c | memcpy(optbuf, sk->opt, sizeof(struct options)+sk->opt->optlen); |
optlen | 461 | net/ipv4/ip_sockglue.c | if (opt->optlen == 0) |
optlen | 463 | net/ipv4/ip_sockglue.c | put_fs_long(0,(unsigned long *) optlen); |
optlen | 466 | net/ipv4/ip_sockglue.c | err = verify_area(VERIFY_WRITE, optval, opt->optlen); |
optlen | 498 | net/ipv4/ip_sockglue.c | put_fs_long(opt->optlen, (unsigned long *) optlen); |
optlen | 499 | net/ipv4/ip_sockglue.c | memcpy_tofs(optval, opt->__data, opt->optlen); |
optlen | 519 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 526 | net/ipv4/ip_sockglue.c | put_user(len,(int *) optlen); |
optlen | 533 | net/ipv4/ip_sockglue.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 536 | 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 | 2073 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
optlen | 2078 | net/ipv4/tcp.c | return ip_setsockopt(sk,level,optname,optval,optlen); |
optlen | 2109 | net/ipv4/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
optlen | 2114 | net/ipv4/tcp.c | return ip_getsockopt(sk,level,optname,optval,optlen); |
optlen | 2127 | net/ipv4/tcp.c | err=verify_area(VERIFY_WRITE, optlen, sizeof(int)); |
optlen | 2130 | net/ipv4/tcp.c | put_user(sizeof(int),(int *) optlen); |
optlen | 376 | net/ipv4/tcp_input.c | if (opt && opt->optlen) |
optlen | 378 | net/ipv4/tcp_input.c | sk->opt = (struct options*)kmalloc(sizeof(struct options)+opt->optlen, GFP_ATOMIC); |
optlen | 388 | net/ipv4/tcp_input.c | kfree_s(sk->opt, sizeof(struct options)+opt->optlen); |
optlen | 1507 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
optlen | 1536 | net/ipx/af_ipx.c | return sock_setsockopt(sk,level,optname,optval,optlen); |
optlen | 1544 | net/ipx/af_ipx.c | char *optval, int *optlen) |
optlen | 1567 | net/ipx/af_ipx.c | return sock_getsockopt(sk,level,optname,optval,optlen); |
optlen | 1572 | net/ipx/af_ipx.c | err=verify_area(VERIFY_WRITE,optlen,sizeof(int)); |
optlen | 1575 | net/ipx/af_ipx.c | put_fs_long(sizeof(int),(unsigned long *)optlen); |
optlen | 286 | net/netrom/af_netrom.c | char *optval, int optlen) |
optlen | 294 | net/netrom/af_netrom.c | return sock_setsockopt(sk, level, optname, optval, optlen); |
optlen | 336 | net/netrom/af_netrom.c | char *optval, int *optlen) |
optlen | 345 | net/netrom/af_netrom.c | return sock_getsockopt(sk, level, optname, optval, optlen); |
optlen | 371 | net/netrom/af_netrom.c | if ((err = verify_area(VERIFY_WRITE, optlen, sizeof(int))) != 0) |
optlen | 374 | net/netrom/af_netrom.c | put_fs_long(sizeof(int), (unsigned long *)optlen); |
optlen | 1052 | net/socket.c | asmlinkage int sys_setsockopt(int fd, int level, int optname, char *optval, int optlen) |
optlen | 1062 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
optlen | 1070 | net/socket.c | asmlinkage int sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen) |
optlen | 1082 | 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); |