OSDN Git Service

BandwidthController: cleanup ipv4/v6, set/remove multiple quotas.
authorJP Abgrall <jpa@google.com>
Fri, 24 Jun 2011 18:58:14 +0000 (11:58 -0700)
committerJP Abgrall <jpa@google.com>
Fri, 24 Jun 2011 18:58:14 +0000 (11:58 -0700)
commit0dad7c2f1f6994fbe5e85b9e1fc72d29d6453211
tree96fa85cf3361886fe4ffcf53512fe825036f00d0
parentfa6f46d3370ae5475fc3bc8273bbe04ee7348d60
BandwidthController: cleanup ipv4/v6, set/remove multiple quotas.

Regroup the ipv4/ipv6 choice deeper down to avoid copypasted code.
Shared quota accross ifaces.
Single quota per ifaces.

Nothing preventing an iface from have a single and shared quota.
Might be close to having a working combination.

Added commands:
 - shared quota
  ndc bandwidth setquotas <quotaBytes> <iface> ...
  ndc bandwidth setquota <iface> <quotaBytes>
  ndc bandwidth removequota <iface>
  ndc bandwidth removequotas <iface> ...

 - quota per iface
  ndc bandwidth setiquota <iface> <quotaBytes>
  ndc bandwidth removeiquota <iface>

Change-Id: I370d223da3c8b6e16e8d0a455309ae9e0756a721
BandwidthController.cpp
BandwidthController.h
CommandListener.cpp