• JP Abgrall's avatar
    netd:bandwidth: initial pass at app-rules, and some ipv6. · fa6f46d3
    JP Abgrall authored
    Adds initial per-app penalty box rules, and prepares for
    handling per iface quota.
    
    The following commands work:
    
    * penalty box
    
    ndc bandwidth addnaughtyapps <uid> ...
    ndc bandwidth removenaughtyapps <uid> ...
    
    * Shared quota
    
     - add (updates the bytes, if they differ from last time)
    
    ndc bandwidth setquota <iface> <bytes>
    ndc bandwidth setquota <iface1> <bytes>
    ndc bandwidth setquota <iface2> <bytes>
    
      - remove
    ndc bandwidth removequota <iface>
    [ oldschool: ndc bandwidth setquota <iface> -1 ]
    
    Change-Id: Ibefc16e81c7713feb47577a9687dcd032dedf06e
    fa6f46d3
CommandListener.cpp 28 KB