summaryrefslogtreecommitdiffstats
path: root/sbin/ipfw/dummynet.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge buffer-printing changes from from projects/ipfw as preparationmelifaro2014-08-231-18/+23
| | | | | | for branch merge. Requested by: luigi
* ECN marking implenetation for dummynet.hiren2014-06-011-5/+19
| | | | | | | | | | Changes include both DCTCP and RFC 3168 ECN marking methodology. DCTCP draft: http://tools.ietf.org/html/draft-bensley-tcpm-dctcp-00 Submitted by: Midori Kato (aoimidori27@gmail.com) Worked with: Lars Eggert (lars@netapp.com) Reviewed by: luigi, hiren
* Fix some compile errors at high WARNS, including oneluigi2012-07-301-6/+8
| | | | | | | | | for an uninitialized variable. unused parameters and variables are annotated with (void)foo; /* UNUSED */ instead of __unused, because this code needs to build also on linux and windows.
* remove some write-only variables.luigi2012-03-011-7/+2
| | | | | There is another block of code that is now useless as the computation is done in the kernel.
* More whitespace fixes.glebius2011-04-181-1/+1
| | | | Checked with: md5, diff -x -w
* Whitespace fixes.glebius2011-04-181-30/+30
| | | | Checked with: md5, diff -w
* expand_number(3) takes a uint64_t * now.des2010-08-191-1/+1
| | | | MFC after: 3 weeks
* better printing of headers when listing flowsluigi2010-07-151-8/+18
|
* Slightly different handling of printf/snprintf for unaligned uint64_t,luigi2010-04-191-4/+4
| | | | | | | which should improve readability, and also to ease the port to platforms that do not support %llu MFC after: 3 days
* accept lower case m as a synonym for Mega (bit/s or bytes/s).luigi2010-03-151-1/+1
|
* + implement (two lines) the kernel side of 'lookup dscp N' to use theluigi2010-03-151-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dscp as a search key in table lookups; + (re)implement a sysctl variable to control the expire frequency of pipes and queues when they become empty; + add 'queue number' as optional part of the flow_id. This can be enabled with the command queue X config mask queue ... and makes it possible to support priority-based schedulers, where packets should be grouped according to the priority and not some fields in the 5-tuple. This is implemented as follows: - redefine a field in the ipfw_flow_id (in sys/netinet/ip_fw.h) but without changing the size or shape of the structure, so there are no ABI changes. On passing, also document how other fields are used, and remove some useless assignments in ip_fw2.c - implement small changes in the userland code to set/read the field; - revise the functions in ip_dummynet.c to manipulate masks so they also handle the additional field; There are no ABI changes in this commit.
* implement listing of a subset of pipes/queues/schedulers.luigi2010-03-111-28/+117
| | | | | The filtering of the output is done in the kernel instead of userland to reduce the amount of data transfered.
* make the listing of queues/pipes/schedulers handle the case ofluigi2010-03-041-4/+19
| | | | data size increasing while we fetch the info.
* remove stale commentluigi2010-03-041-2/+0
|
* Bring in the most recent version of ipfw and dummynet, developedluigi2010-03-021-331/+517
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and tested over the past two months in the ipfw3-head branch. This also happens to be the same code available in the Linux and Windows ports of ipfw and dummynet. The major enhancement is a completely restructured version of dummynet, with support for different packet scheduling algorithms (loadable at runtime), faster queue/pipe lookup, and a much cleaner internal architecture and kernel/userland ABI which simplifies future extensions. In addition to the existing schedulers (FIFO and WF2Q+), we include a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new, very fast version of WF2Q+ called QFQ. Some test code is also present (in sys/netinet/ipfw/test) that lets you build and test schedulers in userland. Also, we have added a compatibility layer that understands requests from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries, and replies correctly (at least, it does its best; sometimes you just cannot tell who sent the request and how to answer). The compatibility layer should make it possible to MFC this code in a relatively short time. Some minor glitches (e.g. handling of ipfw set enable/disable, and a workaround for a bug in RELENG_7's /sbin/ipfw) will be fixed with separate commits. CREDITS: This work has been partly supported by the ONELAB2 project, and mostly developed by Riccardo Panicucci and myself. The code for the qfq scheduler is mostly from Fabio Checconi, and Marta Carbone and Francesco Magno have helped with testing, debugging and some bug fixes.
* fix argument type in the call to expand_numberluigi2009-12-041-1/+1
| | | | | Submitted by: gcc 4.3 MFC after: 3 days
* use qsort_r instead of heapsort;luigi2009-12-031-4/+4
| | | | | | staticize two functions. MFC after: 3 days
* Fix minor resource leak in a function.netchild2009-11-211-0/+2
| | | | | Reviewed by: luigi MFC after: 1 week
* - fix dummynet 'fast' mode for WF2Q case.oleg2009-06-241-6/+31
| | | | | | - fix printing of pipe profile data. - introduce new pipe parameter: 'burst' - how much data can be sent through pipe bypassing bandwidth limit.
* Permit the specification of bandwidth values withinluigi2009-06-081-29/+57
| | | | | | | | | "profile" files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place). Update the manpage accordingly. Submitted by: Marta Carbone
* remove a printf that was only useful for debugging.luigi2009-06-051-2/+0
| | | | MFC after: 3 days
* Add emulation of delay profiles, which lets you model variousluigi2009-04-091-1/+316
| | | | | | | | | | | | | | | | | | | | types of MAC overheads such as preambles, link level retransmissions and more. Note- this commit changes the userland/kernel ABI for pipes (but not for ordinary firewall rules) so you need to rebuild kernel and /sbin/ipfw to use dummynet features. Please check the manpage for details on the new feature. The MFC would be trivial but it breaks the ABI, so it will be postponed until after 7.2 is released. Interested users are welcome to apply the patch manually to their RELENG_7 tree. Work supported by the European Commission, Projects Onelab and Onelab2 (contract 224263).
* remove duplicate #includeluigi2009-02-021-1/+0
|
* put the altq-related functions into a separate file.luigi2009-02-011-4/+4
| | | | | Minor cleanup of the includes used by the various source files, including annotations of why certain headers are used.
* fix printing of uint64_t values, so we can use WARNS=2luigi2009-01-271-8/+12
|
* fix wrong variable usage...luigi2009-01-271-2/+1
|
* Put dummynet-related code in a separate file.luigi2009-01-271-0/+717
To this purpose, add prototypes for global functions in ipfw2.h and move there also the list of tokens used in various places in the code.
OpenPOWER on IntegriCloud