On Wed, May 9, 2018 at 9:11 PM, Leonid Bobrov <[email protected]> wrote: > Hi! > > I don't know which port installs tc command (does it even exist?), so:
Hi, Unfortunately a large chunk of the features still need work, either in the form of ported dependencies or translation over to comparable features on OpenBSD. The 'tc' link type (tc being a traffic shaping utility on Linux, and not in ports) is one of them. For network object types and tests, it's easier for me to list the working options from 'mn -h': --switch: ifsw, sysbr, default --controller: none, remote, swd --link: default --topo: everything --test: everything but build and all The --nat and --pin options are also broken right now since I'm slowly adding support as I use or get to test everything. I've wondered if having the options listed regardless of whether they work or not is antisocial, and if I should completely remove the definitely untested/un-ported parts. In any case I'm hoping that I can get around to some cleanup since this is a very rough port... Thanks, Ayaka > mazocomp$ doas mn --link tc,bw=10,delay=10ms > *** Creating network > *** Adding controller > *** Adding hosts: > h1 h2 > *** Adding switches: > s1 > *** Adding links: > (10.00Mbit 10ms delay) *** Error: mnexec -p tc qdisc del dev h1-eth0 root > tc: No such file or directory > *** Error: mnexec -p tc qdisc add dev h1-eth0 root handle 5:0 htb default 1 > tc: No such file or directory > nt 5:0 classid 5:1 htb rate 10.000000Mbit burst 15k > <0.000000M > tc: No such file or directory > *** Error: mnexec -p tc qdisc add dev h1-eth0 parent 5:1 handle 10: netem > delay 10ms > tc: No such file or directory > (10.00Mbit 10ms delay) *** Error: tc qdisc del dev s1-eth1 root > /bin/ksh: tc: not found > *** Error: tc qdisc add dev s1-eth1 root handle 5:0 htb default 1 > /bin/ksh: tc: not found > ssid 5:1 htb rate 10.000000Mbit burst 15k > <it burst > /bin/ksh: tc: not found > *** Error: tc qdisc add dev s1-eth1 parent 5:1 handle 10: netem delay 10ms > /bin/ksh: tc: not found > (h1, s1) (10.00Mbit 10ms delay) *** Error: mnexec -p tc qdisc del dev h2-eth0 > root > tc: No such file or directory > *** Error: mnexec -p tc qdisc add dev h2-eth0 root handle 5:0 htb default 1 > tc: No such file or directory > nt 5:0 classid 5:1 htb rate 10.000000Mbit burst 15k > <0.000000M > tc: No such file or directory > *** Error: mnexec -p tc qdisc add dev h2-eth0 parent 5:1 handle 10: netem > delay 10ms > tc: No such file or directory > (10.00Mbit 10ms delay) *** Error: tc qdisc del dev s1-eth2 root > /bin/ksh: tc: not found > *** Error: tc qdisc add dev s1-eth2 root handle 5:0 htb default 1 > /bin/ksh: tc: not found > ssid 5:1 htb rate 10.000000Mbit burst 15k > <it burst > /bin/ksh: tc: not found > *** Error: tc qdisc add dev s1-eth2 parent 5:1 handle 10: netem delay 10ms > /bin/ksh: tc: not found > (h2, s1) > *** Configuring hosts > h1 h2 > *** Starting controller > c0 > *** Starting 1 switches > s1 > *** Starting CLI: > mininet> >
