Home
last modified time | relevance | path

Searched refs:raddr (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/
Dxdping.c36 static int get_stats(int fd, __u16 count, __u32 raddr) in get_stats() argument
43 inaddr.s_addr = raddr; in get_stats()
47 if (bpf_map_lookup_elem(fd, &raddr, &pinginfo)) { in get_stats()
68 bpf_map_delete_elem(fd, &raddr); in get_stats()
103 __u32 raddr = 0; in main() local
165 raddr = rin.sin_addr.s_addr; in main()
228 if (bpf_map_update_elem(map_fd, &raddr, &pinginfo, BPF_ANY)) { in main()
247 ret = get_stats(map_fd, count, raddr); in main()
/tools/testing/selftests/bpf/progs/
Dxdping_kern.c99 __be32 raddr; in xdping_client() local
111 raddr = iph->saddr; in xdping_client()
115 pinginfo = bpf_map_lookup_elem(&ping_map, &raddr); in xdping_client()
140 iph->daddr = raddr; in xdping_client()
161 __be32 raddr; in xdping_server() local
171 raddr = iph->saddr; in xdping_server()
176 iph->daddr = raddr; in xdping_server()
/tools/testing/selftests/net/
Dpsock_snd.c254 struct sockaddr_in raddr = {0}; in setup_rx() local
264 raddr.sin_family = AF_INET; in setup_rx()
265 raddr.sin_port = htons(cfg_port); in setup_rx()
266 raddr.sin_addr.s_addr = htonl(INADDR_ANY); in setup_rx()
268 if (bind(fd, (void *)&raddr, sizeof(raddr))) in setup_rx()