Lines Matching refs:ipnat_t

155 ipnat_t	*nat_list = NULL;
166 ipnat_t **nat_rules = NULL;
167 ipnat_t **rdr_rules = NULL;
205 static int nat_match(fr_info_t *, ipnat_t *);
210 static hostmap_t *nat_hostmap(ipnat_t *, struct in_addr,
213 static int nat_siocaddnat(ipnat_t *, ipnat_t **, int);
214 static void nat_siocdelnat(ipnat_t *, ipnat_t **, int);
217 static int nat_resolverule(ipnat_t *);
249 KMALLOCS(nat_rules, ipnat_t **, sizeof(ipnat_t *) * ipf_natrules_sz);
251 bzero((char *)nat_rules, ipf_natrules_sz * sizeof(ipnat_t *));
255 KMALLOCS(rdr_rules, ipnat_t **, sizeof(ipnat_t *) * ipf_rdrrules_sz);
257 bzero((char *)rdr_rules, ipf_rdrrules_sz * sizeof(ipnat_t *));
354 nat_addrdr(ipnat_t *n)
356 ipnat_t **np;
386 nat_addnat(ipnat_t *n)
388 ipnat_t **np;
416 nat_delrdr(ipnat_t *n)
432 nat_delnat(ipnat_t *n)
455 nat_hostmap(ipnat_t *np, struct in_addr src, struct in_addr dst, struct in_addr map, u_32_t port)
648 ipnat_t *nat, *nt, *n = NULL, **np = NULL;
650 ipnat_t natd;
680 KMALLOC(nt, ipnat_t *);
974 nat_siocaddnat(ipnat_t *n, ipnat_t **np, int getlock)
1107 nat_resolverule(ipnat_t *n)
1142 nat_siocdelnat(ipnat_t *n, ipnat_t **np, int getlock)
1408 ipnat_t *in;
1470 KMALLOC(in, ipnat_t *);
1861 ipnat_t *n, **np = &nat_list;
1913 ipnat_t *np;
2183 ipnat_t *np;
2373 nat_new(fr_info_t *fin, ipnat_t *np, nat_t **natsave, u_int flags, int direction)
2593 ipnat_t *np;
3060 ipnat_t *np;
3147 ipnat_t *ipn;
3393 ipnat_t *ipn;
3629 nat_match(fr_info_t *fin, ipnat_t *np)
3688 ipnat_t *np = nat->nat_ptr;
3758 ipnat_t *np = NULL, *npnext;
3925 ipnat_t *np;
4044 ipnat_t *np, *npnext;
4225 ipnat_t *np;
4420 KFREES(nat_rules, sizeof(ipnat_t *) * ipf_natrules_sz);
4424 KFREES(rdr_rules, sizeof(ipnat_t *) * ipf_rdrrules_sz);
4532 ipnat_t *n;
4729 fr_ipnatderef(ipnat_t **inp)
4731 ipnat_t *in;
4804 ipnat_t *np;
5054 ipnat_t *ipn = NULL, *nextipnat = NULL, zeroipn;
5176 obj->ipfo_size = sizeof(ipnat_t);