• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/ipfilter/netinet/

Lines Matching defs:hm

378 	hostmap_t *hm;
394 for (hm = softn->ipf_hm_maptable[hv]; hm; hm = hm->hm_next)
395 if (IP6_EQ(&hm->hm_osrc6, src) &&
396 IP6_EQ(&hm->hm_odst6, dst) &&
397 ((np == NULL) || (np == hm->hm_ipnat)) &&
398 ((port == 0) || (port == hm->hm_port))) {
400 hm->hm_ref++;
401 return hm;
409 KMALLOC(hm, hostmap_t *);
410 if (hm) {
411 hm->hm_next = softn->ipf_hm_maplist;
412 hm->hm_pnext = &softn->ipf_hm_maplist;
414 softn->ipf_hm_maplist->hm_pnext = &hm->hm_next;
415 softn->ipf_hm_maplist = hm;
416 hm->hm_hnext = softn->ipf_hm_maptable[hv];
417 hm->hm_phnext = softn->ipf_hm_maptable + hv;
419 softn->ipf_hm_maptable[hv]->hm_phnext = &hm->hm_hnext;
420 softn->ipf_hm_maptable[hv] = hm;
421 hm->hm_ipnat = np;
423 hm->hm_osrcip6 = *src;
424 hm->hm_odstip6 = *dst;
425 hm->hm_nsrcip6 = *map;
426 hm->hm_ndstip6.i6[0] = 0;
427 hm->hm_ndstip6.i6[1] = 0;
428 hm->hm_ndstip6.i6[2] = 0;
429 hm->hm_ndstip6.i6[3] = 0;
430 hm->hm_ref = 1;
431 hm->hm_port = port;
432 hm->hm_hv = hv;
433 hm->hm_v = 6;
438 return hm;
465 hostmap_t *hm;
476 hm = NULL;
503 hm = ipf_nat6_hostmap(softn, np, &fin->fin_src6,
505 if (hm != NULL)
506 in = hm->hm_nsrcip6;
507 } else if ((l == 1) && (hm != NULL)) {
508 ipf_nat_hostmapdel(softc, &hm);
511 nat->nat_hm = hm;
592 (np->in_spnext == 0) && ((l > 0) || (hm == NULL))) {
746 hostmap_t *hm;
754 hm = NULL;
782 hm = ipf_nat6_hostmap(softn, NULL, &fin->fin_src6,
784 if (hm != NULL) {
785 in = hm->hm_ndstip6;
786 np = hm->hm_ipnat;
802 hm = ipf_nat6_hostmap(softn, NULL, &fin->fin_src6,
805 if (hm != NULL) {
806 in = hm->hm_ndstip6;
811 if (hm == NULL || hm->hm_ref == 1) {
961 hostmap_t *hm = NULL;
1128 if ((hm = nat->nat_hm) != NULL)
1129 ipf_nat_hostmapdel(softc, &hm);