Home | History | Annotate | Download | only in netinet

Lines Matching refs:ipnat_t

223 static	void	ipf_nat_addmap(ipf_nat_softc_t *, ipnat_t *);
224 static void ipf_nat_addrdr(ipf_nat_softc_t *, ipnat_t *);
225 static int ipf_nat_builddivertmp(ipf_nat_softc_t *, ipnat_t *);
227 static int ipf_nat_cmp_rules(ipnat_t *, ipnat_t *);
230 ipnat_t *, int);
237 static hostmap_t *ipf_nat_hostmap(ipf_nat_softc_t *, ipnat_t *,
243 static int ipf_nat_match(fr_info_t *, ipnat_t *);
255 static int ipf_nat_resolverule(ipf_main_softc_t *, ipnat_t *);
257 ipf_nat_softc_t *, ipnat_t *);
258 static void ipf_nat_rule_fini(ipf_main_softc_t *, ipnat_t *);
260 ipnat_t *);
262 ipnat_t *, int);
264 ipnat_t *, int);
411 KMALLOCS(softn->ipf_nat_map_rules, ipnat_t **, \
412 sizeof(ipnat_t *) * softn->ipf_nat_maprules_sz);
416 softn->ipf_nat_maprules_sz * sizeof(ipnat_t *));
421 KMALLOCS(softn->ipf_nat_rdr_rules, ipnat_t **, \
422 sizeof(ipnat_t *) * softn->ipf_nat_rdrrules_sz);
426 softn->ipf_nat_rdrrules_sz * sizeof(ipnat_t *));
565 sizeof(ipnat_t *) * softn->ipf_nat_maprules_sz);
570 sizeof(ipnat_t *) * softn->ipf_nat_rdrrules_sz);
635 ipf_nat_addrdr(ipf_nat_softc_t *softn, ipnat_t *n)
637 ipnat_t **np;
675 ipf_nat_addmap(ipf_nat_softc_t *softn, ipnat_t *n)
677 ipnat_t **np;
713 ipf_nat_delrdr(ipf_nat_softc_t *softn, ipnat_t *n)
736 ipf_nat_delmap(ipf_nat_softc_t *softn, ipnat_t *n)
766 ipf_nat_hostmap(ipf_nat_softc_t *softn, ipnat_t *np, struct in_addr src,
985 ipnat_t *nat, *nt, *n;
986 ipnat_t *natd = NULL;
1019 KMALLOC(natd, ipnat_t *);
1035 if (natd->in_size < sizeof(ipnat_t)) {
1039 KMALLOCS(nt, ipnat_t *, natd->in_size);
1139 KMALLOC(natd, ipnat_t *);
1428 ipf_nat_siocaddnat(ipf_main_softc_t *softc, ipf_nat_softc_t *softn, ipnat_t *n,
1533 ipnat_t *n)
1601 ipf_nat_resolverule(ipf_main_softc_t *softc, ipnat_t *n)
1648 ipf_nat_siocdelnat(ipf_main_softc_t *softc, ipf_nat_softc_t *softn, ipnat_t *n,
1917 ipnat_t *in;
2001 KMALLOCS(in, ipnat_t *, ipnn->ipn_ipnat.in_size);
2478 ipnat_t *n;
2518 ipf_nat_delrule(ipf_main_softc_t *softc, ipf_nat_softc_t *softn, ipnat_t *np,
2598 ipnat_t *np;
2859 ipnat_t *np;
3059 ipf_nat_add(fr_info_t *fin, ipnat_t *np, nat_t **natsave, u_int flags,
3367 ipnat_t *in;
4028 ipnat_t *ipn;
4357 ipnat_t *ipn;
4655 ipf_nat_match(fr_info_t *fin, ipnat_t *np)
4723 ipnat_t *np = nat->nat_ptr;
4779 ipnat_t *np = NULL, *npnext;
4994 ipnat_t *np;
5275 ipnat_t *np, *npnext;
5487 ipnat_t *np;
5861 ipnat_t *n;
6151 ipf_nat_rule_deref(ipf_main_softc_t *softc, ipnat_t **inp)
6154 ipnat_t *n;
6262 ipnat_t *np;
6521 ipnat_t *ipn, *nextipnat = NULL, zeroipn;
6933 ipnat_t *np;
7151 ipnat_t *np;
7228 ipf_nat_builddivertmp(ipf_nat_softc_t *softn, ipnat_t *np)
8073 ipnat_t **newtab, *np, ***old, **npp;
8099 KMALLOCS(newtab, ipnat_t **, newsize * sizeof(ipnat_t *));
8105 bzero((char *)newtab, newsize * sizeof(ipnat_t *));
8110 KFREES(*old, *t->ipft_pint * sizeof(ipnat_t **));
8280 ipf_nat_cmp_rules(ipnat_t *n1, ipnat_t *n2)
8286 offsetof(ipnat_t, in_ndst) - offsetof(ipnat_t, in_v)) != 0)
8290 n1->in_size - offsetof(ipnat_t, in_tuc)) != 0)
8333 ipf_nat_rule_init(ipf_main_softc_t *softc, ipf_nat_softc_t *softn, ipnat_t *n)
8401 ipf_nat_rule_fini(ipf_main_softc_t *softc, ipnat_t *n)