/linux/tools/testing/selftests/net/netfilter/ |
H A D | bridge_brouter.sh | 63 # ping net${ns1}, expected to not work (ip forwarding is off) 64 if ip netns exec "$ns1" ping -q -c 1 10.0.0.12 -W 0.5 > /dev/null 2>&1; then 65 echo "ERROR: ping works, should have failed" 1>&2 76 if ! ip netns exec "$ns1" ping -q -c 1 10.0.0.12 > /dev/null; then 77 echo "ERROR: ping did not work, but it should (broute+forward)" 1>&2 84 # ping net${ns1}, expected to work (frames are bridged) 85 if ! ip netns exec "$ns1" ping -q -c 1 10.0.0.12 > /dev/null; then 86 echo "ERROR: ping did not work, but it should (bridged)" 1>&2 92 # ping net${ns1}, expected to not work (DROP in bridge forward) 93 if ip netns exec "$ns1" ping -q -c 1 10.0.0.12 -W 0.5 > /dev/null 2>&1; then [all …]
|
H A D | nft_nat.sh | 171 # ping netns1, expect rewrite to netns2 172 if ! ip netns exec "$ns0" ping -q -c 1 dead:1::99 > /dev/null;then 212 test $lret -eq 0 && echo "PASS: ipv6 ping to $ns1 was $family NATted to $ns2" 246 # ping netns1, expect rewrite to netns2 247 if ! ip netns exec "$ns0" ping -q -c 1 10.0.1.99 > /dev/null;then 249 echo "ERROR: ping failed" 287 test $lret -eq 0 && echo "PASS: ping to $ns1 was $family NATted to $ns2" 292 if ! ip netns exec "$ns0" ping -q -c 1 10.0.1.99 > /dev/null;then 294 echo "ERROR: ping failed" 331 test $lret -eq 0 && echo "PASS: ping to $ns1 OK after $family nat output chain flush" [all …]
|
/linux/Documentation/devicetree/bindings/iio/proximity/ |
H A D | parallax-ping.yaml | 4 $id: http://devicetree.org/schemas/iio/proximity/parallax-ping.yaml# 7 title: Parallax PING))) and LaserPING range finder 14 - ping-gpios is raised by the driver to start measurement 15 - direction of ping-gpio is then switched into input with an interrupt 20 http://parallax.com/sites/default/files/downloads/28015-PING-Documentation-v1.6.pdf 25 - parallax,ping 28 ping-gpios: 43 - ping-gpios 52 ping-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|
/linux/tools/testing/selftests/net/ |
H A D | unicast_extensions.sh | 9 # of address, we test for interface assignment, ping, TCP, and forwarding. 52 # ping and nettest. 65 ip netns exec $foo_ns timeout 2 ping -c 1 $2 || return 1 66 ip netns exec $bar_ns timeout 2 ping -c 1 $1 || return 1 101 ip netns exec $foo_ns timeout 2 ping -c 1 $2 || return 1 102 ip netns exec $foo_ns timeout 2 ping -c 1 $4 || return 1 103 ip netns exec $bar_ns timeout 2 ping -c 1 $3 || return 1 104 ip netns exec $bar_ns timeout 2 ping -c 1 $1 || return 1 164 segmenttest 240.1.2.1 240.1.2.4 24 "assign and ping within 240/4 (1 of 2) (is allowed)" 165 segmenttest 250.100.2.1 250.100.30.4 16 "assign and ping within 240/4 (2 of 2) (is allowed)" [all …]
|
H A D | vrf_route_leaking.sh | 24 # The first test sends a ping with a ttl of 1 from h1 to h2 and parses the 30 # The third test sends a ping with a packet size of 1450 from h1 to h2 and 378 ip netns exec $h1 ping -c1 -w1 ${H2_N2_IP} >/dev/null 2>&1 458 log_section "IPv4 ($ttype route): VRF ICMP ttl error route lookup ping" 464 run_cmd_grep "Time to live exceeded" ip netns exec $h1 ping -t1 -c1 -W2 ${H2_N2_IP} 465 log_test $? 0 "Ping received ICMP ttl exceeded" 479 log_section "IPv4 ($ttype route): VRF ICMP fragmentation error route lookup ping" 485 run_cmd_grep "Frag needed" ip netns exec $h1 ping -s 1450 -Mdo -c1 -W2 ${H2_N2_IP} 486 log_test $? 0 "Ping received ICMP Frag needed" 500 log_section "IPv6 ($ttype route): VRF ICMP ttl error route lookup ping" [all …]
|
H A D | fcnal-test.sh | 86 which ping6 > /dev/null 2>&1 && ping6=$(which ping6) || ping6=$(which ping) 191 killall nettest ping ping6 >/dev/null 2>&1 592 run_cmd ping -c1 -w1 ${a} 593 log_test_addr ${a} $? 0 "ping out" 596 run_cmd ping -c1 -w1 -I ${NSA_DEV} ${a} 597 log_test_addr ${a} $? 0 "ping out, device bind" 600 run_cmd ping -c1 -w1 -I ${NSA_LO_IP} ${a} 601 log_test_addr ${a} $? 0 "ping out, address bind" 609 run_cmd ping -c 1 -w 1 -r ${a} 610 log_test_addr ${a} $? 0 "ping out (don't route), peer on link" [all …]
|
H A D | xfrm_policy.sh | 12 # ns1: ping 10.0.2.2: passes via ipsec tunnel. 13 # ns2: ping 10.0.1.2: passes via ipsec tunnel. 15 # ns1: ping 10.0.1.253: passes via ipsec tunnel (direct policy) 16 # ns2: ping 10.0.2.253: passes via ipsec tunnel (direct policy) 18 # ns1: ping 10.0.2.254: does NOT pass via ipsec tunnel (exception) 19 # ns2: ping 10.0.1.254: does NOT pass via ipsec tunnel (exception) 206 ip netns exec ${ns[1]} ping -q -c 1 10.0.2.$ip > /dev/null 217 ip netns exec ${ns[2]} ping -q -c 1 10.0.1.$ip > /dev/null 236 # ping to .254 should be excluded from the tunnel (exception is in place). 239 echo "FAIL: expected ping to .254 to fail ($logpostfix)" [all …]
|
/linux/samples/bpf/ |
H A D | test_lwt_bpf.sh | 146 ping -c 3 $IPVETH1 || { 162 ping -c 3 $IPVETH1 || { 178 ping -c 3 $IP_LOCAL || { 202 ping -c 3 $IPVETH1 || { 215 ping -c 3 $IP_LOCAL || { 233 ping -c 3 $IPVETH1 || { 249 ping -c 3 $IP_LOCAL || { 273 ping -c 3 $IPVETH1 && { 274 failure "test_drop_all ${1}: Unexpected success of ping" 286 ping -c 3 $IP_LOCAL && { [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_tunnel.sh | 35 # End-to-end ping packet flow 38 # then ping the underlay and overlay network. When doing 'ping 10.1.1.100' 248 ping $PING_ARG 10.1.1.100 250 ip netns exec at_ns0 ping $PING_ARG 10.1.1.200 272 ping $PING_ARG 10.1.1.100 274 ip netns exec at_ns0 ping $PING_ARG 10.1.1.200 300 ip netns exec at_ns0 ping $PING_ARG 10.1.1.200 301 ping $PING_ARG 10.1.1.100 329 ip netns exec at_ns0 ping $PING_ARG 10.1.1.200 330 ping $PING_ARG 10.1.1.100 [all …]
|
/linux/tools/testing/selftests/drivers/net/ |
H A D | README.rst | 105 [/root] # ./ksft-net-drv/run_kselftest.sh -t drivers/net:ping.py 109 # selftests: drivers/net: ping.py 112 # ok 1 ping.test_v4 113 # ok 2 ping.test_v6 114 # ok 3 ping.test_tcp 116 ok 1 selftests: drivers/net: ping.py 130 [/root] # ./ksft-net-drv/drivers/net/ping.py 133 ok 1 ping.test_v4 134 ok 2 ping.test_v6 # SKIP Test requires IPv6 connectivity 135 ok 3 ping.test_tcp
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_locked_port.sh | 100 check_err $? "Ping did not work before locking port" 105 check_fail $? "Ping worked after locking port, but before adding FDB entry" 110 check_err $? "Ping did not work after locking port and adding FDB entry" 116 check_err $? "Ping did not work after unlocking port and removing FDB entry." 131 check_err $? "Ping through vlan did not work before locking port" 135 check_fail $? "Ping through vlan worked after locking port, but before adding FDB entry" 140 check_err $? "Ping through vlan did not work after locking port and adding FDB entry" 146 check_err $? "Ping through vlan did not work after unlocking port and removing FDB entry" 185 check_err $? "Ping did not work before locking port" 190 check_fail $? "Ping worked on a locked port without an FDB entry" [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_storage.c | 10 #define PING_CMD "ping localhost -c 1 -W 1 -q" 61 ASSERT_OK(err, "first ping"); in test_cgroup_storage() 63 ASSERT_NEQ(err, 0, "second ping"); in test_cgroup_storage() 65 ASSERT_OK(err, "third ping"); in test_cgroup_storage() 83 ASSERT_OK(err, "fourth ping"); in test_cgroup_storage() 85 ASSERT_NEQ(err, 0, "fifth ping"); in test_cgroup_storage() 87 ASSERT_OK(err, "sixth ping"); in test_cgroup_storage()
|
H A D | cgroup_attach_override.c | 9 #define PING_CMD "ping -q -c1 -w1 127.0.0.1 > /dev/null" 52 "ping unexpectedly succeeded\n")) in serial_test_cgroup_attach_override() 60 "ping unexpectedly succeeded\n")) in serial_test_cgroup_attach_override() 69 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in serial_test_cgroup_attach_override() 78 "ping unexpectedly succeeded\n")) in serial_test_cgroup_attach_override() 92 if (CHECK(system(PING_CMD), "ping_ok", "ping failed\n")) in serial_test_cgroup_attach_override()
|
/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
H A D | trigger-field-variable-support.tc | 4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist ping:program 14 echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger 15 …cy($wakeup_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sc… 18 ping $LOCALHOST -c 3 19 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then 27 …cy($wakeup_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' >> events/sched/s…
|
H A D | trigger-inter-event-combined-hist.tc | 4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist ping:program 20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_waking/trigger 21 …ts0:onmatch(sched.sched_waking).waking_latency($waking_lat,pid) if comm=="ping"' > events/sched/sc… 25 echo 'hist:keys=pid:ts1=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_wakeup/trigger 26 …h(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid) if next_comm=="ping"' > events/sched/sc… 32 ping $LOCALHOST -c 3
|
H A D | trigger-snapshot-action-hist.tc | 4 …apshot events/sched/sched_process_fork/hist "onchange(var)":README "snapshot()":README ping:program 15 …nchange($newprio).save(comm,prio):onchange($newprio).snapshot() if comm=="ping"' >> events/sched/s… 17 ping $LOCALHOST -c 3 18 nice -n 1 ping $LOCALHOST -c 3 26 if ! grep -q "comm=ping" snapshot; then
|
H A D | trigger-onmatch-action-hist.tc | 4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist ping:program 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …hed_wakeup).wakeup_latency($wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sc… 25 ping $LOCALHOST -c 5 26 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
|
H A D | trigger-trace-action-hist.tc | 4 …synthetic_events events/sched/sched_process_fork/hist "trace(<synthetic_event>":README ping:program 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …keup).trace(wakeup_latency,$wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sc… 25 ping $LOCALHOST -c 5 27 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
|
H A D | trigger-onmatch-onmax-action-hist.tc | 4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist ping:program 21 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger 22 …($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/s… 25 ping $LOCALHOST -c 5 26 if [ ! grep -q "ping" events/synthetic/wakeup_latency/hist -o ! grep -q "max:" events/sched/sched_s…
|
H A D | trigger-onchange-action-hist.tc | 4 # requires: set_event "onchange(var)":README ping:program 13 echo 'hist:keys=comm:newprio=prio:onchange($newprio).save(comm,prio) if comm=="ping"' >> events/sch… 15 ping $LOCALHOST -c 3 16 nice -n 1 ping $LOCALHOST -c 3
|
H A D | trigger-onmax-action-hist.tc | 4 # requires: set_event synthetic_events events/sched/sched_process_fork/hist ping:program 20 echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_waking/trigger 21 …($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/s… 23 ping $LOCALHOST -c 3
|
/linux/drivers/iio/proximity/ |
H A D | ping.c | 3 * PING: ultrasonic sensor for distance measuring by using only one GPIOs 9 * http://parallax.com/sites/default/files/downloads/28015-PING-Documentation-v1.6.pdf 14 * ping: __/ \____________/ \________________ 46 /* ping sensors */ 175 * read error code of laser ping sensor and give users chance to in ping_read() 269 { .compatible = "parallax,ping", .data = &pa_ping_cfg }, 296 data->gpiod_ping = devm_gpiod_get(dev, "ping", GPIOD_OUT_LOW); in ping_probe() 298 dev_err(dev, "failed to get ping-gpios: err=%ld\n", in ping_probe() 310 indio_dev->name = "ping"; in ping_probe() 322 .name = "ping-gpio", [all …]
|
/linux/Documentation/translations/zh_CN/core-api/irq/ |
H A D | irq-affinity.rst | 39 [root@moon 44]# ping -f h 40 PING hell (195.4.7.3): 56 data bytes 42 --- hell ping statistics --- 57 [root@moon 44]# ping -f h 58 PING hell (195.4.7.3): 56 data bytes 60 --- hell ping statistics ---
|
/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool.sh | 68 check_err $? "ping with speed $speed autoneg off" 78 # Test that when we force different speeds, links are not up and ping 92 check_fail $? "ping with different speeds" 104 # are up and ping passes. 114 check_err $? "ping with h1-speed=$speed autoneg off, h2 autoneg on" 183 # are up and ping passes. 208 check_err $? "ping with h1=$speed_1_to_advertise, h2=$speed_2_to_advertise ($speed_value)" 261 # links are not up and ping fails. 278 check_fail $? "ping with different speeds autoneg on"
|
/linux/Documentation/core-api/irq/ |
H A D | irq-affinity.rst | 31 [root@moon 44]# ping -f h 32 PING hell (195.4.7.3): 56 data bytes 34 --- hell ping statistics --- 50 [root@moon 44]# ping -f h 51 PING hell (195.4.7.3): 56 data bytes 53 --- hell ping statistics ---
|