/Linux-v5.10/include/linux/sunrpc/ |
D | addr.h | 16 size_t rpc_ntop(const struct sockaddr *, char *, const size_t); 18 struct sockaddr *, const size_t); 19 char * rpc_sockaddr2uaddr(const struct sockaddr *, gfp_t); 21 struct sockaddr *, const size_t); 23 static inline unsigned short rpc_get_port(const struct sockaddr *sap) in rpc_get_port() 34 static inline void rpc_set_port(struct sockaddr *sap, in rpc_set_port() 50 static inline bool rpc_cmp_addr4(const struct sockaddr *sap1, in rpc_cmp_addr4() 51 const struct sockaddr *sap2) in rpc_cmp_addr4() 59 static inline bool __rpc_copy_addr4(struct sockaddr *dst, in __rpc_copy_addr4() 60 const struct sockaddr *src) in __rpc_copy_addr4() [all …]
|
D | svc_xprt.h | 18 struct sockaddr *, int, 138 int svc_port_is_privileged(struct sockaddr *sin); 145 void svc_age_temp_xprts_now(struct svc_serv *, struct sockaddr *); 152 const struct sockaddr *sa, in svc_xprt_set_local() 159 const struct sockaddr *sa, in svc_xprt_set_remote() 168 static inline unsigned short svc_addr_port(const struct sockaddr *sa) in svc_addr_port() 183 static inline size_t svc_addr_len(const struct sockaddr *sa) in svc_addr_len() 196 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port() 201 return svc_addr_port((const struct sockaddr *)&xprt->xpt_remote); in svc_xprt_remote_port() 204 static inline char *__svc_print_addr(const struct sockaddr *addr, in __svc_print_addr()
|
D | clnt.h | 121 struct sockaddr *address; 123 struct sockaddr *saddress; 180 const struct sockaddr *address, 204 size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t); 206 int rpc_localaddr(struct rpc_clnt *, struct sockaddr *, size_t); 236 const struct sockaddr *sap);
|
/Linux-v5.10/drivers/infiniband/core/ |
D | addr.c | 62 void (*callback)(int status, struct sockaddr *src_addr, 194 int rdma_addr_size(const struct sockaddr *addr) in rdma_addr_size() 211 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_in6() 219 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_kss() 245 rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in) in rdma_find_ndev_for_src_ip_rcu() 274 int rdma_translate_ip(const struct sockaddr *addr, in rdma_translate_ip() 363 const struct sockaddr *dst_in, u32 seq) in fetch_ha() 383 static int addr4_resolve(struct sockaddr *src_sock, in addr4_resolve() 384 const struct sockaddr *dst_sock, in addr4_resolve() 416 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve() [all …]
|
/Linux-v5.10/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()
|
/Linux-v5.10/include/net/ |
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); 44 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, 46 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
|
D | compat.h | 35 struct sockaddr rt_dst; /* target address */ 36 struct sockaddr rt_gateway; /* gateway addr (RTF_GATEWAY) */ 37 struct sockaddr rt_genmask; /* target network mask (IP) */ 60 struct sockaddr __user **save_addr, compat_uptr_t *ptr, 63 struct sockaddr __user **, struct iovec **);
|
/Linux-v5.10/include/uapi/linux/ |
D | if_arp.h | 117 struct sockaddr arp_pa; /* protocol address */ 118 struct sockaddr arp_ha; /* hardware address */ 120 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 125 struct sockaddr arp_pa; /* protocol address */ 126 struct sockaddr arp_ha; /* hardware address */ 128 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */
|
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 …]
|
D | route.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) */
|
D | if.h | 242 struct sockaddr ifru_addr; 243 struct sockaddr ifru_dstaddr; 244 struct sockaddr ifru_broadaddr; 245 struct sockaddr ifru_netmask; 246 struct sockaddr ifru_hwaddr;
|
/Linux-v5.10/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() 204 struct sockaddr *sap, const size_t salen) in rpc_pton6() 227 struct sockaddr *sap, const size_t salen) in rpc_pton6() 249 struct sockaddr *sap, const size_t salen) in rpc_pton() [all …]
|
/Linux-v5.10/include/linux/lockd/ |
D | lockd.h | 105 static inline struct sockaddr *nlm_addr(const struct nlm_host *host) in nlm_addr() 107 return (struct sockaddr *)&host->h_addr; in nlm_addr() 115 static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host) in nlm_srcaddr() 117 return (struct sockaddr *)&host->h_srcaddr; in nlm_srcaddr() 215 __be32 nlmclnt_grant(const struct sockaddr *addr, 225 struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap, 253 const struct sockaddr *sap, 300 int nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr); 307 static inline int __nlm_privileged_request4(const struct sockaddr *sap) in __nlm_privileged_request4() 318 static inline int __nlm_privileged_request6(const struct sockaddr *sap) in __nlm_privileged_request6() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
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 …]
|
D | sockmap_listen.c | 214 static int accept_timeout(int fd, struct sockaddr *addr, socklen_t *len, in accept_timeout() 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() 374 err = xbind(s, sockaddr(&addr), len); in test_insert_bound() 565 err = xgetsockname(s, sockaddr(&addr), &len); in test_destroy_orphan_child() 577 xconnect(c, sockaddr(&addr), len); in test_destroy_orphan_child() 599 err = xgetsockname(s, sockaddr(&addr), &len); in test_clone_after_delete() 612 xconnect(c, sockaddr(&addr), len); in test_clone_after_delete() 635 err = xgetsockname(s, sockaddr(&addr), &len); in test_accept_after_delete() [all …]
|
/Linux-v5.10/tools/perf/trace/beauty/ |
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-v5.10/include/linux/ |
D | socket.h | 32 struct sockaddr { struct 399 struct sockaddr __user *uaddr, 406 struct sockaddr __user **uaddr, 410 struct sockaddr __user **save_addr, 415 unsigned int flags, struct sockaddr __user *addr, 418 unsigned int flags, struct sockaddr __user *addr, 421 struct sockaddr __user *upeer_sockaddr, 424 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 427 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 430 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, [all …]
|
/Linux-v5.10/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 32 struct sockaddr { struct 399 struct sockaddr __user *uaddr, 406 struct sockaddr __user **uaddr, 410 struct sockaddr __user **save_addr, 415 unsigned int flags, struct sockaddr __user *addr, 418 unsigned int flags, struct sockaddr __user *addr, 421 struct sockaddr __user *upeer_sockaddr, 424 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 427 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 430 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, [all …]
|
/Linux-v5.10/tools/testing/selftests/net/ |
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()
|
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()
|
D | fin_ack_lat.c | 61 if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) in client() 75 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in client() 93 accepted = accept(sock, (struct sockaddr *)&address, in server() 134 if (bind(sock, (struct sockaddr *)&address, sizeof(address)) < 0) in main() 140 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in main()
|
/Linux-v5.10/include/rdma/ |
D | ib_addr.h | 54 int rdma_translate_ip(const struct sockaddr *addr, 74 int rdma_resolve_ip(struct sockaddr *src_addr, const struct sockaddr *dst_addr, 76 void (*callback)(int status, struct sockaddr *src_addr, 82 int rdma_addr_size(const struct sockaddr *addr); 113 static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) in rdma_ip2gid() 132 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) in rdma_gid2ip()
|
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); 339 __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr);
|
/Linux-v5.10/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);
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | network_helpers.c | 88 if (bind(fd, (const struct sockaddr *)&addr, len) < 0) { in start_server() 115 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect() 130 ret = sendto(fd, data, data_len, MSG_FASTOPEN, (struct sockaddr *)&addr, in fastopen_connect() 148 if (connect(fd, (const struct sockaddr *)addr, addrlen)) { in connect_fd_to_addr() 170 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd() 203 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_fd_to_fd()
|