/net/atm/ |
D | pvc.c | 26 static int pvc_bind(struct socket *sock,struct sockaddr *sockaddr, in pvc_bind() argument 35 addr = (struct sockaddr_atmpvc *) sockaddr; in pvc_bind() 55 static int pvc_connect(struct socket *sock,struct sockaddr *sockaddr, in pvc_connect() argument 58 return pvc_bind(sock,sockaddr,sockaddr_len); in pvc_connect() 87 static int pvc_getname(struct socket *sock,struct sockaddr *sockaddr, in pvc_getname() argument 95 addr = (struct sockaddr_atmpvc *) sockaddr; in pvc_getname()
|
D | svc.c | 91 static int svc_bind(struct socket *sock,struct sockaddr *sockaddr, in svc_bind() argument 112 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_bind() 147 static int svc_connect(struct socket *sock,struct sockaddr *sockaddr, in svc_connect() argument 182 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_connect() 416 static int svc_getname(struct socket *sock,struct sockaddr *sockaddr, in svc_getname() argument 422 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_getname() 525 static int svc_addparty(struct socket *sock, struct sockaddr *sockaddr, in svc_addparty() argument 537 (struct sockaddr_atmsvc *) sockaddr); in svc_addparty() 595 error = svc_addparty(sock, (struct sockaddr *) &sa, sizeof(sa), 0); in svc_ioctl()
|
/net/ |
D | socket.c | 188 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr *kaddr) in move_addr_to_kernel() 216 int move_addr_to_user(struct sockaddr *kaddr, int klen, void __user *uaddr, in move_addr_to_user() 1373 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() 1381 err = move_addr_to_kernel(umyaddr, addrlen, (struct sockaddr *)&address); in SYSCALL_DEFINE3() 1384 (struct sockaddr *)&address, in SYSCALL_DEFINE3() 1388 (struct sockaddr *) in SYSCALL_DEFINE3() 1435 SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE4() 1486 if (newsock->ops->getname(newsock, (struct sockaddr *)&address, in SYSCALL_DEFINE4() 1491 err = move_addr_to_user((struct sockaddr *)&address, in SYSCALL_DEFINE4() 1519 SYSCALL_DEFINE3(accept, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE3() [all …]
|
/net/sunrpc/ |
D | rpcb_clnt.c | 133 static struct rpc_clnt *rpcb_create_local(struct sockaddr *addr, in rpcb_create_local() 150 static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr, in rpcb_create() 179 static int rpcb_register_call(struct sockaddr *addr, size_t addrlen, in rpcb_register_call() 257 return rpcb_register_call((struct sockaddr *)&rpcb_inaddr_loopback, in rpcb_register() 287 return rpcb_register_call((struct sockaddr *)&rpcb_inaddr_loopback, in rpcb_register_netid4() 321 return rpcb_register_call((struct sockaddr *)&rpcb_in6addr_loopback, in rpcb_register_netid6() 369 const struct sockaddr *address, const char *netid) in rpcb_v4_register() 427 rpcb_clnt = rpcb_create(NULL, (struct sockaddr *)sin, in rpcb_getport_sync() 501 struct sockaddr *sap = (struct sockaddr *)&addr; in rpcb_getport_async()
|
D | svcsock.c | 66 struct sockaddr *, int, int); 582 struct sockaddr *sa, int salen, in svc_udp_create() 711 struct sockaddr *sin = (struct sockaddr *) &addr; in svc_tcp_accept() 769 slen = offsetof(struct sockaddr, sa_data); in svc_tcp_accept() 1005 struct sockaddr *sa, int salen, in svc_tcp_create() 1189 struct sockaddr *sin = (struct sockaddr *)&addr; in svc_addsock() 1215 struct sockaddr *sin, int len, in svc_create_socket() 1223 struct sockaddr *newsin = (struct sockaddr *)&addr; in svc_create_socket()
|
D | svc_xprt.c | 176 struct sockaddr *sap; in __svc_xpo_create() 181 sap = (struct sockaddr *)&sin; in __svc_xpo_create() 185 sap = (struct sockaddr *)&sin6; in __svc_xpo_create() 237 struct sockaddr *sin; in svc_xprt_copy_addrs() 246 sin = (struct sockaddr *)&xprt->xpt_local; in svc_xprt_copy_addrs() 506 int svc_port_is_privileged(struct sockaddr *sin) in svc_port_is_privileged()
|
D | xprtsock.c | 263 static inline struct sockaddr *xs_addr(struct rpc_xprt *xprt) in xs_addr() 265 return (struct sockaddr *) &xprt->addr; in xs_addr() 407 static int xs_send_kvec(struct socket *sock, struct sockaddr *addr, int addrlen, struct kvec *vec, … in xs_send_kvec() 464 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages() 1362 struct sockaddr *addr = xs_addr(xprt); in xs_set_port() 1412 err = kernel_bind(sock, (struct sockaddr *) &myaddr, in xs_bind4() 1445 err = kernel_bind(sock, (struct sockaddr *) &myaddr, in xs_bind6() 1612 struct sockaddr any; in xs_tcp_reuse_connection() 1970 struct sockaddr *addr = args->dstaddr; in xs_setup_udp() 2039 struct sockaddr *addr = args->dstaddr; in xs_setup_tcp()
|
/net/key/ |
D | af_key.c | 416 struct sockaddr *addr = (struct sockaddr *)(sp + 1); in verify_address_len() 502 struct sockaddr *s_addr, *d_addr; in present_and_same_family() 507 s_addr = (struct sockaddr *)(src + 1); in present_and_same_family() 508 d_addr = (struct sockaddr *)(dst + 1); in present_and_same_family() 631 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract() 652 return pfkey_sockaddr_extract((struct sockaddr *)(addr + 1), in pfkey_sadb_addr2xfrm_addr() 677 family = ((struct sockaddr *)(addr + 1))->sa_family; in pfkey_xfrm_state_lookup() 735 struct sockaddr *sa, in pfkey_sockaddr_fill() 930 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg() 947 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg() [all …]
|
/net/wireless/ |
D | wext.c | 181 .token_size = sizeof(struct sockaddr), 186 .token_size = sizeof(struct sockaddr) + 217 .token_size = sizeof(struct sockaddr) + 401 sizeof(struct sockaddr), /* IW_PRIV_TYPE_ADDR */ 1446 struct sockaddr * address = (struct sockaddr *) extra; in iw_handler_set_spy() 1498 struct sockaddr * address = (struct sockaddr *) extra; in iw_handler_get_spy() 1514 memcpy(extra + (sizeof(struct sockaddr) *spydata->spy_number), in iw_handler_get_spy()
|
/net/netfilter/ipvs/ |
D | ip_vs_sync.c | 591 return sock->ops->bind(sock, (struct sockaddr*)&sin, sizeof(sin)); in bind_mcastif_addr() 624 result = sock->ops->connect(sock, (struct sockaddr *) &mcast_addr, in make_send_sock() 625 sizeof(struct sockaddr), 0); in make_send_sock() 657 result = sock->ops->bind(sock, (struct sockaddr *) &mcast_addr, in make_receive_sock() 658 sizeof(struct sockaddr)); in make_receive_sock()
|
/net/phonet/ |
D | socket.c | 116 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind() 165 err = pn_socket_bind(sock, (struct sockaddr *)&sa, in pn_socket_autobind() 191 static int pn_socket_getname(struct socket *sock, struct sockaddr *addr, in pn_socket_getname()
|
/net/sctp/ |
D | socket.c | 98 static int sctp_bindx_add(struct sock *, struct sockaddr *, int); 99 static int sctp_bindx_rem(struct sock *, struct sockaddr *, int); 100 static int sctp_send_asconf_add_ip(struct sock *, struct sockaddr *, int); 101 static int sctp_send_asconf_del_ip(struct sock *, struct sockaddr *, int); 278 SCTP_STATIC int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len) in sctp_bind() 308 if (len < sizeof (struct sockaddr)) in sctp_sockaddr_af() 460 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add() 465 struct sockaddr *sa_addr; in sctp_bindx_add() 476 sa_addr = (struct sockaddr *)addr_buf; in sctp_bindx_add() 511 struct sockaddr *addrs, in sctp_send_asconf_add_ip() [all …]
|
/net/rxrpc/ |
D | af_rxrpc.c | 118 static int rxrpc_bind(struct socket *sock, struct sockaddr *saddr, int len) in rxrpc_bind() 220 struct sockaddr *addr, in rxrpc_name_to_transport() 282 trans = rxrpc_name_to_transport(sock, (struct sockaddr *) srx, in rxrpc_kernel_begin_call() 369 static int rxrpc_connect(struct socket *sock, struct sockaddr *addr, in rxrpc_connect()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_transport.c | 53 struct sockaddr *sa, int salen, 548 struct sockaddr *sa; in handle_connect_req() 565 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr; in handle_connect_req() 567 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in handle_connect_req() 670 struct sockaddr *sa, int salen, in svc_rdma_create() 709 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create()
|
D | xprt_rdma.h | 294 int rpcrdma_ia_open(struct rpcrdma_xprt *, struct sockaddr *, int);
|
/net/ipv4/ |
D | datagram.c | 23 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect()
|
D | af_inet.c | 461 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() 542 int inet_dgram_connect(struct socket *sock, struct sockaddr * uaddr, in inet_dgram_connect() 552 return sk->sk_prot->connect(sk, (struct sockaddr *)uaddr, addr_len); in inet_dgram_connect() 582 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, in inet_stream_connect() 695 int inet_getname(struct socket *sock, struct sockaddr *uaddr, in inet_getname()
|
/net/unix/ |
D | af_unix.c | 483 static int unix_bind(struct socket *, struct sockaddr *, int); 484 static int unix_stream_connect(struct socket *, struct sockaddr *, 488 static int unix_getname(struct socket *, struct sockaddr *, int *, int); 502 static int unix_dgram_connect(struct socket *, struct sockaddr *, 772 static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in unix_bind() 920 static int unix_dgram_connect(struct socket *sock, struct sockaddr *addr, in unix_dgram_connect() 1015 static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr, in unix_stream_connect() 1256 static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer) in unix_getname()
|
/net/rose/ |
D | rose_dev.c | 95 struct sockaddr *sa = addr; in rose_set_mac_address()
|
/net/802/ |
D | hippi.c | 165 struct sockaddr *addr = p; in hippi_mac_addr()
|
/net/ipx/ |
D | af_ipx.c | 1426 static int ipx_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ipx_bind() 1521 static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, in ipx_connect() 1552 rc = ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_connect() 1583 static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, in ipx_getname() 1725 rc = ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_sendmsg() 1781 rc = ipx_bind(sock, (struct sockaddr *)&uaddr, in ipx_recvmsg()
|
/net/netrom/ |
D | nr_dev.c | 133 struct sockaddr *sa = addr; in nr_set_mac_address()
|
/net/bridge/ |
D | br_device.c | 89 struct sockaddr *addr = p; in br_set_mac_address()
|
/net/core/ |
D | iovec.c | 39 int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address, int mode) in verify_iovec()
|
/net/packet/ |
D | af_packet.c | 368 if (msg->msg_namelen < sizeof(struct sockaddr)) in packet_sendmsg_spkt() 972 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind_spkt() 983 if (addr_len != sizeof(struct sockaddr)) in packet_bind_spkt() 995 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind() 1201 static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_getname_spkt() 1222 static int packet_getname(struct socket *sock, struct sockaddr *uaddr, in packet_getname()
|