Files
my-os-project2/kernel/picotcp/test/python/ping_linux.py
2025-10-29 14:29:06 +01:00

15 lines
188 B
Python
Executable File

#!/usr/bin/python
from topology import *
T = Topology()
net1 = Network(T, "pyt0")
#h1 = Host(T, net1)
h2 = Host(T, net1, args="ping:172.16.1.1:")
sleep(1)
start(T)
wait(h2)
cleanup()