cvs commit: src/sys/netgraph/netflow ng_netflow.c
Gleb Smirnoff
glebius at FreeBSD.org
Mon Mar 21 07:40:25 PST 2005
glebius 2005-03-21 15:40:25 UTC
FreeBSD src repository
Modified files:
sys/netgraph/netflow ng_netflow.c
Log:
Refactor node so that it does not modify mbuf contents. Next step would
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().
Revision Changes Path
1.7 +68 -19 src/sys/netgraph/netflow/ng_netflow.c
More information about the cvs-src
mailing list