Home | History | Annotate | Download | only in netinet

Lines Matching defs:softc

371 ipfattach(ipf_main_softc_t *softc)
391 if ((softc->ipf_running > 0) || (ipf_checkp == ipf_check)) {
398 if (ipf_init_all(softc) < 0) {
492 if (softc->ipf_control_forwarding & 1)
502 callout_init(&softc->ipf_slow_ch, 0);
504 callout_init(&softc->ipf_slow_ch);
506 callout_reset(&softc->ipf_slow_ch, (hz / IPF_HZ_DIVIDE) * IPF_HZ_MULT,
507 ipf_timer_func, softc);
509 timeout(ipf_timer_func, softc, (hz / IPF_HZ_DIVIDE) * IPF_HZ_MULT);
517 ipf_fini_all(softc);
525 ipf_main_softc_t *softc = ptr;
529 READ_ENTER(&softc->ipf_global);
531 if (softc->ipf_running > 0)
532 ipf_slowtimer(softc);
534 if (softc->ipf_running == -1 || softc->ipf_running == 1) {
536 callout_reset(&softc->ipf_slow_ch, hz / 2,
537 ipf_timer_func, softc);
539 timeout(ipf_timer_func, softc,
543 RWLOCK_EXIT(&softc->ipf_global);
553 ipfdetach(ipf_main_softc_t *softc)
575 if (softc->ipf_running > 0)
576 callout_stop(&softc->ipf_slow_ch);
582 (void) ipf_flush(softc, IPL_LOGIPF, FR_INQUE|FR_OUTQUE|FR_INACTIVE);
583 (void) ipf_flush(softc, IPL_LOGIPF, FR_INQUE|FR_OUTQUE);
586 if (softc->ipf_control_forwarding & 2)
645 ipf_fini_all(softc);
1102 ipf_main_softc_t *softc;
1135 softc = fin->fin_main_soft;
1366 softc->ipf_frouteok[0]++;
1368 softc->ipf_frouteok[1]++;
1570 ipf_ifpaddr(ipf_main_softc_t *softc, int v, int atype, void *ifptr,
1700 ipf_main_softc_t *softc = fin->fin_main_soft;
1704 MUTEX_ENTER(&softc->ipf_rw);
1706 MUTEX_EXIT(&softc->ipf_rw);