Reputation: 2783
I am writing a script to simulate poor network connections for an Android device using Busybox. In Bash, I am using tc
and netem
to simulate packet loss, specific latencies, etc., but these are not available in Busybox. I know that Busybox has iptables
available, but it does not offer as much functionality as netem
. I have a few questions:
netem
for Busybox, and could you point me in the right direction to get started with that if it is possible?iptables
, as is possible with netem
?Thanks.
Upvotes: 2
Views: 660
Reputation: 69368
You can find tc
(as well as other network utilities) in busybox/networking
.
Check https://github.com/mozilla-b2g/busybox/blob/master/networking/tc.c
It's not clear form your question if you are doing it on an android device or on another device. In any case, you may have to recompile busybox for your target if tc
is not enabled.
Upvotes: 2