summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netflow/ng_netflow.h
Commit message (Collapse)AuthorAgeFilesLines
* - Gather statistics about failed mbuf+cluster+ng_item allocations.glebius2005-05-121-8/+10
| | | | - Adjust comments and variables names in nfinfo.
* A new version of NetFlow node.glebius2005-05-111-30/+32
| | | | | | | | | | | | | | | | | | | The most significant changes are: - Use UMA zone instead of own chunk of memory. - Lock each hash entry separately. - Expire items "actively" - interrupt method can expire flows from hash slot, when it searches through it. - Remove global tailqueue. Make callout thread search through every hash slot. - Export datagram is detached from private data and filled. If it is incomplete, it is attached back. Another thread will continue working with it. Lesser, but also important speedups: - Flows in hash slot are stored in tailqueue. Whenever a flow is hit, it is moved to the begging, so it can be located quicker. - When callout thread works with hash slot it bails out if slot mutex is contested.
* Add a possibility to bypass unmodified accounted data to specialglebius2005-03-221-0/+2
| | | | hook(s). Data received on these hook(s) is sent back to ifaceX hook(s).
* Refactor node so that it does not modify mbuf contents. Next step wouldglebius2005-03-211-7/+2
| | | | | | | | | | | | | be pass-thru mode, when traffic is not copied by ng_tee, but passed thru ng_netflow. Changes made: - In ng_netflow_rcvdata() do all necessary pulluping: Ethernet header, IP header, and TCP/UDP header. - Pass only pointer to struct ip to ng_netflow_flow_add(). Any TCP/UDP headers are guaranteed to by after it. - Merge make_flow_rec() function into ng_netflow_flow_add().
* - Use uint16_t to pass argument for NGM_NETFLOW_IFINFO, bump cookie.glebius2004-12-051-2/+2
| | | | | | | | | | - Always check that index number passed from userland is <= NG_NETFLOW_MAXIFACES. [1] - Increase NG_NETFLOW_MAXIFACES up to 512. [2] Noticed by: Roman Palagin [1] Requested by: Yuri Y. Bushmelev [2] MFC after: 1 week
* - Remove advertising clause from copyright [1]glebius2004-09-171-8/+1
| | | | | | - Change my email to glebius@FreeBSD.org Requested by: ru [1]
* A netgraph node implementing Netflow version 5.glebius2004-09-161-0/+282
Supported by: Bestcom ISP, Rinet ISP Approved by: julian (mentor)
OpenPOWER on IntegriCloud