/linux/include/linux/sunrpc/ |
A D | addr.h | 18 struct sockaddr *, const size_t); 21 struct sockaddr *, const size_t); 51 const struct sockaddr *sap2) in rpc_cmp_addr4() 60 const struct sockaddr *src) in __rpc_copy_addr4() 72 const struct sockaddr *sap2) in rpc_cmp_addr6() 86 const struct sockaddr *src) in __rpc_copy_addr6() 98 const struct sockaddr *sap2) in rpc_cmp_addr6() 104 const struct sockaddr *src) in __rpc_copy_addr6() 121 const struct sockaddr *sap2) in rpc_cmp_addr() 140 const struct sockaddr *sap2) in rpc_cmp_addr_port() [all …]
|
A D | svc_xprt.h | 18 struct sockaddr *, int, 139 int svc_port_is_privileged(struct sockaddr *sin); 146 void svc_age_temp_xprts_now(struct svc_serv *, struct sockaddr *); 154 const struct sockaddr *sa, in svc_xprt_set_local() 161 const struct sockaddr *sa, in svc_xprt_set_remote() 170 static inline unsigned short svc_addr_port(const struct sockaddr *sa) in svc_addr_port() 185 static inline size_t svc_addr_len(const struct sockaddr *sa) in svc_addr_len() 198 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port() 203 return svc_addr_port((const struct sockaddr *)&xprt->xpt_remote); in svc_xprt_remote_port() 206 static inline char *__svc_print_addr(const struct sockaddr *addr, in __svc_print_addr()
|
A D | clnt.h | 126 struct sockaddr *address; 128 struct sockaddr *saddress; 186 const struct sockaddr *address, 210 size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t); 212 int rpc_localaddr(struct rpc_clnt *, struct sockaddr *, size_t); 242 const struct sockaddr *sap);
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | skc_to_unix_sock.c | 13 struct sockaddr_un sockaddr; in test_skc_to_unix_sock() local 35 memset(&sockaddr, 0, sizeof(sockaddr)); in test_skc_to_unix_sock() 36 sockaddr.sun_family = AF_UNIX; in test_skc_to_unix_sock() 37 strncpy(sockaddr.sun_path, sock_path, strlen(sock_path)); in test_skc_to_unix_sock() 38 sockaddr.sun_path[0] = '\0'; in test_skc_to_unix_sock() 40 err = bind(sockfd, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); in test_skc_to_unix_sock()
|
A D | sk_assign.c | 61 start_server(const struct sockaddr *addr, socklen_t len, int type) in start_server() 85 connect_to_server(const struct sockaddr *addr, socklen_t len, int type) in connect_to_server() 113 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port() 140 (struct sockaddr *)&ss, &slen); in rcv_msg() 144 run_test(int server_fd, const struct sockaddr *addr, socklen_t len, int type) in run_test() 204 prepare_addr(struct sockaddr *addr, int family, __u16 port, bool rewrite_addr) in prepare_addr() 237 struct sockaddr *addr; 247 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \ 248 : (struct sockaddr *)&addr6, \ 292 const struct sockaddr *addr; in test_sk_assign() [all …]
|
A D | sockmap_listen.c | 267 static inline struct sockaddr *sockaddr(struct sockaddr_storage *ss) in sockaddr() function 269 return (struct sockaddr *)ss; in sockaddr() 302 err = xbind(s, sockaddr(&addr), len); in socket_loopback_reuseport() 376 err = xbind(s, sockaddr(&addr), len); in test_insert_bound() 579 xconnect(c, sockaddr(&addr), len); in test_destroy_orphan_child() 614 xconnect(c, sockaddr(&addr), len); in test_clone_after_delete() 651 err = xconnect(c, sockaddr(&addr), len); in test_accept_after_delete() 705 err = xconnect(c, sockaddr(&addr), len); in test_accept_before_delete() 831 struct sockaddr unspec = { AF_UNSPEC }; in listen_thread() 1089 err = xconnect(c, sockaddr(&addr), len); in redir_to_listening() [all …]
|
/linux/drivers/infiniband/core/ |
A D | addr.c | 386 const struct sockaddr *dst_sock, in addr4_resolve() 419 const struct sockaddr *dst_sock, in addr6_resolve() 448 const struct sockaddr *dst_sock, in addr6_resolve() 476 const struct sockaddr *dst_in, in copy_src_l2_addr() 505 const struct sockaddr *dst_in, in rdma_set_src_addr_rcu() 554 const struct sockaddr *dst_in, in addr_resolve() 625 struct sockaddr *src_in, *dst_in; in process_one_req() 664 int rdma_resolve_ip(struct sockaddr *src_addr, const struct sockaddr *dst_addr, in rdma_resolve_ip() 670 struct sockaddr *src_in, *dst_in; in rdma_resolve_ip() 726 struct sockaddr _sockaddr; in roce_resolve_route_from_path() [all …]
|
/linux/net/atm/ |
A 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()
|
/linux/net/sunrpc/ |
A 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() 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() 265 char *rpc_sockaddr2uaddr(const struct sockaddr *sap, gfp_t gfp_flags) in rpc_sockaddr2uaddr() [all …]
|
/linux/include/net/ |
A D | inet_common.h | 16 struct sockaddr; 20 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, 22 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, 24 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, 37 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len); 46 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, 48 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
|
A D | compat.h | 33 struct sockaddr rt_dst; /* target address */ 34 struct sockaddr rt_gateway; /* gateway addr (RTF_GATEWAY) */ 35 struct sockaddr rt_genmask; /* target network mask (IP) */ 50 struct sockaddr __user **save_addr, compat_uptr_t *ptr, 53 struct sockaddr __user **, struct iovec **);
|
/linux/include/linux/lockd/ |
A D | lockd.h | 107 static inline struct sockaddr *nlm_addr(const struct nlm_host *host) in nlm_addr() 109 return (struct sockaddr *)&host->h_addr; in nlm_addr() 117 static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host) in nlm_srcaddr() 119 return (struct sockaddr *)&host->h_srcaddr; in nlm_srcaddr() 218 __be32 nlmclnt_grant(const struct sockaddr *addr, 228 struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap, 256 const struct sockaddr *sap, 304 int nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr); 312 static inline int __nlm_privileged_request4(const struct sockaddr *sap) in __nlm_privileged_request4() 323 static inline int __nlm_privileged_request6(const struct sockaddr *sap) in __nlm_privileged_request6() [all …]
|
/linux/include/uapi/linux/ |
A D | if_arp.h | 118 struct sockaddr arp_pa; /* protocol address */ 119 struct sockaddr arp_ha; /* hardware address */ 121 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 126 struct sockaddr arp_pa; /* protocol address */ 127 struct sockaddr arp_ha; /* hardware address */ 129 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */
|
A D | wireless.h | 751 struct sockaddr addr; /* Source address (hw/mac) */ 776 struct sockaddr bssid; /* ff:ff:ff:ff:ff:ff for broadcast BSSID or 833 struct sockaddr addr; /* ff:ff:ff:ff:ff:ff for broadcast/multicast 845 struct sockaddr addr; 857 struct sockaddr bssid; 864 struct sockaddr src_addr; 874 struct sockaddr bssid; 926 struct sockaddr ap_addr; /* Access point address */ 927 struct sockaddr addr; /* Destination address (hw/mac) */ 1093 #define IW_EV_ADDR_LEN (IW_EV_LCP_LEN + sizeof(struct sockaddr)) [all …]
|
/linux/tools/perf/trace/beauty/include/linux/ |
A D | socket.h | 32 struct sockaddr { struct 405 struct sockaddr __user *uaddr, 412 struct sockaddr __user **uaddr, 416 struct sockaddr __user **save_addr, 421 unsigned int flags, struct sockaddr __user *addr, 424 unsigned int flags, struct sockaddr __user *addr, 427 struct sockaddr __user *upeer_sockaddr, 431 struct sockaddr __user *upeer_sockaddr, 439 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 442 extern int __sys_getsockname(int fd, struct sockaddr __user *usockaddr, [all …]
|
/linux/include/linux/ |
A D | socket.h | 32 struct sockaddr { struct 405 struct sockaddr __user *uaddr, 412 struct sockaddr __user **uaddr, 416 struct sockaddr __user **save_addr, 421 unsigned int flags, struct sockaddr __user *addr, 424 unsigned int flags, struct sockaddr __user *addr, 427 struct sockaddr __user *upeer_sockaddr, 431 struct sockaddr __user *upeer_sockaddr, 439 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 442 extern int __sys_getsockname(int fd, struct sockaddr __user *usockaddr, [all …]
|
A D | net.h | 130 struct sockaddr; 142 struct sockaddr *myaddr, 145 struct sockaddr *vaddr, 152 struct sockaddr *addr, 312 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen); 315 int kernel_connect(struct socket *sock, struct sockaddr *addr, int addrlen, 317 int kernel_getsockname(struct socket *sock, struct sockaddr *addr); 318 int kernel_getpeername(struct socket *sock, struct sockaddr *addr);
|
/linux/tools/testing/selftests/bpf/ |
A D | network_helpers.c | 69 static int __start_server(int type, const struct sockaddr *addr, in __start_server() 118 return __start_server(type, (struct sockaddr *)&addr, in start_server() 140 fds[0] = __start_server(type, (struct sockaddr *)&addr, addrlen, in start_reuseport_server() 146 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) in start_reuseport_server() 150 fds[nr_fds] = __start_server(type, (struct sockaddr *)&addr, in start_reuseport_server() 180 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect() 195 ret = sendto(fd, data, data_len, MSG_FASTOPEN, (struct sockaddr *)&addr, in fastopen_connect() 216 ret = connect(fd, (const struct sockaddr *)addr, addrlen); in connect_fd_to_addr() 255 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd_opts() 302 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_fd_to_fd()
|
/linux/tools/perf/trace/beauty/ |
A D | sockaddr.c | 13 static size_t af_inet__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet__scnprintf() 21 static size_t af_inet6__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_inet6__scnprintf() 36 static size_t af_local__scnprintf(struct sockaddr *sa, char *bf, size_t size) in af_local__scnprintf() 42 static size_t (*af_scnprintfs[])(struct sockaddr *sa, char *bf, size_t size) = { 50 struct sockaddr *sa = (struct sockaddr *)arg->augmented.args; in syscall_arg__scnprintf_augmented_sockaddr()
|
/linux/include/rdma/ |
A D | ib_addr.h | 55 int rdma_translate_ip(const struct sockaddr *addr, 75 int rdma_resolve_ip(struct sockaddr *src_addr, const struct sockaddr *dst_addr, 77 void (*callback)(int status, struct sockaddr *src_addr, 83 int rdma_addr_size(const struct sockaddr *addr); 114 static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) in rdma_ip2gid() 133 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) in rdma_gid2ip()
|
A D | rdma_cm.h | 163 int rdma_bind_addr(struct rdma_cm_id *id, struct sockaddr *addr); 175 int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, 176 const struct sockaddr *dst_addr, 290 int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr, 297 void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr); 341 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr);
|
/linux/tools/testing/selftests/net/ |
A D | reuseport_addr_any.c | 39 struct sockaddr *addr; in build_rcv_fd() 53 addr = (struct sockaddr *)&addr4; in build_rcv_fd() 63 addr = (struct sockaddr *)&addr6; in build_rcv_fd() 107 struct sockaddr *saddr, *daddr; in connect_and_send() 122 saddr = (struct sockaddr *)&saddr4; in connect_and_send() 123 daddr = (struct sockaddr *)&daddr4; in connect_and_send() 135 saddr = (struct sockaddr *)&saddr6; in connect_and_send() 136 daddr = (struct sockaddr *)&daddr6; in connect_and_send()
|
A D | tcp_inq.c | 36 static void setup_loopback_addr(int family, struct sockaddr_storage *sockaddr) in setup_loopback_addr() argument 38 struct sockaddr_in6 *addr6 = (void *) sockaddr; in setup_loopback_addr() 39 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_loopback_addr() 71 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server() 131 if (bind(server_fd, (const struct sockaddr *)&listen_addr, in main() 144 if (connect(fd, (const struct sockaddr *)&addr, addr_len) == -1) in main()
|
A D | tcp_fastopen_backup_key.c | 95 struct sockaddr *addr; in build_rcv_fd() 106 addr = (struct sockaddr *)&addr4; in build_rcv_fd() 113 addr = (struct sockaddr *)&addr6; in build_rcv_fd() 149 struct sockaddr *saddr, *daddr; in connect_and_send() 165 saddr = (struct sockaddr *)&saddr4; in connect_and_send() 166 daddr = (struct sockaddr *)&daddr4; in connect_and_send() 178 saddr = (struct sockaddr *)&saddr6; in connect_and_send() 179 daddr = (struct sockaddr *)&daddr6; in connect_and_send()
|
/linux/net/wireless/ |
A 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);
|