tag | line | file | source code |
newsock | 92 | include/linux/net.h | int (*dup) (struct socket *newsock, struct socket *oldsock); |
newsock | 99 | include/linux/net.h | int (*accept) (struct socket *sock, struct socket *newsock, |
newsock | 737 | net/inet/af_inet.c | static int inet_dup(struct socket *newsock, struct socket *oldsock) |
newsock | 739 | net/inet/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
newsock | 1015 | net/inet/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
newsock | 1027 | net/inet/af_inet.c | if (newsock->data) |
newsock | 1029 | net/inet/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
newsock | 1030 | net/inet/af_inet.c | newsock->data=NULL; |
newsock | 1056 | net/inet/af_inet.c | newsock->data = (void *)sk2; |
newsock | 1057 | net/inet/af_inet.c | sk2->sleep = newsock->wait; |
newsock | 1058 | net/inet/af_inet.c | sk2->socket = newsock; |
newsock | 1059 | net/inet/af_inet.c | newsock->conn = NULL; |
newsock | 1073 | net/inet/af_inet.c | newsock->data = NULL; |
newsock | 1085 | net/inet/af_inet.c | newsock->data = NULL; |
newsock | 1088 | net/inet/af_inet.c | newsock->state = SS_CONNECTED; |
newsock | 1423 | net/inet/ipx.c | static int ipx_dup(struct socket *newsock,struct socket *oldsock) |
newsock | 1425 | net/inet/ipx.c | return(ipx_create(newsock,SOCK_DGRAM)); |
newsock | 1532 | net/inet/ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
newsock | 1534 | net/inet/ipx.c | if(newsock->data) |
newsock | 1535 | net/inet/ipx.c | kfree_s(newsock->data,sizeof(ipx_socket)); |
newsock | 791 | net/socket.c | struct socket *sock, *newsock; |
newsock | 809 | net/socket.c | if (!(newsock = sock_alloc())) |
newsock | 815 | net/socket.c | newsock->type = sock->type; |
newsock | 816 | net/socket.c | newsock->ops = sock->ops; |
newsock | 817 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
newsock | 819 | net/socket.c | sock_release(newsock); |
newsock | 823 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
newsock | 826 | net/socket.c | sock_release(newsock); |
newsock | 830 | net/socket.c | if ((fd = get_fd(SOCK_INODE(newsock))) < 0) |
newsock | 832 | net/socket.c | sock_release(newsock); |
newsock | 838 | net/socket.c | newsock->ops->getname(newsock, (struct sockaddr *)address, &len, 1); |
newsock | 61 | net/unix/sock.c | static int unix_proto_dup(struct socket *newsock, struct socket *oldsock); |
newsock | 68 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, |
newsock | 341 | net/unix/sock.c | static int unix_proto_dup(struct socket *newsock, struct socket *oldsock) |
newsock | 344 | net/unix/sock.c | return(unix_proto_create(newsock, upd->protocol)); |
newsock | 535 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags) |
newsock | 563 | net/unix/sock.c | newsock->conn = clientsock; |
newsock | 564 | net/unix/sock.c | clientsock->conn = newsock; |
newsock | 566 | net/unix/sock.c | newsock->state = SS_CONNECTED; |
newsock | 568 | net/unix/sock.c | UN_DATA(newsock)->peerupd = UN_DATA(clientsock); |
newsock | 569 | net/unix/sock.c | UN_DATA(newsock)->sockaddr_un = UN_DATA(sock)->sockaddr_un; |
newsock | 570 | net/unix/sock.c | UN_DATA(newsock)->sockaddr_len = UN_DATA(sock)->sockaddr_len; |