aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxlu_vif.c
Commit message (Collapse)AuthorAgeFilesLines
* libxl: fix vif rate parsingIan Jackson2013-10-101-6/+13
| | | | | | | | | | | | | | | strtok can return NULL here. We don't need to use strtok anyway, so just use a simple strchr method. Coverity-ID: 1055642 This is CVE-2013-4369 / XSA-68 Signed-off-by: Matthew Daley <mattjd@gmail.com> Fix type. Add test case Signed-off-by: Ian Campbell <Ian.campbell@citrix.com>
* libxlu: Rename filename to config_sourceGeorge Dunlap2012-05-151-1/+1
| | | | | | | | | | | | | | The "filename" is a bit of a misnomer, as it's only used during error messages, and in most instances cases is actually set to "command line". Rename it to "config_source" to make it clear that it's not used to actually open any files. No functional changes. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* xl: add support for vif rate limitingMathieu Gagne2012-04-241-0/+141
The `rate` keyword specifies the rate at which the outgoing traffic will be limited to. The default if this keyword is not specified is unlimited. The `rate` keyword supports an optional replenishment interval parameter for specifying the granularity of credit replenishment. It determines the frequency at which the vif transmission credit is replenished. The default interval is 50ms. For example: 'rate=10Mb/s' 'rate=250KB/s' 'rate=1MB/s@20ms' Signed-off-by: Mathieu Gagne <mgagne@iweb.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>