tylertreat / comcast

Simulating shitty network connections so you can build better systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to stop packet controls

sigmonsays opened this issue · comments

commented

used example
comcast --device=eth0 --latency=250 --bandwidth=1000 --packet-loss=0.1

attempting to stop failed.

root@Desktop:~# comcast --mode stop
sudo tc qdisc show | grep "netem"
sudo tc qdisc del dev eth0 root netem
Failed to stop packet controls

What do you see when you run sudo tc qdisc del dev eth0 root netem?

commented

When I run it again (as expected)
root@Desktop:~# sudo tc qdisc del dev eth0 root netem
RTNETLINK answers: Invalid argument

However, it seems to work when ran immediately after comcast.

root@Desktop:~# comcast --device=eth0 --latency=250 --bandwidth=1000 --packet-loss=0.1
sudo tc qdisc show | grep "netem"
sudo tc qdisc add dev eth0 root netem delay 250ms rate 1000kbit loss 10%
Packet rules setup...
Run sudo tc -s qdisc to double check
Run comcast --mode stop to reset

root@Desktop:~# sudo tc qdisc del dev eth0 root netem

I'm guessing this is why: #6.

Fix went in here 89bbb2f. Let me know if you're still seeing the problem.

commented

looks to be fixed. Thanks

I like the simplicity of this tool. it'll be nice to add new features.. Cheers.