Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 19 of 19) sorted by relevance

/tools/testing/selftests/bpf/
Dnetwork_helpers.c70 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 …]
Dtest_maps.c1608 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/
Dreuseaddr_conflict.c26 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()
Dfin_ack_lat.c89 int addrlen = sizeof(address); in server() local
94 (socklen_t *)&addrlen); in server()
Dtcp_inq.c63 socklen_t addrlen = sizeof(addr); in start_server() local
71 fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen); in start_server()
Dtcp_mmap.c327 socklen_t addrlen = sizeof(addr); in do_accept() local
331 fd = accept(fdlisten, (struct sockaddr *)&addr, &addrlen); in do_accept()
/tools/perf/examples/bpf/
Daugmented_syscalls.c117 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/
Dmap.c22 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/
Dbtf_skc_cls_ingress.c94 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()
Dbpf_tcp_ca.c85 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()
Dmigrate_reuseport.c54 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()
Dselect_reuseport.c252 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()
Dbpf_iter_setsockopt.c96 socklen_t addrlen = sizeof(addr); in get_local_port() local
98 if (!getsockname(fd, &addr, &addrlen)) in get_local_port()
Dsock_fields.c278 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/
Dsocket.h434 extern int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen);
436 int addrlen, int file_flags);
438 int addrlen);
/tools/bpf/bpftool/
Dnet.c99 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/
Dlocal_storage.c106 int addrlen) in BPF_PROG() argument
/tools/lib/bpf/
Dnetlink.c39 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/
Dmptcp_connect.c124 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()