Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 118) sorted by relevance

12345

/net/atm/
Dpvc.c26 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind() argument
36 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind()
58 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect() argument
61 return pvc_bind(sock, sockaddr, sockaddr_len); in pvc_connect()
88 static int pvc_getname(struct socket *sock, struct sockaddr *sockaddr, in pvc_getname() argument
97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname()
Dsvc.c94 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind() argument
115 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_bind()
150 static int svc_connect(struct socket *sock, struct sockaddr *sockaddr, in svc_connect() argument
185 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_connect()
419 static int svc_getname(struct socket *sock, struct sockaddr *sockaddr, in svc_getname() argument
425 addr = (struct sockaddr_atmsvc *) sockaddr; in svc_getname()
525 static int svc_addparty(struct socket *sock, struct sockaddr *sockaddr, in svc_addparty() argument
536 (struct sockaddr_atmsvc *) sockaddr); in svc_addparty()
594 error = svc_addparty(sock, (struct sockaddr *)&sa, sizeof(sa), in svc_ioctl()
/net/sunrpc/
Daddr.c27 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid()
65 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6()
97 static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, in rpc_ntop6_noscopeid()
103 static size_t rpc_ntop6(const struct sockaddr *sap, in rpc_ntop6()
111 static int rpc_ntop4(const struct sockaddr *sap, in rpc_ntop4()
128 size_t rpc_ntop(const struct sockaddr *sap, char *buf, const size_t buflen) in rpc_ntop()
142 struct sockaddr *sap, const size_t salen) in rpc_pton4()
203 struct sockaddr *sap, const size_t salen) in rpc_pton6()
226 struct sockaddr *sap, const size_t salen) in rpc_pton6()
248 struct sockaddr *sap, const size_t salen) in rpc_pton()
[all …]
Drpcb_clnt.c237 .address = (struct sockaddr *)&rpcb_localaddr_rpcbind, in rpcb_create_local_unix()
296 .address = (struct sockaddr *)&rpcb_inaddr_loopback, in rpcb_create_local_net()
360 struct sockaddr *srvaddr, size_t salen, in rpcb_create()
476 const struct sockaddr *sap, in rpcb_register_inet4()
507 const struct sockaddr *sap, in rpcb_register_inet6()
594 const struct sockaddr *address, const char *netid) in rpcb_v4_register()
681 struct sockaddr *sap = (struct sockaddr *)&addr; in rpcb_getport_async()
943 struct sockaddr *sap = (struct sockaddr *)&address; in rpcb_dec_getaddr()
Dsvcsock.c70 struct net *, struct sockaddr *,
74 struct net *, struct sockaddr *,
678 struct sockaddr *sa, int salen, in svc_udp_create()
812 struct sockaddr *sin = (struct sockaddr *) &addr; in svc_tcp_accept()
874 slen = offsetof(struct sockaddr, sa_data); in svc_tcp_accept()
1208 struct sockaddr *sa, int salen, in svc_tcp_create()
1216 struct net *, struct sockaddr *,
1222 struct sockaddr *sa, int salen, in svc_bc_tcp_create()
1445 struct sockaddr *sin = (struct sockaddr *)&addr; in svc_addsock()
1485 struct sockaddr *sin, int len, in svc_create_socket()
[all …]
Dxprtmultipath.c54 !rpc_xprt_switch_has_addr(xps, (struct sockaddr *)&xprt->addr)) in rpc_xprt_switch_add_xprt()
238 const struct sockaddr *sap) in rpc_xprt_switch_has_addr()
248 if (rpc_cmp_addr_port(sap, (struct sockaddr *)&pos->addr)) { in rpc_xprt_switch_has_addr()
Dxprtsock.c223 static inline struct sockaddr *xs_addr(struct rpc_xprt *xprt) in xs_addr()
225 return (struct sockaddr *) &xprt->addr; in xs_addr()
245 struct sockaddr *sap = xs_addr(xprt); in xs_format_common_peer_addresses()
281 struct sockaddr *sap = xs_addr(xprt); in xs_format_common_peer_ports()
325 static int xs_send_kvec(struct socket *sock, struct sockaddr *addr, int addrlen, struct kvec *vec, … in xs_send_kvec()
391 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages()
1768 if (kernel_getsockname(sock, (struct sockaddr *)&buf, &buflen) < 0) in xs_sock_getport()
1847 rpc_set_port((struct sockaddr *)&myaddr, port); in xs_bind()
1848 err = kernel_bind(sock, (struct sockaddr *)&myaddr, in xs_bind()
2763 static int xs_init_anyaddr(const int family, struct sockaddr *sap) in xs_init_anyaddr()
[all …]
Dclnt.c1182 size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) in rpc_peeraddr()
1241 static int rpc_sockname(struct net *net, struct sockaddr *sap, size_t salen, in rpc_sockname()
1242 struct sockaddr *buf, int buflen) in rpc_sockname()
1257 (struct sockaddr *)&rpc_inaddr_loopback, in rpc_sockname()
1262 (struct sockaddr *)&rpc_in6addr_loopback, in rpc_sockname()
1307 static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) in rpc_anyaddr()
1347 int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen) in rpc_localaddr()
1350 struct sockaddr *sap = (struct sockaddr *)&address; in rpc_localaddr()
2644 if (rpc_xprt_switch_has_addr(xps, (struct sockaddr *)&xprt->addr)) in rpc_clnt_setup_test_and_add_xprt()
2777 const struct sockaddr *sap) in rpc_clnt_xprt_switch_has_addr()
Dsvc_xprt.c198 struct sockaddr *sap; in __svc_xpo_create()
203 sap = (struct sockaddr *)&sin; in __svc_xpo_create()
208 sap = (struct sockaddr *)&sin6; in __svc_xpo_create()
589 int svc_port_is_privileged(struct sockaddr *sin) in svc_port_is_privileged()
1004 void svc_age_temp_xprts_now(struct svc_serv *serv, struct sockaddr *server_addr) in svc_age_temp_xprts_now()
1013 if (rpc_cmp_addr(server_addr, (struct sockaddr *) in svc_age_temp_xprts_now()
/net/wireless/
Dwext-compat.h21 struct sockaddr *ap_addr, char *extra);
24 struct sockaddr *ap_addr, char *extra);
40 struct sockaddr *ap_addr, char *extra);
43 struct sockaddr *ap_addr, char *extra);
Dwext-spy.c32 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/nfc/
Dllcp_sock.c70 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind()
79 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()
654 static int llcp_sock_connect(struct socket *sock, struct sockaddr *_addr, in llcp_sock_connect()
852 DECLARE_SOCKADDR(struct sockaddr_nfc_llcp *, sockaddr, in llcp_sock_recvmsg()
859 memset(sockaddr, 0, sizeof(*sockaddr)); in llcp_sock_recvmsg()
860 sockaddr->sa_family = AF_NFC; in llcp_sock_recvmsg()
861 sockaddr->nfc_protocol = NFC_PROTO_NFC_DEP; in llcp_sock_recvmsg()
[all …]
/net/caif/
Dcfcnfg.c254 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 strncpy(l->u.rfm.volume, s->sockaddr.u.rfm.volume, in caif_connect_req_to_link_param()
279 strncpy(l->u.utility.name, s->sockaddr.u.util.service, in caif_connect_req_to_link_param()
293 l->endpoint = s->sockaddr.u.dbg.service; in caif_connect_req_to_link_param()
294 l->chtype = s->sockaddr.u.dbg.type; in caif_connect_req_to_link_param()
Dchnl_net.c417 priv->conn_req.sockaddr.u.dgm.connection_id = UNDEF_CONNID; in ipcaif_net_setup()
430 priv->conn_req.sockaddr.u.dgm.connection_id) || in ipcaif_fill_info()
432 priv->conn_req.sockaddr.u.dgm.connection_id)) in ipcaif_fill_info()
451 conn_req->sockaddr.u.dgm.connection_id = in caif_netlink_parms()
454 conn_req->sockaddr.u.dgm.connection_id = in caif_netlink_parms()
480 if (caifdev->conn_req.sockaddr.u.dgm.connection_id == UNDEF_CONNID) { in ipcaif_newlink()
481 caifdev->conn_req.sockaddr.u.dgm.connection_id = dev->ifindex; in ipcaif_newlink()
/net/
Dsocket.c1382 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3()
1393 (struct sockaddr *)&address, in SYSCALL_DEFINE3()
1397 (struct sockaddr *) in SYSCALL_DEFINE3()
1444 SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE4()
1499 if (newsock->ops->getname(newsock, (struct sockaddr *)&address, in SYSCALL_DEFINE4()
1525 SYSCALL_DEFINE3(accept, int, fd, struct sockaddr __user *, upeer_sockaddr, in SYSCALL_DEFINE3()
1543 SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr, in SYSCALL_DEFINE3()
1558 security_socket_connect(sock, (struct sockaddr *)&address, addrlen); in SYSCALL_DEFINE3()
1562 err = sock->ops->connect(sock, (struct sockaddr *)&address, addrlen, in SYSCALL_DEFINE3()
1575 SYSCALL_DEFINE3(getsockname, int, fd, struct sockaddr __user *, usockaddr, in SYSCALL_DEFINE3()
[all …]
/net/key/
Daf_key.c69 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len,
397 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()
618 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract()
639 return pfkey_sockaddr_extract((struct sockaddr *)(addr + 1), in pfkey_sadb_addr2xfrm_addr()
664 family = ((const struct sockaddr *)(addr + 1))->sa_family; in pfkey_xfrm_state_lookup()
722 struct sockaddr *sa, in pfkey_sockaddr_fill()
920 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
[all …]
/net/ipv6/
Dip6_udp_tunnel.c39 err = kernel_bind(sock, (struct sockaddr *)&udp6_addr, in udp_sock_create6()
50 (struct sockaddr *)&udp6_addr, in udp_sock_create6()
/net/rds/
Dtcp_connect.c107 ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src)); in rds_tcp_conn_path_connect()
123 ret = sock->ops->connect(sock, (struct sockaddr *)&dest, sizeof(dest), in rds_tcp_conn_path_connect()
/net/ipv4/
Ddatagram.c23 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect()
87 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect()
Dudp_tunnel.c26 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
35 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4()
/net/sunrpc/xprtrdma/
Dtransport.c155 xprt_rdma_format_addresses4(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses4()
167 xprt_rdma_format_addresses6(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses6()
179 xprt_rdma_format_addresses(struct rpc_xprt *xprt, struct sockaddr *sap) in xprt_rdma_format_addresses()
304 struct sockaddr *sap; in xprt_setup_rdma()
335 sap = (struct sockaddr *)&cdata.addr; in xprt_setup_rdma()
Dsvc_rdma_transport.c62 struct sockaddr *sa, int salen,
96 struct sockaddr *, int, int);
117 struct sockaddr *sa, int salen, in svc_rdma_bc_create()
689 struct sockaddr *sa; in handle_connect_req()
707 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.dst_addr; in handle_connect_req()
709 sa = (struct sockaddr *)&newxprt->sc_cm_id->route.addr.src_addr; in handle_connect_req()
813 struct sockaddr *sa, int salen, in svc_rdma_create()
864 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create()
/net/ieee802154/
Dsocket.c107 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind()
118 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect()
208 static int raw_bind(struct sock *sk, struct sockaddr *_uaddr, int len) in raw_bind()
241 static int raw_connect(struct sock *sk, struct sockaddr *uaddr, in raw_connect()
498 static int dgram_bind(struct sock *sk, struct sockaddr *uaddr, int len) in dgram_bind()
574 static int dgram_connect(struct sock *sk, struct sockaddr *uaddr, in dgram_connect()
/net/sctp/
Dsocket.c94 static int sctp_bindx_add(struct sock *, struct sockaddr *, int);
95 static int sctp_bindx_rem(struct sock *, struct sockaddr *, int);
96 static int sctp_send_asconf_add_ip(struct sock *, struct sockaddr *, int);
97 static int sctp_send_asconf_del_ip(struct sock *, struct sockaddr *, int);
302 static int sctp_bind(struct sock *sk, struct sockaddr *addr, int addr_len) in sctp_bind()
332 if (len < sizeof (struct sockaddr)) in sctp_sockaddr_af()
484 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add()
489 struct sockaddr *sa_addr; in sctp_bindx_add()
535 struct sockaddr *addrs, in sctp_send_asconf_add_ip()
659 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem()
[all …]
/net/vmw_vsock/
Dvsock_addr.c66 int vsock_addr_cast(const struct sockaddr *addr, in vsock_addr_cast()

12345