/tools/testing/selftests/bpf/ |
D | network_helpers.c | 70 socklen_t addrlen, int timeout_ms, bool reuseport) in __start_server() argument 90 if (bind(fd, addr, addrlen) < 0) { in __start_server() 113 socklen_t addrlen; in start_server() local 115 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_server() 119 addrlen, timeout_ms, false); in start_server() 127 socklen_t addrlen; in start_reuseport_server() local 133 if (make_sockaddr(family, addr_str, port, &addr, &addrlen)) in start_reuseport_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() 151 addrlen, timeout_ms, true); in start_reuseport_server() [all …]
|
D | test_maps.c | 1608 socklen_t optlen, addrlen; in prepare_reuseport_grp() local 1622 addrlen = sizeof(s6); in prepare_reuseport_grp() 1656 &addrlen); in prepare_reuseport_grp()
|
/tools/testing/selftests/net/ |
D | reuseaddr_conflict.c | 26 int addrlen; in open_port() local 45 addrlen = sizeof(addr6); in open_port() 48 addrlen = sizeof(addr4); in open_port() 68 if (bind(fd, addr, addrlen) < 0) { in open_port()
|
D | fin_ack_lat.c | 89 int addrlen = sizeof(address); in server() local 94 (socklen_t *)&addrlen); in server()
|
D | tcp_inq.c | 63 socklen_t addrlen = sizeof(addr); in start_server() local 71 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server()
|
D | tcp_mmap.c | 327 socklen_t addrlen = sizeof(addr); in do_accept() local 331 fd = accept(fdlisten, (struct sockaddr *)&addr, &addrlen); in do_accept()
|
/tools/perf/examples/bpf/ |
D | augmented_syscalls.c | 117 unsigned long addrlen = sizeof(augmented_args.addr); \ 123 probe_read(&augmented_args.addr, addrlen, args->addr_ptr); \ 127 sizeof(augmented_args) - sizeof(augmented_args.addr) + addrlen);\ 141 unsigned long addrlen; member 151 unsigned long addrlen; member
|
/tools/perf/ui/browsers/ |
D | map.c | 22 u8 addrlen; member 34 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write() 37 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 132 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_skc_cls_ingress.c | 94 socklen_t addrlen = sizeof(srv_sa6); in test_conn() local 104 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn() 148 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie() local 159 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
|
D | bpf_tcp_ca.c | 85 socklen_t addrlen = sizeof(sa6); in do_test() local 108 err = bind(lfd, (struct sockaddr *)&sa6, addrlen); in do_test() 111 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test() 127 err = connect(fd, (struct sockaddr *)&sa6, addrlen); in do_test()
|
D | migrate_reuseport.c | 54 socklen_t addrlen; member 225 &test_case->addr, &test_case->addrlen); in start_servers() 240 test_case->addrlen); in start_servers() 254 &test_case->addrlen); in start_servers() 309 test_case->addrlen); in start_clients()
|
D | select_reuseport.c | 252 socklen_t addrlen; in check_data() local 255 addrlen = sizeof(cli_sa); in check_data() 257 &addrlen); in check_data() 609 socklen_t addrlen; in prepare_sk_fds() local 615 addrlen = sizeof(srv_sa); in prepare_sk_fds() 640 err = bind(sk_fds[i], (struct sockaddr *)&srv_sa, addrlen); in prepare_sk_fds() 657 socklen_t addrlen = sizeof(srv_sa); in prepare_sk_fds() local 660 &addrlen); in prepare_sk_fds()
|
D | bpf_iter_setsockopt.c | 96 socklen_t addrlen = sizeof(addr); in get_local_port() local 98 if (!getsockname(fd, &addr, &addrlen)) in get_local_port()
|
D | sock_fields.c | 278 socklen_t addrlen = sizeof(struct sockaddr_in6); in test() local 287 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test() 297 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
|
/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 434 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen); 436 int addrlen, int file_flags); 438 int addrlen);
|
/tools/bpf/bpftool/ |
D | net.c | 99 socklen_t addrlen; in netlink_open() local 120 addrlen = sizeof(sa); in netlink_open() 121 if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) { in netlink_open() 126 if (addrlen != sizeof(sa)) { in netlink_open()
|
/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 106 int addrlen) in BPF_PROG() argument
|
/tools/lib/bpf/ |
D | netlink.c | 39 socklen_t addrlen; in libbpf_netlink_open() local 60 addrlen = sizeof(sa); in libbpf_netlink_open() 61 if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) { in libbpf_netlink_open() 66 if (addrlen != sizeof(sa)) { in libbpf_netlink_open()
|
/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 124 static void xgetnameinfo(const struct sockaddr *addr, socklen_t addrlen, in xgetnameinfo() argument 129 int err = getnameinfo(addr, addrlen, host, hostlen, serv, servlen, in xgetnameinfo()
|