--- fwsync/driver/fwsync.h 2022/06/29 19:44:58 1.2 +++ fwsync/driver/fwsync.h 2022/08/18 11:30:27 1.9 @@ -24,9 +24,15 @@ #include #include #include +#include #include #include #include + +#include +#include +#include + #include #include #include @@ -34,28 +40,15 @@ #include #include #include - -#define IPFW_INTERNAL - #include + #include #include "fwsync_proto.h" +#include "fwsync_utils.h" #include "fwsync_workers.h" -#if 0 -#include -#include -#include -#include -#include -#include -#include -#include -#endif - - #define IFT_FWSYNC 0xfc #define DRV_NAME "fwsync" @@ -175,9 +168,10 @@ extern struct fwsync_context fws_ctx; extern struct cfg_sync fws_cfg; extern struct task fws_sndpkt_task; extern struct taskqueue *fws_tq; -extern struct mtx fws_mtx_c, fws_mtx_e; +extern struct callout fws_co; +extern struct mtx fws_mtx_c, fws_mtx_e, fws_mtx_u, fws_mtx_n; extern struct mbuf *fws_sndpkt; -extern fwsync_sndpkt_t fwsync_sndpkt; +extern fwsync_sndpkt_t fwsync_sndpkt, fwsync_updpkt, fwsync_natpkt; int fwsync_cfg(struct ip_fw_chain *ch, ip_fw3_opheader *op3, struct sockopt_data *sd); int fwsync_destroy(struct ip_fw_chain *ch, ip_fw3_opheader *op3, struct sockopt_data *sd);