Date: Mon, 21 Mar 2005 15:40:25 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netgraph/netflow ng_netflow.c Message-ID: <200503211540.j2LFePYt051819@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503211540.j2LFePYt051819>