Lines Matching defs:ifs

33 void	dumpnat __P((ipf_stack_t *ifs));
34 void dumpstate __P((ipf_stack_t *ifs));
35 void dumplookups __P((ipf_stack_t *ifs));
36 void dumpgroups __P((ipf_stack_t *ifs));
37 void drain_log __P((char *, ipf_stack_t *ifs));
83 ipf_stack_t *ifs;
97 ifs = create_ifs();
100 ifs->ifs_fr_pass = FR_BLOCK|FR_NOMATCH;
102 ifs->ifs_fr_pass = (IPF_DEFAULT_PASS)|FR_NOMATCH;
104 ipftuneable_alloc(ifs);
106 MUTEX_INIT(&ifs->ifs_ipf_rw, "ipf rw mutex");
107 MUTEX_INIT(&ifs->ifs_ipf_timeoutlock, "ipf timeout lock");
108 RWLOCK_INIT(&ifs->ifs_ipf_global, "ipf filter load/unload mutex");
109 RWLOCK_INIT(&ifs->ifs_ipf_mutex, "ipf filter rwlock");
110 RWLOCK_INIT(&ifs->ifs_ipf_ipidfrag, "ipf IP NAT-Frag rwlock");
111 RWLOCK_INIT(&ifs->ifs_ipf_frcache, "ipf rule cache rwlock");
113 fr_loginit(ifs);
114 fr_authinit(ifs);
115 fr_fraginit(ifs);
116 fr_stateinit(ifs);
117 fr_natinit(ifs);
118 appr_init(ifs);
119 ip_lookup_init(ifs);
120 ifs->ifs_fr_running = 1;
221 ifp = get_unit(iface, IP_V(ip), ifs);
240 i = fr_check(ip, hlen, ifp, dir, &m, ifs);
308 drain_log(logout, ifs);
312 dumpnat(ifs);
313 dumpstate(ifs);
314 dumplookups(ifs);
315 dumpgroups(ifs);
318 fr_deinitialise(ifs);
635 void dumpnat(ifs)
636 ipf_stack_t *ifs;
642 for (ipn = ifs->ifs_nat_list; ipn != NULL; ipn = ipn->in_next)
645 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
656 void dumpstate(ifs)
657 ipf_stack_t *ifs;
662 for (ips = ifs->ifs_ips_list; ips != NULL; )
664 ifs->ifs_fr_ticks);
668 void dumplookups(ifs)
669 ipf_stack_t *ifs;
677 for (ipl = ifs->ifs_ip_pool_list[i]; ipl != NULL;
683 for (iph = ifs->ifs_ipf_htables[i]; iph != NULL;
689 void dumpgroups(ifs)
690 ipf_stack_t *ifs;
698 for (fg = ifs->ifs_ipfgroups[i][0]; fg != NULL;
714 for (fg = ifs->ifs_ipfgroups[i][1]; fg != NULL;
730 void drain_log(filename, ifs)
732 ipf_stack_t *ifs;
758 if (ipflog_read(i, &uio, ifs) == 0) {
814 ipf_stack_t *ifs;
816 KMALLOCS(ifs, ipf_stack_t *, sizeof (*ifs));
817 bzero(ifs, sizeof (*ifs));
818 gifs = ifs;
819 return (ifs);