Searched refs:pinginfo (Results 1 – 3 of 3) sorted by relevance
25 __type(value, struct pinginfo);94 struct pinginfo *pinginfo = NULL; in xdping_client() local115 pinginfo = bpf_map_lookup_elem(&ping_map, &raddr); in xdping_client()116 if (!pinginfo || pinginfo->seq != icmph->un.echo.sequence) in xdping_client()119 if (pinginfo->start) { in xdping_client()122 if (pinginfo->times[i] == 0) in xdping_client()127 pinginfo->times[i] = recvtime - in xdping_client()128 pinginfo->start; in xdping_client()129 pinginfo->start = 0; in xdping_client()133 if (i == pinginfo->count || i == XDPING_MAX_COUNT) in xdping_client()[all …]
38 struct pinginfo pinginfo = { 0 }; in get_stats() local47 if (bpf_map_lookup_elem(fd, &raddr, &pinginfo)) { in get_stats()53 if (pinginfo.times[i] == 0) in get_stats()60 (double)pinginfo.times[i]/1000000); in get_stats()92 struct pinginfo pinginfo = { 0 }; in main() local221 pinginfo.seq = htons(count); in main()222 pinginfo.count = count; in main()224 if (bpf_map_update_elem(map_fd, &raddr, &pinginfo, BPF_ANY)) { in main()
7 struct pinginfo { struct