Gleb Smirnoff
674d86bf91
Node constructor methods are supposed to be called in syscall
...
context always. Convert nodes to consistently use M_WAITOK flag
for memory allocation.
Reviewed by: julian
2011-04-18 09:12:27 +00:00
Alexander Motin
c77b232bb6
- Account all node stats at the shape mode.
...
- Do not check destination hook presence, it will be done by netgraph.
- Use u_int instead of int in some places to simplify type conversions.
- Use NG_SEND_DATA_ONLY() macro instead of selfmade equivalent.
2008-03-30 07:53:51 +00:00
Alexander Motin
c86d865ec8
Switch from timeval to bintime, to use 1/(2^20) of seconds instead of
...
microseconds. It allows to use bit shifts instead of some heavy 64bit
mul/div math operations.
2008-03-27 20:04:20 +00:00
Alexander Motin
673f5a8b44
Add option to set packets per second limits instead of default
...
bits per second ones.
2007-12-19 22:50:14 +00:00
Alexander Motin
df01e68922
Add missing ng_uncallout() on node shutdown.
...
Approved by: glebius (mentor)
2007-06-13 11:01:17 +00:00
Alexander Motin
b50ace7384
Fix small copy/paste mistake.
2007-05-17 13:33:38 +00:00
Alexander Motin
ae1be01f9e
Style cleanup.
...
Approved by: glebius (mentor)
2007-05-16 12:11:09 +00:00
Alexander Motin
c97bf8c3bd
A node that implements various traffic shaping and rate limiting algorithms.
...
Approved by: glebius (mentor)
2007-05-15 16:09:23 +00:00