- Move unlinking ipflow from table/list out of ipflow_free().
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 27 Oct 2008 09:57:11 +0000 (09:57 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 27 Oct 2008 09:57:11 +0000 (09:57 +0000)
commita716f01583a4fc1043e540796be49f402de57886
treee757ad843f4045d27292df86754cd43c9f334a8d
parentf1cc5f0f5592594281c8bd966c5a49c96dd62591
- 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.
sys/netinet/ip_flow.c