Lines Matching refs:sock
114 static void ipx_remove_socket(struct sock *sk) in ipx_remove_socket()
131 static void ipx_destroy_socket(struct sock *sk) in ipx_destroy_socket()
201 static void ipxitf_insert_socket(struct ipx_interface *intrfc, struct sock *sk) in ipxitf_insert_socket()
212 static struct sock *__ipxitf_find_socket(struct ipx_interface *intrfc, in __ipxitf_find_socket()
215 struct sock *s; in __ipxitf_find_socket()
226 static struct sock *ipxitf_find_socket(struct ipx_interface *intrfc, in ipxitf_find_socket()
229 struct sock *s; in ipxitf_find_socket()
241 static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc, in ipxitf_find_internal_socket()
245 struct sock *s; in ipxitf_find_internal_socket()
267 struct sock *s; in __ipxitf_down()
351 static void ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb) in ipxitf_def_skb_handler() argument
353 if (sock_queue_rcv_skb(sock, skb) < 0) in ipxitf_def_skb_handler()
370 struct sock *s; in ipxitf_demux_socket()
378 if (ipxs->port == ipx->ipx_dest.sock && in ipxitf_demux_socket()
411 static struct sock *ncp_connection_hack(struct ipx_interface *intrfc, in ncp_connection_hack()
421 struct sock *sk = NULL; in ncp_connection_hack()
451 struct sock *sock1 = NULL, *sock2 = NULL; in ipxitf_demux_socket()
455 if (intrfc == ipx_primary_net && ntohs(ipx->ipx_dest.sock) == 0x451) in ipxitf_demux_socket()
459 sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); in ipxitf_demux_socket()
470 const int dsock = ntohs(ipx->ipx_dest.sock); in ipxitf_demux_socket()
478 ipx->ipx_dest.sock); in ipxitf_demux_socket()
1266 static int ipx_setsockopt(struct socket *sock, int level, int optname, in ipx_setsockopt() argument
1269 struct sock *sk = sock->sk; in ipx_setsockopt()
1292 static int ipx_getsockopt(struct socket *sock, int level, int optname, in ipx_getsockopt() argument
1295 struct sock *sk = sock->sk; in ipx_getsockopt()
1331 static int ipx_create(struct net *net, struct socket *sock, int protocol, in ipx_create() argument
1335 struct sock *sk; in ipx_create()
1346 if (sock->type != SOCK_DGRAM) in ipx_create()
1355 sock_init_data(sock, sk); in ipx_create()
1357 sock->ops = &ipx_dgram_ops; in ipx_create()
1363 static int ipx_release(struct socket *sock) in ipx_release() argument
1365 struct sock *sk = sock->sk; in ipx_release()
1376 sock->sk = NULL; in ipx_release()
1408 static int __ipx_bind(struct socket *sock, in __ipx_bind() argument
1411 struct sock *sk = sock->sk; in __ipx_bind()
1504 static int ipx_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ipx_bind() argument
1506 struct sock *sk = sock->sk; in ipx_bind()
1510 rc = __ipx_bind(sock, uaddr, addr_len); in ipx_bind()
1516 static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, in ipx_connect() argument
1519 struct sock *sk = sock->sk; in ipx_connect()
1526 sock->state = SS_UNCONNECTED; in ipx_connect()
1548 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_connect()
1562 ipxs->dest_addr.sock = addr->sipx_port; in ipx_connect()
1566 if (sock->type == SOCK_DGRAM) { in ipx_connect()
1567 sock->state = SS_CONNECTED; in ipx_connect()
1580 static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, in ipx_getname() argument
1585 struct sock *sk = sock->sk; in ipx_getname()
1599 sipx.sipx_port = addr->sock; in ipx_getname()
1691 static int ipx_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) in ipx_sendmsg() argument
1693 struct sock *sk = sock->sk; in ipx_sendmsg()
1724 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_sendmsg()
1742 usipx->sipx_port = ipxs->dest_addr.sock; in ipx_sendmsg()
1756 static int ipx_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, in ipx_recvmsg() argument
1759 struct sock *sk = sock->sk; in ipx_recvmsg()
1782 rc = __ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_recvmsg()
1817 sipx->sipx_port = ipx->ipx_source.sock; in ipx_recvmsg()
1835 static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in ipx_ioctl() argument
1839 struct sock *sk = sock->sk; in ipx_ioctl()
1910 static int ipx_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) in ipx_compat_ioctl() argument
1923 return ipx_ioctl(sock, cmd, arg); in ipx_compat_ioctl()
1930 static int ipx_shutdown(struct socket *sock, int mode) in ipx_shutdown() argument
1932 struct sock *sk = sock->sk; in ipx_shutdown()