tc traffic shapping HTB in Android

view story

http://stackoverflow.com – I use an Android device to be a hotspot router. In fact, the behavior is similar to a Linux OS router. There are parts of functions in Android. Now, I try to use tc command to limit bandwidth of end devices(connected to this Android router) interface: rmnet0:3G/HSPA+ wlan1:LAN I can only control it by setting rmnet0 interface with destination address tc qdisc add dev rmnet0 root handle 1: htb default 11; tc class add dev rmnet0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps ; tc class add dev rmnet0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps; tc class add dev rmnet0 parent (HowTos)