| /netbsd-src/external/bsd/ipf/dist/lib/ |
| H A D | printactivenat.c | 20 printactivenat(nat, opts, ticks) in printactivenat() argument 21 nat_t *nat; in printactivenat() 26 PRINTF("%s", getnattype(nat)); 28 if (nat->nat_flags & SI_CLONE) 30 if (nat->nat_phnext[0] == NULL && nat->nat_phnext[1] == NULL) 34 if (nat->nat_redir & NAT_REWRITE) { 35 printactiveaddress(nat->nat_v[0], "%-15s", &nat->nat_osrc6, 36 nat->nat_ifnames[0]); 38 if ((nat->nat_flags & IPN_TCPUDP) != 0) 39 PRINTF(" %-5hu", ntohs(nat->nat_osport)); [all …]
|
| H A D | getnattype.c | 22 getnattype(nat) in getnattype() argument 23 nat_t *nat; in getnattype() 28 if (!nat) 31 switch (nat->nat_redir) 65 nat->nat_redir & 0xffffffff);
|
| /netbsd-src/external/bsd/ipf/dist/tools/ |
| H A D | ipnat_y.y | 58 static ipnat_t *nat = NULL; variable 143 while ((nat = nattop) != NULL) { 144 if (nat->in_v[0] == 0) 145 nat->in_v[0] = 4; 146 if (nat->in_v[1] == 0) 147 nat->in_v[1] = nat->in_v[0]; 148 nattop = nat->in_next; 149 err = (*nataddfunc)(natfd, natioctlfunc, nat); 150 free(nat); 187 no: IPNY_NO { nat->in_flags |= IPN_NO; } [all …]
|
| H A D | ipnat.c | 351 nat_t *np, nat; local 382 for (np = nsp->ns_instances; np; np = nat.nat_next) { 383 if (kmemcpy((char *)&nat, (long)np, sizeof(nat))) 385 if ((filter != NULL) && (nat_matcharray(&nat, filter) == 0)) 389 printnatfield(&nat, nat_fields[i].w_value); 395 printactivenat(&nat, opts, nsp->ns_ticks); 396 if (nat.nat_aps) { 399 if (nat.nat_dir & NAT_OUTBOUND) 400 proto = nat.nat_pr[1]; 402 proto = nat.nat_pr[0]; [all …]
|
| /netbsd-src/sys/external/bsd/ipf/netinet/ |
| H A D | ip_nat6.c | 438 /* nat(I) - pointer to NAT entry */ 448 ipf_nat6_newmap(fr_info_t *fin, nat_t *nat, natinfo_t *ni) in ipf_nat6_newmap() argument 469 flags = nat->nat_flags; in ipf_nat6_newmap() 500 nat->nat_hm = hm; in ipf_nat6_newmap() 689 nat->nat_osrc6 = fin->fin_src6; in ipf_nat6_newmap() 690 nat->nat_nsrc6 = in; in ipf_nat6_newmap() 691 nat->nat_odst6 = fin->fin_dst6; in ipf_nat6_newmap() 692 nat->nat_ndst6 = fin->fin_dst6; in ipf_nat6_newmap() 693 if (nat->nat_hm == NULL) in ipf_nat6_newmap() 694 nat in ipf_nat6_newmap() 726 ipf_nat6_newrdr(fr_info_t * fin,nat_t * nat,natinfo_t * ni) ipf_nat6_newrdr() argument 944 nat_t *nat, *natl; ipf_nat6_add() local 1135 ipf_nat6_finalise(fr_info_t * fin,nat_t * nat) ipf_nat6_finalise() argument 1251 ipf_nat6_insert(ipf_main_softc_t * softc,ipf_nat_softc_t * softn,nat_t * nat) ipf_nat6_insert() argument 1374 nat_t *nat; ipf_nat6_icmperrorlookup() local 1566 nat_t *nat; ipf_nat6_icmperror() local 1878 nat_t *nat; ipf_nat6_inlookup() local 2098 ipf_nat6_tabmove(ipf_nat_softc_t * softn,nat_t * nat) ipf_nat6_tabmove() argument 2191 nat_t *nat; ipf_nat6_outlookup() local 2420 nat_t *nat; ipf_nat6_lookupredir() local 2574 nat_t *nat; ipf_nat6_checkout() local 2761 ipf_nat6_out(fr_info_t * fin,nat_t * nat,int natadd,u_32_t nflags) ipf_nat6_out() argument 2973 nat_t *nat; ipf_nat6_checkin() local 3162 ipf_nat6_in(fr_info_t * fin,nat_t * nat,int natadd,u_32_t nflags) ipf_nat6_in() argument 3363 ipf_nat6_newrewrite(fr_info_t * fin,nat_t * nat,natinfo_t * nai) ipf_nat6_newrewrite() argument 3589 ipf_nat6_newdivert(fr_info_t * fin,nat_t * nat,natinfo_t * nai) ipf_nat6_newdivert() argument 3724 ipf_nat6_decap(fr_info_t * fin,nat_t * nat) ipf_nat6_decap() argument [all...] |
| H A D | ip_nat.c | 142 /* nat */ 477 "nat ipftq udp tab"); in ipf_nat_soft_init() 481 "nat ipftq udpack tab"); in ipf_nat_soft_init() 485 "nat icmp ipftq tab"); in ipf_nat_soft_init() 489 "nat icmpack ipftq tab"); in ipf_nat_soft_init() 493 "nat ip ipftq tab"); in ipf_nat_soft_init() 496 IPFTQ_INIT(&softn->ipf_nat_pending, 1, "nat pending ipftq tab"); in ipf_nat_soft_init() 515 MUTEX_INIT(&softn->ipf_nat_new, "ipf nat new mutex"); in ipf_nat_soft_init() 516 MUTEX_INIT(&softn->ipf_nat_io, "ipf nat io mutex"); in ipf_nat_soft_init() 985 ipnat_t *nat, *n in ipf_nat_ioctl() local 1686 nat_t *nat, *n; ipf_nat_getsz() local 1779 nat_t *n, *nat; ipf_nat_getent() local 1914 nat_t *n, *nat; ipf_nat_putent() local 2264 ipf_nat_delete(ipf_main_softc_t * softc,struct nat * nat,int logtype) ipf_nat_delete() argument 2440 nat_t *nat; ipf_nat_flushtable() local 2532 nat_t *nat; ipf_nat_delrule() local 2589 ipf_nat_newmap(fr_info_t * fin,nat_t * nat,natinfo_t * ni) ipf_nat_newmap() argument 2850 ipf_nat_newrdr(fr_info_t * fin,nat_t * nat,natinfo_t * ni) ipf_nat_newrdr() argument 3065 nat_t *nat, *natl; ipf_nat_add() local 3253 ipf_nat_finalise(fr_info_t * fin,nat_t * nat) ipf_nat_finalise() argument 3363 ipf_nat_insert(ipf_main_softc_t * softc,ipf_nat_softc_t * softn,nat_t * nat) ipf_nat_insert() argument 3474 ipf_nat_hashtab_add(ipf_main_softc_t * softc,ipf_nat_softc_t * softn,nat_t * nat) ipf_nat_hashtab_add() argument 3574 nat_t *nat; ipf_nat_icmperrorlookup() local 3728 nat_t *nat; ipf_nat_icmperror() local 4029 nat_t *nat; ipf_nat_inlookup() local 4257 ipf_nat_tabmove(ipf_nat_softc_t * softn,nat_t * nat) ipf_nat_tabmove() argument 4358 nat_t *nat; ipf_nat_outlookup() local 4586 nat_t *nat; ipf_nat_lookupredir() local 4717 ipf_nat_update(fr_info_t * fin,nat_t * nat) ipf_nat_update() argument 4789 nat_t *nat; ipf_nat_checkout() local 4988 ipf_nat_out(fr_info_t * fin,nat_t * nat,int natadd,u_32_t nflags) ipf_nat_out() argument 5282 nat_t *nat; ipf_nat_checkin() local 5480 ipf_nat_in(fr_info_t * fin,nat_t * nat,int natadd,u_32_t nflags) ipf_nat_in() argument 5721 ipf_nat_proto(fr_info_t * fin,nat_t * nat,u_int nflags) ipf_nat_proto() argument 5862 nat_t *nat; ipf_nat_sync() local 6053 ipf_nat_log(ipf_main_softc_t * softc,ipf_nat_softc_t * softn,struct nat * nat,u_int action) ipf_nat_log() argument 6225 nat_t *nat; ipf_nat_deref() local 6256 ipf_nat_clone(fr_info_t * fin,nat_t * nat) ipf_nat_clone() argument 6339 ipf_nat_wildok(nat_t * nat,int sport,int dport,int flags,int dir) ipf_nat_wildok() argument 6462 ipf_nat_setqueue(ipf_main_softc_t * softc,ipf_nat_softc_t * softn,nat_t * nat) ipf_nat_setqueue() argument 6522 nat_t *nat, *nextnat = NULL, zeronat; ipf_nat_getnext() local 6666 nat_t *nat, **natp; ipf_nat_extraflush() local 6885 ipf_nat_setpending(ipf_main_softc_t * softc,nat_t * nat) ipf_nat_setpending() argument 6926 ipf_nat_newrewrite(fr_info_t * fin,nat_t * nat,natinfo_t * nai) ipf_nat_newrewrite() argument 7146 ipf_nat_newdivert(fr_info_t * fin,nat_t * nat,natinfo_t * nai) ipf_nat_newdivert() argument 7295 ipf_nat_decap(fr_info_t * fin,nat_t * nat) ipf_nat_decap() argument 7591 nat_t *nat, *natnext; ipf_nat_matchflush() local 7625 ipf_nat_matcharray(nat_t * nat,int * array,u_long ticks) ipf_nat_matcharray() argument 7907 nat_t **newtab[2], *nat, **natp; ipf_nat_rehash() local 8231 nat_t *nat; ipf_nat_uncreate() local [all...] |
| H A D | ip_tftp_pxy.c | 132 ipf_p_tftp_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_tftp_out() argument 137 if (nat->nat_dir == NAT_OUTBOUND) in ipf_p_tftp_out() 138 return ipf_p_tftp_client(softt, fin, aps, nat); in ipf_p_tftp_out() 139 return ipf_p_tftp_server(softt, fin, aps, nat); in ipf_p_tftp_out() 144 ipf_p_tftp_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_tftp_in() argument 149 if (nat->nat_dir == NAT_INBOUND) in ipf_p_tftp_in() 150 return ipf_p_tftp_client(softt, fin, aps, nat); in ipf_p_tftp_in() 151 return ipf_p_tftp_server(softt, fin, aps, nat); in ipf_p_tftp_in() 156 ipf_p_tftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_tftp_new() argument 166 np = nat->nat_ptr; in ipf_p_tftp_new() [all …]
|
| H A D | ip_rcmd_pxy.c | 70 ipf_p_rcmd_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_rcmd_new() argument 86 ipn = ipf_proxy_rule_rev(nat); in ipf_p_rcmd_new() 133 ipf_p_rcmd_portmsg(fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_rcmd_portmsg() argument 207 fi.fin_src6 = nat->nat_ndst6; in ipf_p_rcmd_portmsg() 208 fi.fin_dst6 = nat->nat_nsrc6; in ipf_p_rcmd_portmsg() 210 if (nat->nat_v[0] == 6) { in ipf_p_rcmd_portmsg() 212 if (nat->nat_dir == NAT_OUTBOUND) { in ipf_p_rcmd_portmsg() 214 nat->nat_pr[1], in ipf_p_rcmd_portmsg() 215 &nat->nat_osrc6.in6, in ipf_p_rcmd_portmsg() 216 &nat->nat_odst6.in6); in ipf_p_rcmd_portmsg() [all …]
|
| H A D | ip_ftp_pxy.c | 227 ipf_p_ftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_ftp_new() argument 236 nat = nat; /* LINT */ in ipf_p_ftp_new() 282 ipf_p_ftp_port(ipf_ftp_softc_t *softf, fr_info_t *fin, ip_t *ip, nat_t *nat, in ipf_p_ftp_port() argument 303 DT3(ftp_PORT_error_dlen, nat_t *, nat, ftpside_t *, f, in ipf_p_ftp_port() 319 DT2(ftp_PORT_error_atoi_1, nat_t *, nat, ftpside_t *, f); in ipf_p_ftp_port() 326 DT2(ftp_PORT_error_atoi_2, nat_t *, nat, ftpside_t *, f); in ipf_p_ftp_port() 338 if (((nat->nat_dir == NAT_OUTBOUND) && in ipf_p_ftp_port() 339 (a1 != ntohl(nat->nat_osrcaddr))) || in ipf_p_ftp_port() 340 ((nat->nat_dir == NAT_INBOUND) && in ipf_p_ftp_port() 341 (a1 != ntohl(nat->nat_nsrcaddr)))) { in ipf_p_ftp_port() [all …]
|
| H A D | ip_pptp_pxy.c | 116 ipf_p_pptp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_pptp_new() argument 128 np = nat->nat_ptr; in ipf_p_pptp_new() 131 if (ipf_nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_osrcip, in ipf_p_pptp_new() 167 ipn->in_snip = ntohl(nat->nat_nsrcaddr); in ipf_p_pptp_new() 169 ipn->in_dnip = ntohl(nat->nat_ndstaddr); in ipf_p_pptp_new() 170 ipn->in_ndstaddr = nat->nat_ndstaddr; in ipf_p_pptp_new() 172 ipn->in_osrcaddr = nat->nat_osrcaddr; in ipf_p_pptp_new() 173 ipn->in_odstaddr = nat->nat_odstaddr; in ipf_p_pptp_new() 196 ipf_p_pptp_donatstate(fr_info_t *fin, nat_t *nat, pptp_pxy_t *pptp) in ipf_p_pptp_donatstate() argument 214 if ((nat->nat_dir == NAT_OUTBOUND && fin->fin_out) || in ipf_p_pptp_donatstate() [all …]
|
| H A D | ip_proxy.c | 674 /* nat(I) - pointer to current NAT session */ 762 /* nat(I) - pointer to current NAT session */ 770 ipf_proxy_match(fr_info_t *fin, nat_t *nat) in ipf_proxy_match() argument 778 ipn = nat->nat_ptr; in ipf_proxy_match() 781 (u_long)fin, (u_long)nat, (u_long)nat->nat_aps, in ipf_proxy_match() 800 result = (*apr->apr_match)(fin, nat->nat_aps, nat); in ipf_proxy_match() 815 /* nat(I) - pointer to current NAT session */ 822 ipf_proxy_new(fr_info_t *fin, nat_t *nat) in ipf_proxy_new() argument 893 ipf_proxy_check(fr_info_t * fin,nat_t * nat) ipf_proxy_check() argument 1305 ipf_proxy_rule_rev(nat_t * nat) ipf_proxy_rule_rev() argument 1392 ipf_proxy_rule_fwd(nat_t * nat) ipf_proxy_rule_fwd() argument [all...] |
| H A D | ip_rpcb_pxy.c | 151 ipf_p_rpcb_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_rpcb_new() argument 155 nat = nat; /* LINT */ in ipf_p_rpcb_new() 205 ipf_p_rpcb_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_rpcb_in() argument 236 rv = ipf_p_rpcb_decodereq(fin, nat, rs, rm); in ipf_p_rpcb_in() 247 rv = ipf_p_rpcb_modreq(fin, nat, rm, m, off); in ipf_p_rpcb_in() 273 ipf_p_rpcb_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_rpcb_out() argument 311 rv = ipf_p_rpcb_decoderep(fin, nat, rs, rm, &rx); in ipf_p_rpcb_out() 334 if (nat->nat_odstaddr != nat->nat_ndstaddr) { in ipf_p_rpcb_out() 336 diff = ipf_p_rpcb_modv3(fin, nat, rm, m, off); in ipf_p_rpcb_out() 338 diff = ipf_p_rpcb_modv4(fin, nat, rm, m, off); in ipf_p_rpcb_out() [all …]
|
| H A D | ip_ipsec_pxy.c | 132 ipf_p_ipsec_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_ipsec_new() argument 162 if (ipf_nat_outlookup(fin, 0, IPPROTO_ESP, nat->nat_nsrcip, in ipf_p_ipsec_new() 166 np = nat->nat_ptr; in ipf_p_ipsec_new() 197 ipn->in_snip = ntohl(nat->nat_nsrcaddr); in ipf_p_ipsec_new() 199 ipn->in_osrcip = nat->nat_osrcip; in ipf_p_ipsec_new() 201 ipn->in_nsrcip = nat->nat_nsrcip; in ipf_p_ipsec_new() 203 ipn->in_odstip = nat->nat_odstip; in ipf_p_ipsec_new() 205 ipn->in_ndstip = nat->nat_ndstip; in ipf_p_ipsec_new() 264 ipf_p_ipsec_inout(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat) in ipf_p_ipsec_inout() argument 273 if ((fin->fin_out == 1) && (nat->nat_dir == NAT_INBOUND)) in ipf_p_ipsec_inout() [all …]
|
| /netbsd-src/external/bsd/ipf/dist/ |
| H A D | ip_nat6.c | 464 ipf_nat6_newmap(fin, nat, ni) in ipf_nat6_newmap() argument 466 nat_t *nat; 488 flags = nat->nat_flags; 519 nat->nat_hm = hm; 708 nat->nat_osrc6 = fin->fin_src6; 709 nat->nat_nsrc6 = in; 710 nat->nat_odst6 = fin->fin_dst6; 711 nat->nat_ndst6 = fin->fin_dst6; 712 if (nat->nat_hm == NULL) 713 nat->nat_hm = ipf_nat6_hostmap(softn, np, &fin->fin_src6, [all …]
|
| H A D | ip_tftp_pxy.c | 135 ipf_p_tftp_out(arg, fin, aps, nat) in ipf_p_tftp_out() argument 139 nat_t *nat; 144 if (nat->nat_dir == NAT_OUTBOUND) 145 return ipf_p_tftp_client(softt, fin, aps, nat); 146 return ipf_p_tftp_server(softt, fin, aps, nat); 151 ipf_p_tftp_in(arg, fin, aps, nat) in ipf_p_tftp_in() argument 155 nat_t *nat; 160 if (nat->nat_dir == NAT_INBOUND) 161 return ipf_p_tftp_client(softt, fin, aps, nat); 162 return ipf_p_tftp_server(softt, fin, aps, nat); [all …]
|
| H A D | ip_pptp_pxy.c | 112 ipf_p_pptp_new(arg, fin, aps, nat) in ipf_p_pptp_new() argument 116 nat_t *nat; 128 np = nat->nat_ptr; 131 if (ipf_nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_osrcip, 167 ipn->in_snip = ntohl(nat->nat_nsrcaddr); 169 ipn->in_dnip = ntohl(nat->nat_ndstaddr); 170 ipn->in_ndstaddr = nat->nat_ndstaddr; 172 ipn->in_osrcaddr = nat->nat_osrcaddr; 173 ipn->in_odstaddr = nat->nat_odstaddr; 196 ipf_p_pptp_donatstate(fin, nat, pptp) in ipf_p_pptp_donatstate() argument [all …]
|
| H A D | ip_rpcb_pxy.c | 147 ipf_p_rpcb_new(arg, fin, aps, nat) in ipf_p_rpcb_new() argument 151 nat_t *nat; 155 nat = nat; /* LINT */ 207 ipf_p_rpcb_in(arg, fin, aps, nat) in ipf_p_rpcb_in() argument 211 nat_t *nat; 242 rv = ipf_p_rpcb_decodereq(fin, nat, rs, rm); 253 rv = ipf_p_rpcb_modreq(fin, nat, rm, m, off); 279 ipf_p_rpcb_out(arg, fin, aps, nat) in ipf_p_rpcb_out() argument 283 nat_t *nat; 319 rv = ipf_p_rpcb_decoderep(fin, nat, rs, rm, &rx); [all …]
|
| H A D | ip_irc_pxy.c | 229 ipf_p_irc_new(arg, fin, aps, nat) in ipf_p_irc_new() argument 233 nat_t *nat; 244 nat = nat; /* LINT */ 255 ipf_p_irc_send(fin, nat) in ipf_p_irc_send() argument 257 nat_t *nat; 297 irc = nat->nat_aps->aps_data; 305 if (irc->irc_ipnum != ntohl(nat->nat_osrcaddr)) 405 nat2 = ipf_nat_outlookup(fin, IPN_TCP, nat->nat_pr[1], nat->nat_nsrcip, 424 ip->ip_src = nat->nat_nsrcip; 426 nat2 = ipf_nat_add(&fi, nat->nat_ptr, NULL, [all …]
|
| H A D | ip_fil_compat.c | 699 struct nat *nat_next; 700 struct nat **nat_pnext; 701 struct nat *nat_hnext[2]; 702 struct nat **nat_phnext[2]; 705 struct nat **nat_me; 741 struct nat *nat_next; 742 struct nat **nat_pnext; 743 struct nat *nat_hnext[2]; 744 struct nat **nat_phnext[2]; 747 struct nat **nat_me; [all …]
|
| /netbsd-src/tests/ipf/regress/ |
| H A D | Makefile | 136 ni1.nat \ 138 ni10.nat \ 140 ni11.nat \ 142 ni12.nat \ 144 ni13.nat \ 146 ni14.nat \ 148 ni15.nat \ 150 ni16.nat \ 152 ni17.nat \ 154 ni18.nat \ [all …]
|
| H A D | ip1 | 7 table role = nat type = tree number = 110 18 table role = nat type = hash number = 210 27 table role = nat type = hash number = 250 seed = 101 36 table role = nat type = hash number = 2000 size = 1001 45 table role = nat type = hash number = 100 size = 1001 seed = 101 54 group-map in role = nat number = 300 group = 303 63 group-map out role = nat number = 400 group = 303 72 group-map in role = nat number = 500
|
| /netbsd-src/external/bsd/ipf/dist/samples/ |
| H A D | proxy.c | 145 nat_t *nat; local 149 nat = &ns.ipn_nat; 150 nat->nat_p = IPPROTO_TCP; 151 nat->nat_dir = NAT_OUTBOUND; 153 strncpy(nat->nat_ifnames[0], extif, 154 sizeof(nat->nat_ifnames[0])); 155 strncpy(nat->nat_ifnames[1], extif, 156 sizeof(nat->nat_ifnames[1])); 157 nat->nat_ifnames[0][sizeof(nat->nat_ifnames[0]) - 1] = '\0'; 158 nat->nat_ifnames[1][sizeof(nat->nat_ifnames[1]) - 1] = '\0'; [all …]
|
| /netbsd-src/sys/net/npf/ |
| H A D | npf_nat.c | 180 npf_natpolicy_create(npf_t *npf, const nvlist_t *nat, npf_ruleset_t *rset) in npf_natpolicy_create() argument 191 np->n_type = dnvlist_get_number(nat, "type", 0); in npf_natpolicy_create() 192 np->n_flags = dnvlist_get_number(nat, "flags", 0) & ~NPF_NAT_PRIVMASK; in npf_natpolicy_create() 193 np->n_id = dnvlist_get_number(nat, "nat-policy", 0); in npf_natpolicy_create() 207 if (nvlist_exists_number(nat, "nat-table-id")) { in npf_natpolicy_create() 211 np->n_tid = nvlist_get_number(nat, "nat-table-id"); in npf_natpolicy_create() 215 addr = dnvlist_get_binary(nat, "nat-addr", &len, NULL, 0); in npf_natpolicy_create() 221 np->n_tmask = dnvlist_get_number(nat, "nat-mask", NPF_NO_NETMASK); in npf_natpolicy_create() 226 np->n_tport = dnvlist_get_number(nat, "nat-port", 0); in npf_natpolicy_create() 231 np->n_algo = dnvlist_get_number(nat, "nat-algo", 0); in npf_natpolicy_create() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-monitor/ |
| H A D | entry.c | 189 struct berval nat; in monitor_entry_stub() local 196 nat = *rdn; in monitor_entry_stub() 197 ptr = strchr( nat.bv_val, '=' ); in monitor_entry_stub() 198 nat.bv_len = ptr - nat.bv_val; in monitor_entry_stub() 199 rc = slap_bv2ad( &nat, &nad, &text ); in monitor_entry_stub() 211 nat.bv_val = ptr + 1; in monitor_entry_stub() 212 nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val ); in monitor_entry_stub() 217 attr_merge_normalize_one( e, nad, &nat, NULL ); in monitor_entry_stub()
|
| /netbsd-src/tests/ipf/expected/ |
| H A D | ip1 | 5 table role=nat type=tree number=110 15 table role=nat type=hash number=210 size=5 23 table role=nat type=hash number=250 size=5 seed=101 31 table role=nat type=hash number=2000 size=1001 39 table role=nat type=hash number=100 size=1001 seed=101 47 group-map in role=nat number=300 size=5 55 group-map out role=nat number=400 size=5 63 group-map in role=nat number=500 size=5
|