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

Lines Matching defs:sock

55 #include <net/sock.h>
91 extern int ipxrtr_route_packet(struct sock *sk, struct sockaddr_ipx *usipx,
130 static void ipx_remove_socket(struct sock *sk)
147 static void ipx_destroy_socket(struct sock *sk)
218 static void ipxitf_insert_socket(struct ipx_interface *intrfc, struct sock *sk)
229 static struct sock *__ipxitf_find_socket(struct ipx_interface *intrfc,
232 struct sock *s;
244 static struct sock *ipxitf_find_socket(struct ipx_interface *intrfc,
247 struct sock *s;
259 static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc,
263 struct sock *s;
286 struct sock *s;
370 static void ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
372 if (sock_queue_rcv_skb(sock, skb) < 0)
389 struct sock *s;
398 if (ipxs->port == ipx->ipx_dest.sock &&
431 static struct sock *ncp_connection_hack(struct ipx_interface *intrfc,
441 struct sock *sk = NULL;
472 struct sock *sock1 = NULL, *sock2 = NULL;
476 if (intrfc == ipx_primary_net && ntohs(ipx->ipx_dest.sock) == 0x451)
480 sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
491 const int dsock = ntohs(ipx->ipx_dest.sock);
499 ipx->ipx_dest.sock);
1295 static int ipx_setsockopt(struct socket *sock, int level, int optname,
1298 struct sock *sk = sock->sk;
1321 static int ipx_getsockopt(struct socket *sock, int level, int optname,
1324 struct sock *sk = sock->sk;
1360 static int ipx_create(struct net *net, struct socket *sock, int protocol,
1364 struct sock *sk;
1375 if (sock->type != SOCK_DGRAM)
1384 sock_init_data(sock, sk);
1386 sock->ops = &ipx_dgram_ops;
1392 static int ipx_release(struct socket *sock)
1394 struct sock *sk = sock->sk;
1404 sock->sk = NULL;
1435 static int __ipx_bind(struct socket *sock,
1438 struct sock *sk = sock->sk;
1531 static int ipx_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
1536 rc = __ipx_bind(sock, uaddr, addr_len);
1542 static int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
1545 struct sock *sk = sock->sk;
1552 sock->state = SS_UNCONNECTED;
1574 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr,
1588 ipxs->dest_addr.sock = addr->sipx_port;
1592 if (sock->type == SOCK_DGRAM) {
1593 sock->state = SS_CONNECTED;
1606 static int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
1611 struct sock *sk = sock->sk;
1625 sipx.sipx_port = addr->sock;
1656 static unsigned int ipx_datagram_poll(struct file *file, struct socket *sock,
1662 rc = datagram_poll(file, sock, wait);
1729 static int ipx_sendmsg(struct kiocb *iocb, struct socket *sock,
1732 struct sock *sk = sock->sk;
1763 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr,
1781 usipx->sipx_port = ipxs->dest_addr.sock;
1796 static int ipx_recvmsg(struct kiocb *iocb, struct socket *sock,
1799 struct sock *sk = sock->sk;
1821 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr,
1854 sipx->sipx_port = ipx->ipx_source.sock;
1870 static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1874 struct sock *sk = sock->sk;
1947 static int ipx_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1960 return ipx_ioctl(sock, cmd, arg);