cvs commit: src/sys/netgraph/netflow netflow.c ng_netflow.c ng_netflow.h

Gleb Smirnoff glebius at FreeBSD.org
Mon Mar 21 07:34:03 PST 2005


glebius     2005-03-21 15:34:03 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph/netflow netflow.c ng_netflow.c ng_netflow.h 
  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.11      +60 -92    src/sys/netgraph/netflow/netflow.c
  1.6       +5 -1      src/sys/netgraph/netflow/ng_netflow.c
  1.4       +2 -7      src/sys/netgraph/netflow/ng_netflow.h


More information about the cvs-src mailing list