/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_nat.c | 40 * We only allow one show nat/persist command running at any time. Note that 164 ilb_nat_entry_t *nat; local 166 nat = &kcmd->entries[i]; 168 nat_ret->nat_proto = nat->proto; 170 nat_ret->nat_in_local = nat->in_local; 171 nat_ret->nat_in_global = nat->in_global; 172 nat_ret->nat_out_local = nat->out_local; 173 nat_ret->nat_out_global = nat->out_global; 175 nat_ret->nat_in_local_port = nat->in_local_port; 176 nat_ret->nat_in_global_port = nat [all...] |
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipnat.c | 307 nat_t *np, nat; local 318 printf("no memory\t%lu\tbad nat\t%lu\n", 351 for (np = nsp->ns_instances; np; np = nat.nat_next) { 352 if (kmemcpy((char *)&nat, (long)np, sizeof(nat))) 354 printactivenat(&nat, opts, 0); 355 if (nat.nat_aps) 356 printaps(nat.nat_aps, opts); 441 nat_t nat; local 470 iter.igi_data = &nat; [all...] |
H A D | ipfs.c | 170 nat_t *nat; local 180 nat = &ipn.ipn_nat; 181 if (nlen >= sizeof(nat->nat_ifnames[0]) || 182 olen >= sizeof(nat->nat_ifnames[0])) 193 if (!strncmp(nat->nat_ifnames[0], ifs, olen + 1)) { 194 strcpy(nat->nat_ifnames[0], s); 197 if (!strncmp(nat->nat_ifnames[1], ifs, olen + 1)) { 198 strcpy(nat->nat_ifnames[1], s); 570 nat_t *nat; local 585 perror("nat [all...] |
H A D | ipftest.c | 639 nat_t *nat; local 645 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) { 646 printactivenat(nat, opts, 0); 647 if (nat->nat_aps) 648 printaps(nat->nat_aps, opts);
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_frag.c | 418 /* nat(I) - pointer to NAT structure */ 423 int fr_nat_newfrag(fin, pass, nat) 426 nat_t *nat; 437 fra->ipfr_data = nat; 438 nat->nat_data = fra; 598 nat_t *nat; local 607 nat = ipf->ipfr_data; 611 if ((ipf->ipfr_ttl == ifs->ifs_fr_ticks + 1) && (nat != NULL)) { 612 nat->nat_data = NULL; 616 nat 789 nat_t *nat; local 827 nat_t *nat; local [all...] |
H A D | ip_nat6.c | 271 /* nat(I) - pointer to NAT entry */ 280 static INLINE int nat6_newmap(fin, nat, ni) 282 nat_t *nat; 328 nat->nat_hm = hm; 510 nat->nat_inip6 = fin->fin_src6; 511 nat->nat_outip6 = in; 512 nat->nat_oip6 = fin->fin_dst6; 513 if (nat->nat_hm == NULL) 514 nat->nat_hm = nat6_hostmap(np, &fin->fin_src6, &fin->fin_dst6, 515 &nat 745 nat_t *nat, *natl; local 1085 nat_t *nat; local 1220 nat_t *nat; local 1483 nat_t *nat; local 1738 nat_t *nat; local 1902 nat_t *nat; local 2040 nat_t *nat; local 2321 nat_t *nat; local [all...] |
H A D | ip_nat.c | 257 MUTEX_INIT(&ifs->ifs_nat_udptq.ifq_lock, "nat ipftq udp tab"); 263 MUTEX_INIT(&ifs->ifs_nat_icmptq.ifq_lock, "nat icmp ipftq tab"); 269 MUTEX_INIT(&ifs->ifs_nat_iptq.ifq_lock, "nat ip ipftq tab"); 291 MUTEX_INIT(&ifs->ifs_ipf_nat_new, "ipf nat new mutex"); 292 MUTEX_INIT(&ifs->ifs_ipf_natio, "ipf nat io mutex"); 607 ipnat_t *nat, *nt, *n = NULL, **np = NULL; local 622 nat = NULL; /* XXX gcc -Wuninitialized */ 646 nat = &natd; 647 if (nat->in_v == 0) /* For backward compat. */ 648 nat 1194 nat_t *nat, *n; local 1265 nat_t *n, *nat; local 1570 nat_t *n, *nat; local 2528 nat_t *nat, *natl; local 2867 nat_t *nat; local 3001 nat_t *nat; local 3272 nat_t *nat; local 3527 nat_t *nat; local 3690 nat_t *nat; local 3881 nat_t *nat; local 4204 nat_t *nat; local 4746 nat_t *nat; local 4872 nat_t *nat; local 4986 nat_t *nat; local 5180 nat_t *nat; local 5492 nat_t *nat, *nextnat = NULL, zeronat; local 5753 nat_t *nat, *natn; local 5826 nat_t *nat; local [all...] |
H A D | fil.c | 5695 { 0, sizeof(struct nat) }, /* nat_t */ 6302 /* nat */ 7578 nat_t *nat; local 7605 nat = (nat_t *)ent; 7606 if ((nat->nat_p == IPPROTO_TCP) && 7607 (nat->nat_tcpstate[0] >= stateval) && 7608 (nat->nat_tcpstate[1] >= stateval) && 7609 (nat_delete(nat, NL_EXPIRE, ifs) == 0))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 69 enum lb_mode { dsr, nat, half_nat }; enumerator in enum:lb_mode 222 param->mode = nat; 258 case nat:
|
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 805 char nat[MAX_PATH]; local 810 cygwin_conv_to_full_win32_path(path, nat); 811 if (!strncasecmp(nat + 1, ":\\temp\\", 7)) 813 drive = nat[0]; 814 path = (const char*)nat;
|
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_conn.c | 240 /* Need to update the nat list cur_connp */ 1024 * It is assumed that the caller has checked the size of nat so that it 1029 ilb_list_nat(ilb_stack_t *ilbs, zoneid_t zoneid, ilb_nat_entry_t *nat, argument 1085 nat[j].proto = cur_connp->conn_l4; 1087 nat[j].in_global = cur_connp->conn_c2s_daddr; 1088 nat[j].in_global_port = cur_connp->conn_c2s_dport; 1089 nat[j].out_global = cur_connp->conn_c2s_saddr; 1090 nat[j].out_global_port = cur_connp->conn_c2s_sport; 1092 nat[j].in_local = cur_connp->conn_s2c_saddr; 1093 nat[ [all...] |
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_nat.h | 87 typedef struct nat { struct 89 struct nat *nat_next; 90 struct nat **nat_pnext; 91 struct nat *nat_hnext[2]; 92 struct nat **nat_phnext[2]; 95 struct nat **nat_me; 295 struct nat ipn_nat; 479 extern int nat_delete __P((struct nat *, int, ipf_stack_t *)); 489 extern void nat_log __P((struct nat *, u_int, ipf_stack_t *));
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | uds_daemon.c | 5887 const NATTraversalInfo *nat; local 5888 for (nat = m->NATTraversals; nat; nat=nat->next) 5891 nat, 5892 nat->Protocol ? (nat->Protocol == NATOp_MapTCP ? "TCP" : "UDP") : "ADD", 5893 mDNSVal16(nat->IntPort), 5894 (nat [all...] |
H A D | mDNS.c | 6828 NATTraversalInfo *nat; local 6829 for (nat = m->NATTraversals; nat; nat=nat->next) 6830 if (nat->Protocol && nat->ExpiryTime && nat->ExpiryTime - now > mDNSPlatformOneSecond*4) 6832 mDNSs32 t = nat->ExpiryTime - (nat [all...] |