• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/x25/

Lines Matching refs:sock

25  *	2000-09-04	Henner Eisen	Set sock->state in x25_accept().
51 #include <net/sock.h>
199 static void x25_remove_socket(struct sock *sk)
211 struct sock *s;
265 static void x25_insert_socket(struct sock *sk)
279 static struct sock *x25_find_listener(struct x25_address *addr,
282 struct sock *s;
283 struct sock *next_best;
323 static struct sock *__x25_find_socket(unsigned int lci, struct x25_neigh *nb)
325 struct sock *s;
338 struct sock *x25_find_socket(unsigned int lci, struct x25_neigh *nb)
340 struct sock *s;
354 struct sock *sk;
373 static void __x25_destroy_socket(struct sock *);
380 x25_destroy_socket_from_timer((struct sock *)data);
390 static void __x25_destroy_socket(struct sock *sk)
426 void x25_destroy_socket_from_timer(struct sock *sk)
435 static void x25_destroy_socket(struct sock *sk)
449 static int x25_setsockopt(struct socket *sock, int level, int optname,
453 struct sock *sk = sock->sk;
476 static int x25_getsockopt(struct socket *sock, int level, int optname,
479 struct sock *sk = sock->sk;
505 static int x25_listen(struct socket *sock, int backlog)
507 struct sock *sk = sock->sk;
528 static struct sock *x25_alloc_socket(struct net *net)
531 struct sock *sk = sk_alloc(net, AF_X25, GFP_ATOMIC, &x25_proto);
547 static int x25_create(struct net *net, struct socket *sock, int protocol,
550 struct sock *sk;
558 if (sock->type != SOCK_SEQPACKET)
571 sock_init_data(sock, sk);
575 sock->ops = &x25_proto_ops;
607 static struct sock *x25_make_new(struct sock *osk)
609 struct sock *sk = NULL;
645 static int x25_release(struct socket *sock)
647 struct sock *sk = sock->sk;
685 static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
687 struct sock *sk = sock->sk;
716 static int x25_wait_for_connection_establishment(struct sock *sk)
745 static int x25_connect(struct socket *sock, struct sockaddr *uaddr,
748 struct sock *sk = sock->sk;
756 if (sk->sk_state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
757 sock->state = SS_CONNECTED;
762 if (sk->sk_state == TCP_CLOSE && sock->state == SS_CONNECTING) {
763 sock->state = SS_UNCONNECTED;
772 sock->state = SS_UNCONNECTED;
804 sock->state = SS_CONNECTING;
823 sock->state = SS_CONNECTED;
836 static int x25_wait_for_data(struct sock *sk, long timeout)
865 static int x25_accept(struct socket *sock, struct socket *newsock, int flags)
867 struct sock *sk = sock->sk;
868 struct sock *newsk;
904 static int x25_getname(struct socket *sock, struct sockaddr *uaddr,
908 struct sock *sk = sock->sk;
930 static unsigned int x25_datagram_poll(struct file *file, struct socket *sock,
936 rc = datagram_poll(file, sock, wait);
945 struct sock *sk;
946 struct sock *make;
1089 static int x25_sendmsg(struct kiocb *iocb, struct socket *sock,
1092 struct sock *sk = sock->sk;
1270 static int x25_recvmsg(struct kiocb *iocb, struct socket *sock,
1274 struct sock *sk = sock->sk;
1362 static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1364 struct sock *sk = sock->sk;
1651 static int compat_x25_ioctl(struct socket *sock, unsigned int cmd,
1655 struct sock *sk = sock->sk;
1662 rc = x25_ioctl(sock, cmd, (unsigned long)argp);
1725 rc = x25_ioctl(sock, cmd, (unsigned long)argp);
1770 struct sock *s;