summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netflow/ng_netflow.h
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to generate egress netflow instead or in addition to ingress.mav2008-10-081-1/+25
| | | | | | | | | | Use mbuf tagging for accounted packets to not account packets twice when both ingress and egress netflow enabled. To keep compatibility new "setconfig" message added to control new functionality. By default node works as before, doing only ingress accounting without using mbuf tags. Reviewed by: glebius
* Bump maximum number of interface hooks to the maximum possible value.glebius2007-03-281-1/+1
| | | | | | | | This will increase the memory consumption for more than 1 Mb, but this is required for operation on multiinterface access concentrators running mpd. Requested by: Alexander Motin
* - Increase maximum number of interfaces to 2048.glebius2006-02-091-9/+8
| | | | | | - Regroup softc so that frequently used elements are grouped in the beginning, while the interfaces array is at the end.
* Mark appropriate commands with NGM_READONLY and NGM_HASREPLY andglebius2006-01-121-7/+7
| | | | bump type cookie.
* - 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