CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2023/12/08 16:13:40

Modified files:
        sys/net        : if_pflow.c if_pflow.h 

Log message:
Introduce `sc_mtx' mutex(9) to protect the most of pflow_softc
structure. Protect the `send_nam', `sc_flowsrc' and `sc_flowdst'
pflow_softc members by existing `sc_lock' rwlock(9).

This partially fixes locking inconsistency of pflow_softc. The following
work will be done with separate diffs.

Also, pass `sc' instead of NULL to pflow_get_mbuf() while calling from
pflow_sendout_ipfix_tmpl(). This fixes the NULL dereference.

ok bluhm@

Reply via email to