Home
last modified time | relevance | path

Searched refs:c1 (Results 1 – 25 of 36) sorted by relevance

12

/tools/testing/selftests/bpf/prog_tests/
A Dtc_change_tail.c16 int c1, p1; in test_tc_change_tail() local
30 ret = create_pair(AF_INET, SOCK_DGRAM, &c1, &p1); in test_tc_change_tail()
36 ret = recv(c1, buf, 2, 0); in test_tc_change_tail()
42 ret = recv(c1, buf, 2, 0); in test_tc_change_tail()
48 ret = recv(c1, buf, 1, 0); in test_tc_change_tail()
54 ret = recv(c1, buf, 1, 0); in test_tc_change_tail()
58 close(c1); in test_tc_change_tail()
A Dsockmap_basic.c517 ev.data.fd = c1; in test_sockmap_skb_verdict_shutdown()
529 n = recv(c1, &b, 1, MSG_DONTWAIT); in test_sockmap_skb_verdict_shutdown()
532 close(c1); in test_sockmap_skb_verdict_shutdown()
579 err = ioctl(c1, FIONREAD, &avail); in test_sockmap_skb_verdict_fionread()
591 close(c1); in test_sockmap_skb_verdict_fionread()
604 int c1, p1, sent, recvd; in test_sockmap_skb_verdict_change_tail() local
625 recvd = recv(c1, buf, 2, 0); in test_sockmap_skb_verdict_change_tail()
631 recvd = recv(c1, buf, 2, 0); in test_sockmap_skb_verdict_change_tail()
637 recvd = recv(c1, buf, 1, 0); in test_sockmap_skb_verdict_change_tail()
642 close(c1); in test_sockmap_skb_verdict_change_tail()
[all …]
A Dsockmap_strp.c94 int c0 = -1, p0 = -1, c1 = -1, p1 = -1; in test_sockmap_strp_dispatch_pkt() local
107 {"rrrrr", 5, 0, &c1} in test_sockmap_strp_dispatch_pkt()
114 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_dispatch_pkt()
126 err = setsockopt(c1, IPPROTO_TCP, TCP_NODELAY, &zero, sizeof(zero)); in test_sockmap_strp_dispatch_pkt()
156 close(c1); in test_sockmap_strp_dispatch_pkt()
372 int c0 = -1, p0 = -1, c1 = -1, p1 = -1; in test_sockmap_strp_verdict() local
385 err = create_socket_pairs(family, sotype, &c0, &c1, &p0, &p1); in test_sockmap_strp_verdict()
401 recvd = recv_timeout(c1, rcv, sizeof(rcv), MSG_DONTWAIT, in test_sockmap_strp_verdict()
415 recvd = recv_timeout(c1, rcv, off, MSG_DONTWAIT, in test_sockmap_strp_verdict()
417 recvd += recv_timeout(c1, rcv + off, sizeof(rcv) - off, MSG_DONTWAIT, in test_sockmap_strp_verdict()
[all …]
A Dsockmap_listen.c680 int c0, c1, p0, p1; in redir_to_connected() local
719 xclose(c1); in redir_to_connected()
907 int c0 = -1, c1 = -1, p0 = -1, p1 = -1; in redir_partial() local
926 n = xsend(c1, buf, sizeof(buf), 0); in redir_partial()
939 xclose(c1); in redir_partial()
1047 int s, c0, c1, p0, err; in test_reuseport_select_connected() local
1105 c1 = xsocket(family, sotype, 0); in test_reuseport_select_connected()
1106 if (c1 < 0) in test_reuseport_select_connected()
1115 err = connect(c1, sockaddr(&addr), len); in test_reuseport_select_connected()
1120 n = xsend(c1, &b, sizeof(b), 0); in test_reuseport_select_connected()
[all …]
/tools/testing/selftests/proc/
A Dproc-uptime-001.c30 uint64_t start, u0, u1, c0, c1; in main() local
42 c1 = clock_boottime(); in main()
48 assert(c1 >= c0); in main()
54 c0 = c1; in main()
A Dproc-uptime-002.c47 uint64_t u0, u1, c0, c1; in main() local
76 c1 = clock_boottime(); in main()
82 assert(c1 >= c0); in main()
88 c0 = c1; in main()
/tools/power/cpupower/utils/helpers/
A Dbitmask.c203 const char *c1, *c2; /* next tokens after '-' or ',' */ in bitmask_parselist() local
212 c1 = nexttoken(p, '-'); in bitmask_parselist()
214 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist()
215 sret = sscanf(c1, "%u%c", &b, &nextc); in bitmask_parselist()
218 c1 = nexttoken(c1, ':'); in bitmask_parselist()
219 if (c1 != NULL && (c2 == NULL || c1 < c2)) { in bitmask_parselist()
220 sret = sscanf(c1, "%u%c", &s, &nextc); in bitmask_parselist()
/tools/testing/selftests/net/netfilter/
A Dbr_netfilter_queue.sh17 setup_ns c1 c2 c3 sender
45 port_add "$c1" "c1" 1
56 ip netns exec "$sender" ping -I sender -c1 192.168.1.1 || exit 1
57 ip netns exec "$sender" ping -I sender -c1 192.168.1.2 || exit 2
58 ip netns exec "$sender" ping -I sender -c1 192.168.1.3 || exit 3
A Dnft_audit.sh231 readarray -t handles < <(nft -a list chain t1 c1 | \
/tools/testing/selftests/net/openvswitch/
A Dopenvswitch.sh255 client c0 c1 172.31.110.10/24 -u || return 1
350 ip netns exec client ip addr add 172.31.110.10/24 dev c1
351 ip netns exec client ip link set c1 up
434 ip netns exec client ip addr add 172.31.110.10/24 dev c1
435 ip netns exec client ip link set c1 up
473 ip netns exec client ip addr add 172.31.110.10/24 dev c1
474 ip netns exec client ip link set c1 up
539 ip netns exec client ip addr add 172.31.110.10/24 dev c1
540 ip netns exec client ip link set c1 up
579 ip netns exec client ip link set c1 up
[all …]
/tools/testing/selftests/net/
A Dfcnal-test.sh592 run_cmd ping -c1 -w1 ${a}
624 run_cmd_nsb ping -c1 -w1 ${a}
634 run_cmd ping -c1 -w1 ${a}
668 run_cmd ping -c1 -w1 ${a}
679 run_cmd_nsb ping -c1 -w1 ${a}
696 run_cmd ping -c1 -w1 ${a}
707 run_cmd_nsb ping -c1 -w1 ${a}
717 run_cmd ping -c1 -w1 ${a}
761 run_cmd_nsb ping -c1 -w1 ${a}
812 run_cmd_nsb ping -c1 -w1 ${a}
[all …]
A Dl2tp.sh319 run_cmd $host_1 ping -c1 -w1 172.16.1.2
322 run_cmd $host_1 ping -c1 -w1 -I 172.16.101.1 172.16.101.2
325 run_cmd $host_1 ${ping6} -c1 -w1 fc00:1::2
328 run_cmd $host_1 ${ping6} -c1 -w1 -I fc00:101::1 fc00:101::2
341 run_cmd $host_1 ping -c1 -w1 172.16.1.2
344 run_cmd $host_1 ping -c1 -w1 -I 172.16.101.1 172.16.101.2
347 run_cmd $host_1 ${ping6} -c1 -w1 fc00:1::2
350 run_cmd $host_1 ${ping6} -c1 -w1 -I fc00:101::1 fc00:101::2
A Dvrf_route_leaking.sh278 slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1
373 slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1
378 ip netns exec $h1 ping -c1 -w1 ${H2_N2_IP} >/dev/null 2>&1
385 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1
464 run_cmd_grep "Time to live exceeded" ip netns exec $h1 ping -t1 -c1 -W2 ${H2_N2_IP}
485 run_cmd_grep "Frag needed" ip netns exec $h1 ping -s 1450 -Mdo -c1 -W2 ${H2_N2_IP}
506 run_cmd_grep "Time exceeded: Hop limit" ip netns exec $h1 "${ping6}" -t1 -c1 -W2 ${H2_N2_IP6}
527 run_cmd_grep "Packet too big" ip netns exec $h1 "${ping6}" -s 1450 -Mdo -c1 -W2 ${H2_N2_IP6}
544 run_cmd ip netns exec $r1 ip vrf exec blue ping -c1 -w1 ${H2_N2_IP}
584 run_cmd ip netns exec $r1 ip vrf exec blue ${ping6} -c1 -w1 ${H2_N2_IP6}
A Dvrf-xfrm-tests.sh346 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4}
348 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6}
353 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${HOST2_4}
355 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6}
365 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${HOST2_6}
381 run_cmd_host1 ip vrf exec ${VRF} ping -c1 -w1 ${XFRM2_4}
383 run_cmd_host1 ip vrf exec ${VRF} ${ping6} -c1 -w1 ${XFRM2_6}
A Darp_ndisc_evict_nocarrier.sh46 ip netns exec ${me} ping -6 -c1 -Iveth1 $V6_ADDR1 >/dev/null 2>&1
73 ping -c1 -I veth0 $V4_ADDR1 -q >/dev/null 2>&1
A Dynl.mk23 YNL_GENS_HASH := $(shell echo $(YNL_GENS) | sha1sum | cut -c1-8)
A Dfib_nexthop_nongw.sh112 run_cmd ip netns exec $h1 ping -c1 192.168.1.1
A Dfib_nexthop_multiprefix.sh243 run_cmd taskset -c ${c} ip netns exec ${h0} ping -c1 -w1 172.16.10${i}.1
246 run_cmd taskset -c ${c} ip netns exec ${h0} ${ping6} -c1 -w1 2001:db8:10${i}::1
/tools/perf/util/
A Dhelp-unknown-cmd.c25 const struct cmdname *const *c1 = p1, *const *c2 = p2; in levenshtein_compare() local
26 const char *s1 = (*c1)->name, *s2 = (*c2)->name; in levenshtein_compare()
27 int l1 = (*c1)->len; in levenshtein_compare()
/tools/include/nolibc/
A Dstring.h26 int c1 = 0; in memcmp() local
28 while (ofs < n && !(c1 = ((unsigned char *)s1)[ofs] - ((unsigned char *)s2)[ofs])) { in memcmp()
31 return c1; in memcmp()
/tools/testing/selftests/net/forwarding/
A Dsch_ets_tests.sh232 start_traffic_pktsize 100 $h1.10 192.0.2.1 192.0.2.2 00:c1:a0:c1:a0:00 "-c 1"
/tools/perf/arch/s390/include/
A Ddwarf-regs-table.h31 REG_DWARFNUM_NAME(c1, 33),
/tools/testing/selftests/bpf/
A Dtest_sockmap.c62 int s1, s2, c1, c2, p1, p2; variable
243 if (s == c1) in sock_to_string()
310 int *fds[4] = {&s1, &s2, &c1, &c2}; in sockmap_init_sockets()
312 s1 = s2 = p1 = p2 = c1 = c2 = 0; in sockmap_init_sockets()
409 c1, s1, c2, s2); in sockmap_init_sockets()
862 err = sockmap_init_ktls(opt->verbose, c1); in sendmsg_test()
925 err = msg_loop(c1, iov_count, iov_buf, in sendmsg_test()
975 sc = send(c1, buf, sizeof(buf), 0); in forever_ping_pong()
987 FD_SET(c1, &w); in forever_ping_pong()
1149 redir_fd = c1; in run_options()
[all …]
/tools/testing/selftests/bpf/benchs/
A Dbench_sockmap.c98 #define c1 fds[0] macro
219 err = create_pair(&ctx.c1, &ctx.p1, SOCK_STREAM); in create_sockets()
231 ctx.c1, ctx.p1, ctx.c2, ctx.p2); in create_sockets()
465 target = ctx.c1; in producer()
/tools/perf/tests/
A Dcode-reading.c55 char c1, c2; in read_objdump_chunk() local
58 c1 = *(*line)++; in read_objdump_chunk()
59 if (!isxdigit(c1)) in read_objdump_chunk()
66 **buf = (hex(c1) << 4) | hex(c2); in read_objdump_chunk()

Completed in 38 milliseconds

12