/net/sunrpc/ |
D | addr.c | 28 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() 66 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() 98 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid() 104 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6() 112 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4() 129 size_t rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) in rpc_ntop() 143 struct sockaddr *sap, const size_t salen) in rpc_pton4() 200 struct sockaddr *sap, const size_t salen) in rpc_pton6() 223 struct sockaddr *sap, const size_t salen) in rpc_pton6() 245 struct sockaddr *sap, const size_t salen) in rpc_pton() [all …]
|
D | rpcb_clnt.c | 232 .address = (struct sockaddr *)&rpcb_localaddr_rpcbind, in rpcb_create_local_unix() 286 .address = (struct sockaddr *)&rpcb_inaddr_loopback, in rpcb_create_local_net() 345 struct sockaddr *srvaddr, size_t salen, in rpcb_create() 460 const struct sockaddr *sap, in rpcb_register_inet4() 486 const struct sockaddr *sap, in rpcb_register_inet6() 566 const struct sockaddr *address, const char *netid) in rpcb_v4_register() 656 struct sockaddr *sap = (struct sockaddr *)&addr; in rpcb_getport_async() 894 struct sockaddr *sap = (struct sockaddr *)&address; in rpcb_dec_getaddr()
|
D | svcsock.c | 75 struct net *, struct sockaddr *, 621 struct sockaddr *sa, int salen, in svc_udp_create() 735 struct sockaddr *sin = (struct sockaddr *) &addr; in svc_tcp_accept() 784 slen = offsetof(struct sockaddr, sa_data); in svc_tcp_accept() 1194 struct sockaddr *sa, int salen, in svc_tcp_create() 1372 struct sockaddr *sin = (struct sockaddr *)&addr; in svc_addsock() 1414 struct sockaddr *sin, int len, in svc_create_socket() 1422 struct sockaddr *newsin = (struct sockaddr *)&addr; in svc_create_socket()
|
D | xprtmultipath.c | 293 const struct sockaddr *sap) in __rpc_xprt_switch_has_addr() 303 if (rpc_cmp_addr_port(sap, (struct sockaddr *)&pos->addr)) { in __rpc_xprt_switch_has_addr() 313 const struct sockaddr *sap) in rpc_xprt_switch_has_addr()
|
D | clnt.c | 1296 size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) in rpc_peeraddr() 1355 static int rpc_sockname(struct net *net, struct sockaddr *sap, size_t salen, in rpc_sockname() 1356 struct sockaddr *buf) in rpc_sockname() 1371 (struct sockaddr *)&rpc_inaddr_loopback, in rpc_sockname() 1376 (struct sockaddr *)&rpc_in6addr_loopback, in rpc_sockname() 1421 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr() 1461 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr() 1464 struct sockaddr *sap = (struct sockaddr *)&address; in rpc_localaddr() 2853 if (rpc_xprt_switch_has_addr(data->xps, (struct sockaddr *)&xprt->addr)) { in rpc_clnt_test_and_add_xprt() 2897 if (rpc_xprt_switch_has_addr(xps, (struct sockaddr *)&xprt->addr)) in rpc_clnt_setup_test_and_add_xprt() [all …]
|
/net/atm/ |
D | pvc.c | 27 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind() argument 37 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind() 59 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect() argument 62 return pvc_bind(sock, sockaddr, sockaddr_len); in pvc_connect() 89 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr, in pvc_getname() argument 97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname()
|
D | svc.c | 95 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind() argument 116 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_bind() 151 static int svc_connect(struct socket *sock, struct sockaddr *sockaddr, in svc_connect() argument 186 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_connect() 421 static int svc_getname(struct socket *sock, struct sockaddr *sockaddr, in svc_getname() argument 426 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_getname() 526 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), in svc_ioctl()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_transport.c | 70 struct sockaddr *sa, int salen, 106 trace_svcrdma_qp_error(event, (struct sockaddr *)&xprt->xpt_remote); in qp_event_handler() 196 struct sockaddr *sa; in handle_connect_req() 210 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr; in handle_connect_req() 221 rpc_set_port((struct sockaddr *)&newxprt->sc_xprt.xpt_remote, 0); in handle_connect_req() 223 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in handle_connect_req() 300 struct sockaddr *sa, int salen, in svc_rdma_create() 343 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create() 376 RPC_IFDEBUG(struct sockaddr *sap); in svc_rdma_accept() 512 sap = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in svc_rdma_accept() [all …]
|
D | transport.c | 161 xprt_rdma_format_addresses4(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses4() 173 xprt_rdma_format_addresses6(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses6() 185 xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses() 316 struct sockaddr *sap; in xprt_setup_rdma() 405 struct sockaddr *sap = (struct sockaddr *)&xprt->addr; in xprt_rdma_set_port()
|
/net/wireless/ |
D | wext-compat.h | 22 struct sockaddr *ap_addr, char *extra); 25 struct sockaddr *ap_addr, char *extra); 41 struct sockaddr *ap_addr, char *extra); 44 struct sockaddr *ap_addr, char *extra);
|
D | wext-spy.c | 32 struct sockaddr * address = (struct sockaddr *) extra; in iw_handler_set_spy() 80 struct sockaddr * address = (struct sockaddr *) extra; in iw_handler_get_spy() 96 memcpy(extra + (sizeof(struct sockaddr) *spydata->spy_number), in iw_handler_get_spy()
|
/net/ |
D | socket.c | 1713 int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen) in __sys_bind() 1724 (struct sockaddr *)&address, in __sys_bind() 1728 (struct sockaddr *) in __sys_bind() 1736 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() 1774 struct sockaddr __user *upeer_sockaddr, in do_accept() 1814 (struct sockaddr *)&address, 2); in do_accept() 1833 struct sockaddr __user *upeer_sockaddr, in __sys_accept4_file() 1872 int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, in __sys_accept4() 1889 SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE4() 1895 SYSCALL_DEFINE3(accept, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE3() [all …]
|
D | compat.c | 38 struct sockaddr __user **save_addr, in __get_compat_msghdr() 90 struct sockaddr __user **save_addr, in get_compat_msghdr() 387 struct sockaddr __user *addr, in __compat_sys_recvfrom() 400 unsigned int, flags, struct sockaddr __user *, addr, in COMPAT_SYSCALL_DEFINE6()
|
/net/rds/ |
D | tcp_connect.c | 95 struct sockaddr *addr; in rds_tcp_conn_path_connect() 135 addr = (struct sockaddr *)&sin6; in rds_tcp_conn_path_connect() 141 addr = (struct sockaddr *)&sin; in rds_tcp_conn_path_connect() 158 addr = (struct sockaddr *)&sin6; in rds_tcp_conn_path_connect() 164 addr = (struct sockaddr *)&sin; in rds_tcp_conn_path_connect()
|
D | rdma_transport.c | 198 struct sockaddr *sa, in rds_rdma_listen_init_common() 259 (struct sockaddr *)&sin, in rds_rdma_listen_init() 271 (struct sockaddr *)&sin6, in rds_rdma_listen_init()
|
D | bind.c | 163 int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rds_bind() 176 if (addr_len < offsetofend(struct sockaddr, sa_family)) in rds_bind()
|
/net/caif/ |
D | cfcnfg.c | 254 l->endpoint = (s->sockaddr.u.at.type >> 2) & 0x3; in caif_connect_req_to_link_param() 255 l->chtype = s->sockaddr.u.at.type & 0x3; in caif_connect_req_to_link_param() 260 l->u.datagram.connid = s->sockaddr.u.dgm.connection_id; in caif_connect_req_to_link_param() 266 l->u.datagram.connid = s->sockaddr.u.dgm.connection_id; in caif_connect_req_to_link_param() 270 l->u.datagram.connid = s->sockaddr.u.rfm.connection_id; in caif_connect_req_to_link_param() 271 strlcpy(l->u.rfm.volume, s->sockaddr.u.rfm.volume, in caif_connect_req_to_link_param() 278 strlcpy(l->u.utility.name, s->sockaddr.u.util.service, in caif_connect_req_to_link_param() 291 l->endpoint = s->sockaddr.u.dbg.service; in caif_connect_req_to_link_param() 292 l->chtype = s->sockaddr.u.dbg.type; in caif_connect_req_to_link_param()
|
D | chnl_net.c | 395 priv->conn_req.sockaddr.u.dgm.connection_id = UNDEF_CONNID; in ipcaif_net_setup() 408 priv->conn_req.sockaddr.u.dgm.connection_id) || in ipcaif_fill_info() 410 priv->conn_req.sockaddr.u.dgm.connection_id)) in ipcaif_fill_info() 429 conn_req->sockaddr.u.dgm.connection_id = in caif_netlink_parms() 432 conn_req->sockaddr.u.dgm.connection_id = in caif_netlink_parms() 459 if (caifdev->conn_req.sockaddr.u.dgm.connection_id == UNDEF_CONNID) { in ipcaif_newlink() 460 caifdev->conn_req.sockaddr.u.dgm.connection_id = dev->ifindex; in ipcaif_newlink()
|
/net/nfc/ |
D | llcp_sock.c | 59 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind() 68 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_sock_bind() 144 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, in llcp_raw_sock_bind() 154 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_raw_sock_bind() 498 static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr, in llcp_sock_getname() 653 static int llcp_sock_connect(struct socket *sock, struct sockaddr *_addr, in llcp_sock_connect() 874 DECLARE_SOCKADDR(struct sockaddr_nfc_llcp *, sockaddr, in llcp_sock_recvmsg() 881 memset(sockaddr, 0, sizeof(*sockaddr)); in llcp_sock_recvmsg() 882 sockaddr->sa_family = AF_NFC; in llcp_sock_recvmsg() 883 sockaddr->nfc_protocol = NFC_PROTO_NFC_DEP; in llcp_sock_recvmsg() [all …]
|
/net/qrtr/ |
D | ns.c | 127 msg.msg_name = (struct sockaddr *)dest; in service_announce_new() 154 msg.msg_name = (struct sockaddr *)dest; in service_announce_del() 185 msg.msg_name = (struct sockaddr *)to; in lookup_notify() 321 msg.msg_name = (struct sockaddr *)dest; in say_hello() 405 msg.msg_name = (struct sockaddr *)&sq; in ctrl_cmd_bye() 495 msg.msg_name = (struct sockaddr *)&sq; in ctrl_cmd_del_client() 681 msg.msg_name = (struct sockaddr *)&sq; in qrtr_ns_worker() 779 ret = kernel_getsockname(qrtr_ns.sock, (struct sockaddr *)&sq); in qrtr_ns_init() 796 ret = kernel_bind(qrtr_ns.sock, (struct sockaddr *)&sq, sizeof(sq)); in qrtr_ns_init()
|
/net/key/ |
D | af_key.c | 65 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len, 379 const struct sockaddr *addr = (const struct sockaddr *)(sp + 1); in verify_address_len() 488 const struct sockaddr *s_addr, *d_addr; in present_and_same_family() 493 s_addr = (const struct sockaddr *)(src + 1); in present_and_same_family() 494 d_addr = (const struct sockaddr *)(dst + 1); in present_and_same_family() 627 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract() 648 return pfkey_sockaddr_extract((struct sockaddr *)(addr + 1), in pfkey_sadb_addr2xfrm_addr() 673 family = ((const struct sockaddr *)(addr + 1))->sa_family; in pfkey_xfrm_state_lookup() 731 struct sockaddr *sa, in pfkey_sockaddr_fill() 925 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg() [all …]
|
/net/ipv6/ |
D | ip6_udp_tunnel.c | 42 err = kernel_bind(sock, (struct sockaddr *)&udp6_addr, in udp_sock_create6() 54 (struct sockaddr *)&udp6_addr, in udp_sock_create6()
|
/net/ipv4/ |
D | datagram.c | 20 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect() 85 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect()
|
D | af_inet.c | 441 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() 466 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet_bind() 568 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, in inet_dgram_connect() 621 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, in __inet_stream_connect() 731 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, in inet_stream_connect() 777 int inet_getname(struct socket *sock, struct sockaddr *uaddr, in inet_getname() 795 BPF_CGROUP_RUN_SA_PROG(sk, (struct sockaddr *)sin, in inet_getname() 803 BPF_CGROUP_RUN_SA_PROG(sk, (struct sockaddr *)sin, in inet_getname() 1003 3 * sizeof(struct sockaddr)) || in inet_compat_routing_ioctl()
|
/net/ieee802154/ |
D | socket.c | 99 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind() 110 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect() 196 static int raw_bind(struct sock *sk, struct sockaddr *_uaddr, int len) in raw_bind() 230 static int raw_connect(struct sock *sk, struct sockaddr *uaddr, in raw_connect() 489 static int dgram_bind(struct sock *sk, struct sockaddr *uaddr, int len) in dgram_bind() 568 static int dgram_connect(struct sock *sk, struct sockaddr *uaddr, in dgram_connect()
|