Home
last modified time | relevance | path

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

/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()
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.c282 socklen_t addrlen = sizeof(addr); in do_accept() local
286 fd = accept(fdlisten, (struct sockaddr *)&addr, &addrlen); in do_accept()
/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/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/testing/selftests/bpf/
Dtest_select_reuseport.c234 socklen_t addrlen; in check_data() local
237 addrlen = sizeof(cli_sa); in check_data()
239 &addrlen); in check_data()
583 socklen_t addrlen; in prepare_sk_fds() local
589 addrlen = sizeof(srv_sa); in prepare_sk_fds()
614 err = bind(sk_fds[i], (struct sockaddr *)&srv_sa, addrlen); in prepare_sk_fds()
631 socklen_t addrlen = sizeof(srv_sa); in prepare_sk_fds() local
634 &addrlen); in prepare_sk_fds()
Dtest_sock_fields.c312 socklen_t addrlen; in test() local
315 addrlen = sizeof(struct sockaddr_in6); in test()
330 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test()
344 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
356 err = connect(cli_fd, (struct sockaddr *)&srv_sa6, addrlen); in test()
Dtest_maps.c1442 socklen_t optlen, addrlen; in prepare_reuseport_grp() local
1456 addrlen = sizeof(s6); in prepare_reuseport_grp()
1490 &addrlen); in prepare_reuseport_grp()
/tools/lib/bpf/
Dnetlink.c33 socklen_t addrlen; in libbpf_netlink_open() local
54 addrlen = sizeof(sa); in libbpf_netlink_open()
55 if (getsockname(sock, (struct sockaddr *)&sa, &addrlen) < 0) { in libbpf_netlink_open()
60 if (addrlen != sizeof(sa)) { in libbpf_netlink_open()