]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refactor node so that it does not modify mbuf contents. Next step would
authorglebius <glebius@FreeBSD.org>
Mon, 21 Mar 2005 15:40:25 +0000 (15:40 +0000)
committerglebius <glebius@FreeBSD.org>
Mon, 21 Mar 2005 15:40:25 +0000 (15:40 +0000)
commitb4470372ca452e826631f686b6e651a110e72675
tree668c14edbf45186cd8c12e102c805a25cf1420e0
parentf55027e9fb92a9b34b346d1411fd9c5b6e779df9
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().
sys/netgraph/netflow/ng_netflow.c