Lines Matching refs:ifs
28 void dumpnat __P((ipf_stack_t *ifs));
29 void dumpstate __P((ipf_stack_t *ifs));
30 void dumplookups __P((ipf_stack_t *ifs));
31 void dumpgroups __P((ipf_stack_t *ifs));
32 void drain_log __P((char *, ipf_stack_t *ifs));
78 ipf_stack_t *ifs;
92 ifs = create_ifs();
95 ifs->ifs_fr_pass = FR_BLOCK|FR_NOMATCH;
97 ifs->ifs_fr_pass = (IPF_DEFAULT_PASS)|FR_NOMATCH;
99 ipftuneable_alloc(ifs);
101 MUTEX_INIT(&ifs->ifs_ipf_rw, "ipf rw mutex");
102 MUTEX_INIT(&ifs->ifs_ipf_timeoutlock, "ipf timeout lock");
103 RWLOCK_INIT(&ifs->ifs_ipf_global, "ipf filter load/unload mutex");
104 RWLOCK_INIT(&ifs->ifs_ipf_mutex, "ipf filter rwlock");
105 RWLOCK_INIT(&ifs->ifs_ipf_ipidfrag, "ipf IP NAT-Frag rwlock");
106 RWLOCK_INIT(&ifs->ifs_ipf_frcache, "ipf rule cache rwlock");
108 fr_loginit(ifs);
109 fr_authinit(ifs);
110 fr_fraginit(ifs);
111 fr_stateinit(ifs);
112 fr_natinit(ifs);
113 appr_init(ifs);
114 ip_lookup_init(ifs);
115 ifs->ifs_fr_running = 1;
216 ifp = get_unit(iface, IP_V(ip), ifs);
235 i = fr_check(ip, hlen, ifp, dir, &m, ifs);
303 drain_log(logout, ifs);
307 dumpnat(ifs);
308 dumpstate(ifs);
309 dumplookups(ifs);
310 dumpgroups(ifs);
313 fr_deinitialise(ifs);
630 void dumpnat(ifs)
631 ipf_stack_t *ifs;
637 for (ipn = ifs->ifs_nat_list; ipn != NULL; ipn = ipn->in_next)
640 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
651 void dumpstate(ifs)
652 ipf_stack_t *ifs;
657 for (ips = ifs->ifs_ips_list; ips != NULL; )
659 ifs->ifs_fr_ticks);
663 void dumplookups(ifs)
664 ipf_stack_t *ifs;
672 for (ipl = ifs->ifs_ip_pool_list[i]; ipl != NULL;
678 for (iph = ifs->ifs_ipf_htables[i]; iph != NULL;
684 void dumpgroups(ifs)
685 ipf_stack_t *ifs;
693 for (fg = ifs->ifs_ipfgroups[i][0]; fg != NULL;
709 for (fg = ifs->ifs_ipfgroups[i][1]; fg != NULL;
725 void drain_log(filename, ifs)
727 ipf_stack_t *ifs;
753 if (ipflog_read(i, &uio, ifs) == 0) {
809 ipf_stack_t *ifs;
811 KMALLOCS(ifs, ipf_stack_t *, sizeof (*ifs));
812 bzero(ifs, sizeof (*ifs));
813 gifs = ifs;
814 return (ifs);