/linux-6.12.1/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, 139 struct net *net, struct sockaddr *sap, 151 int svc_port_is_privileged(struct sockaddr *sin); 154 struct net *net, const struct sockaddr *sa); 160 void svc_age_temp_xprts_now(struct svc_serv *, struct sockaddr *); 168 const struct sockaddr *sa, in svc_xprt_set_local() 175 const struct sockaddr *sa, in svc_xprt_set_remote() 184 static inline unsigned short svc_addr_port(const struct sockaddr *sa) in svc_addr_port() 199 static inline size_t svc_addr_len(const struct sockaddr *sa) in svc_addr_len() 212 return svc_addr_port((const struct sockaddr *)&xprt->xpt_local); in svc_xprt_local_port() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
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()
|
D | sk_assign.c | 82 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port() 110 run_test(int server_fd, const struct sockaddr *addr, socklen_t len, int type) in run_test() 170 prepare_addr(struct sockaddr *addr, int family, __u16 port, bool rewrite_addr) in prepare_addr() 203 struct sockaddr *addr; 213 .addr = (FAMILY == AF_INET) ? (struct sockaddr *)&addr4 \ 214 : (struct sockaddr *)&addr6, \ 258 const struct sockaddr *addr; in test_sk_assign() 265 addr = (const struct sockaddr *)test->addr; in test_sk_assign()
|
D | ip_check_defrag.c | 107 struct sockaddr *saddr_p; in send_frags() 111 saddr_p = (struct sockaddr *)&saddr; in send_frags() 134 struct sockaddr *saddr_p; in send_frags6() 138 saddr_p = (struct sockaddr *)&saddr; in send_frags6() 227 err = bind(client_rx_fd, (struct sockaddr *)c, sizeof(*c)); in test_bpf_ip_check_defrag_ok() 234 err = bind(client_rx_fd, (struct sockaddr *)c, sizeof(*c)); in test_bpf_ip_check_defrag_ok() 254 len = recvfrom(srv_fd, buf, sizeof(buf), 0, (struct sockaddr *)&caddr, &caddr_len); in test_bpf_ip_check_defrag_ok() 257 len = sendto(srv_fd, buf, len, 0, (struct sockaddr *)&caddr, caddr_len); in test_bpf_ip_check_defrag_ok()
|
D | sockmap_ktls.c | 30 struct sockaddr unspec = { AF_UNSPEC }; in disconnect() 46 err = getsockname(srv, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_disconnect_after_delete() 54 err = connect(cli, (struct sockaddr *)&addr, len); in test_sockmap_ktls_disconnect_after_delete() 105 err = bind(s, (struct sockaddr *)&addr, len); in test_sockmap_ktls_update_fails_when_sock_has_ulp() 109 err = getsockname(s, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_update_fails_when_sock_has_ulp() 113 err = connect(s, (struct sockaddr *)&addr, len); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
|
/linux-6.12.1/drivers/infiniband/core/ |
D | addr.c | 61 void (*callback)(int status, struct sockaddr *src_addr, 195 int rdma_addr_size(const struct sockaddr *addr) in rdma_addr_size() 212 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_in6() 220 int ret = rdma_addr_size((struct sockaddr *) addr); in rdma_addr_size_kss() 246 rdma_find_ndev_for_src_ip_rcu(struct net *net, const struct sockaddr *src_in) in rdma_find_ndev_for_src_ip_rcu() 275 int rdma_translate_ip(const struct sockaddr *addr, in rdma_translate_ip() 358 const struct sockaddr *dst_in, u32 seq) in fetch_ha() 378 static int addr4_resolve(struct sockaddr *src_sock, in addr4_resolve() 379 const struct sockaddr *dst_sock, in addr4_resolve() 411 static int addr6_resolve(struct sockaddr *src_sock, in addr6_resolve() [all …]
|
/linux-6.12.1/include/net/ |
D | inet_common.h | 22 struct sockaddr; 26 int inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, 28 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, 30 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, 45 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len); 46 int inet_bind_sk(struct sock *sk, struct sockaddr *uaddr, int addr_len); 55 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, 57 int inet_getname(struct socket *sock, struct sockaddr *uaddr,
|
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); 52 struct sockaddr __user **, struct iovec **);
|
/linux-6.12.1/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-6.12.1/tools/testing/selftests/net/netfilter/ |
D | sctp_collision.c | 32 ret = bind(sd, (struct sockaddr *)&saddr, sizeof(saddr)); in main() 57 ret = connect(sd, (struct sockaddr *)&daddr, len); in main() 62 ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); in main() 67 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main() 77 ret = connect(sd, (struct sockaddr *)&daddr, len); in main() 83 ret = sendto(sd, buf, strlen(buf) + 1, 0, (struct sockaddr *)&daddr, len); in main() 88 ret = recvfrom(sd, buf, sizeof(buf), 0, (struct sockaddr *)&daddr, &len); in main()
|
D | conntrack_reverse_clash.c | 79 if (bind(s1, (struct sockaddr *)&sa1, sizeof(sa1)) < 0) in main() 81 if (bind(s2, (struct sockaddr *)&sa2, sizeof(sa2)) < 0) in main() 96 if (sendto(s1, buf, LEN, 0, (struct sockaddr *)&sa2, sizeof(sa2)) != LEN) in main() 99 if (recvfrom(s2, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main() 105 if (sendto(s2, buf, LEN, 0, (struct sockaddr *)&sa1, sizeof(sa1)) != LEN) in main() 108 if (recvfrom(s1, buf, LEN, 0, (struct sockaddr *)&peer, &plen) < 0) in main()
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/include/uapi/linux/ |
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) */
|
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-6.12.1/include/linux/lockd/ |
D | lockd.h | 102 static inline struct sockaddr *nlm_addr(const struct nlm_host *host) in nlm_addr() 104 return (struct sockaddr *)&host->h_addr; in nlm_addr() 107 static inline struct sockaddr *nlm_srcaddr(const struct nlm_host *host) in nlm_srcaddr() 109 return (struct sockaddr *)&host->h_srcaddr; in nlm_srcaddr() 221 __be32 nlmclnt_grant(const struct sockaddr *addr, 231 struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap, 259 const struct sockaddr *sap, 308 int nlmsvc_unlock_all_by_ip(struct sockaddr *server_addr); 321 static inline int __nlm_privileged_request4(const struct sockaddr *sap) in __nlm_privileged_request4() 332 static inline int __nlm_privileged_request6(const struct sockaddr *sap) in __nlm_privileged_request6() [all …]
|
/linux-6.12.1/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->value; in syscall_arg__scnprintf_augmented_sockaddr()
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | bind_timewait.c | 52 ret = bind(server_fd, (struct sockaddr *)&self->addr, self->addrlen); in create_timewait_socket() 58 ret = getsockname(server_fd, (struct sockaddr *)&self->addr, &self->addrlen); in create_timewait_socket() 64 ret = connect(client_fd, (struct sockaddr *)&self->addr, self->addrlen); in create_timewait_socket() 68 child_fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in create_timewait_socket() 85 ret = bind(fd, (struct sockaddr *)&self->addr, self->addrlen);
|
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 | sk_bind_sendto_listen.c | 32 if (bind(fd1, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) { in main() 37 if (sendto(fd1, NULL, 0, MSG_FASTOPEN, (struct sockaddr *)&bind_addr, in main() 54 if (bind(fd2, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) { in main() 59 if (sendto(fd2, NULL, 0, MSG_FASTOPEN, (struct sockaddr *)&bind_addr, in main()
|
/linux-6.12.1/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 35 struct sockaddr { struct 425 struct sockaddr __user *uaddr, 429 struct sockaddr __user **save_addr); 433 unsigned int flags, struct sockaddr __user *addr, 436 unsigned int flags, struct sockaddr __user *addr, 439 struct sockaddr __user *upeer_sockaddr, 441 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 445 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 450 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 454 extern int __sys_getsockname(int fd, struct sockaddr __user *usockaddr, [all …]
|
/linux-6.12.1/include/linux/ |
D | socket.h | 35 struct sockaddr { struct 425 struct sockaddr __user *uaddr, 429 struct sockaddr __user **save_addr); 433 unsigned int flags, struct sockaddr __user *addr, 436 unsigned int flags, struct sockaddr __user *addr, 439 struct sockaddr __user *upeer_sockaddr, 441 extern int __sys_accept4(int fd, struct sockaddr __user *upeer_sockaddr, 445 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 450 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, 454 extern int __sys_getsockname(int fd, struct sockaddr __user *usockaddr, [all …]
|
/linux-6.12.1/include/rdma/ |
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()
|
/linux-6.12.1/security/landlock/ |
D | net.c | 47 struct sockaddr *const address, in current_check_access_socket() 123 const struct sockaddr_in *const sockaddr = in current_check_access_socket() local 129 if (sockaddr->sin_addr.s_addr != htonl(INADDR_ANY)) in current_check_access_socket() 160 struct sockaddr *const address, const int addrlen) in hook_socket_bind() 167 struct sockaddr *const address, in hook_socket_connect()
|