cvs commit: src/sys/netinet ip_flow.c

Sepherosa Ziehau sephe at
Mon Oct 27 02:58:20 PDT 2008

sephe       2008/10/27 02:57:11 PDT

DragonFly src repository

  Modified files:
    sys/netinet          ip_flow.c 
  - Move unlinking ipflow from table/list out of ipflow_free().
  - Factor out ipflow_reset() to clear statistics of ipflow to be reused.
  - Add flags field in ipflow.  Currently only one flag is defined to make
    sure that the state of the ipflow is correct (on/off the table/list).
  - Reference count ipflow, so the ipflow used to do the ifnet.if_output()
    will not be reaped or changed behind our back.  Add commet about it.
  - Don't change or reuse an ipflow if it is being actively used,
    i.e. ipf_refcnt > 1
  - Fortify ipflow code by putting assertion in proper places.
  - Pad ipflow structure explicitly.
  Revision  Changes    Path
  1.26      +78 -21    src/sys/netinet/ip_flow.c

More information about the Commits mailing list