/titanic_50/usr/src/cmd/ipf/lib/common/ |
H A D | count4bits.c | 21 u_int ipn; local 23 ip = ipn = ntohl(ip); 24 for (i = 32; i; i--, ipn *= 2) 25 if (ipn & 0x80000000) 29 ipn = 0; 31 ipn *= 2; 33 ipn++; 35 if (ipn == ip)
|
H A D | getnattype.c | 30 ipnat_t *ipn, ipnatbuff; local 39 ipn = nat->nat_ptr; 40 if (kmemcpy((char *)&ipnatbuff, (long)ipn, sizeof(ipnatbuff)))
|
H A D | printpool.c | 23 ip_pool_node_t *ipnp, *ipnpn, ipn; local 89 (*copyfunc)(ipnpn, ipnp, sizeof(ipn));
|
/titanic_50/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_ipsec_pxy.c | 119 ipnat_t *ipn; local 155 ipn = &ipsec->ipsc_rule; 157 ipn->in_tqehead[0] = fr_addtimeoutqueue(&ifs->ifs_nat_utqe, ttl, ifs); 158 ipn->in_tqehead[1] = fr_addtimeoutqueue(&ifs->ifs_nat_utqe, ttl, ifs); 159 ipn->in_ifps[0] = fin->fin_ifp; 160 ipn->in_apr = NULL; 161 ipn->in_use = 1; 162 ipn->in_hits = 1; 163 ipn->in_nip = ntohl(nat->nat_outip.s_addr); 164 ipn->in_ippip = 1; [all …]
|
H A D | ip_h323_pxy.c | 151 ipnat_t *ipn; local 154 for (i = 0, ipn = aps->aps_data; 156 i++, ipn = (ipnat_t *)((char *)ipn + sizeof(*ipn))) 164 if (fr_nat_ioctl((caddr_t)ipn, SIOCRMNAT, NAT_SYSSPACE| 200 ipnat_t *ipn; local 207 KMALLOCS(newarray, char *, aps->aps_psiz + sizeof(*ipn)); 211 ipn = (ipnat_t *)&newarray[aps->aps_psiz]; 212 bcopy((caddr_t)nat->nat_ptr, (caddr_t)ipn, sizeof(ipnat_t)); 213 (void) strncpy(ipn->in_plabel, "h245", APR_LABELLEN); 215 ipn->in_inip = nat->nat_inip.s_addr; [all …]
|
H A D | ip_pptp_pxy.c | 113 ipnat_t *ipn; local 140 ipn = &pptp->pptp_rule; 141 ipn->in_ifps[0] = fin->fin_ifp; 142 ipn->in_apr = NULL; 143 ipn->in_use = 1; 144 ipn->in_hits = 1; 145 ipn->in_ippip = 1; 147 ipn->in_nip = ntohl(nat->nat_outip.s_addr); 148 ipn->in_outip = fin->fin_saddr; 149 ipn->in_redir = NAT_MAP; [all …]
|
H A D | ip_rpcb_pxy.c | 1179 ipnat_t *ipn, ipnat; local 1187 ipn = nat->nat_ptr; 1254 bcopy((char *)ipn, (char *)&ipnat, sizeof(ipnat)); 1255 ipn->in_flags = nflags & IPN_TCPUDP; 1256 ipn->in_apr = NULL; 1257 ipn->in_p = proto; 1258 ipn->in_pmin = htons(fi.fin_dport); 1259 ipn->in_pmax = htons(fi.fin_dport); 1260 ipn->in_pnext = htons(fi.fin_dport); 1261 ipn->in_space = 1; [all …]
|
/titanic_50/usr/src/cmd/ipf/tools/ |
H A D | ipfs.c | 169 nat_save_t ipn; local 180 nat = &ipn.ipn_nat; 191 for (pos = 0; read(fd, &ipn, sizeof(ipn)) == sizeof(ipn); ) { 206 if (write(fd, &ipn, sizeof(ipn)) != sizeof(ipn)) { 567 nat_save_t ipn, *in, *ipnhead = NULL, *in1, *ipntail = NULL; local 589 bzero((char *)&ipn, sizeof(ipn)); 595 i = read(nfd, &ipn, sizeof(ipn)); 603 if (i != sizeof(ipn)) { 605 i, (int)sizeof(ipn)); 610 in = (nat_save_t *)malloc(ipn.ipn_dsize); [all …]
|
H A D | ipnat.c | 308 ipnat_t ipn; local 338 if (kmemcpy((char *)&ipn, (long)nsp->ns_list, 339 sizeof(ipn))) { 344 printf("%lu ", ipn.in_hits); 345 printnat(&ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); 346 nsp->ns_list = ipn.in_next; 440 ipnat_t ipn; local 451 iter.igi_data = &ipn; 461 printf("%lu ", ipn.in_hits); 462 printnat(&ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); [all …]
|
H A D | ipftest.c | 633 ipnat_t *ipn; local 637 for (ipn = ifs->ifs_nat_list; ipn != NULL; ipn = ipn->in_next) 638 printnat(ipn, opts & (OPT_DEBUG|OPT_VERBOSE));
|
H A D | ipnat_y.y | 973 ipnat_t *ipn; local 975 ipn = ptr; 997 if (ipn && (opts & OPT_VERBOSE)) 998 printnat(ipn, opts); 1001 binprint(ipn, sizeof(*ipn)); 1022 printnat(ipn, opts);
|
/titanic_50/usr/src/uts/common/inet/ipf/ |
H A D | ip_nat.c | 1264 nat_save_t *ipn, ipns; local 1274 KMALLOCS(ipn, nat_save_t *, ipns.ipn_dsize); 1275 if (ipn == NULL) 1278 ipn->ipn_dsize = ipns.ipn_dsize; 1301 ipn->ipn_next = nat->nat_next; 1306 bcopy((char *)nat, &ipn->ipn_nat, sizeof(*nat)); 1312 bcopy((char *)nat->nat_ptr, (char *)&ipn->ipn_ipnat, 1313 sizeof(ipn->ipn_ipnat)); 1320 bcopy((char *)nat->nat_fr, (char *)&ipn->ipn_fr, 1321 sizeof(ipn->ipn_fr)); [all …]
|
H A D | ip_pool.c | 749 void ip_pool_node_deref(ipn, ifs) in ip_pool_node_deref() argument 750 ip_pool_node_t *ipn; in ip_pool_node_deref() 754 ipn->ipn_ref--; 756 if (ipn->ipn_ref == 0) { 757 KFREE(ipn);
|
H A D | ip_proxy.c | 362 ipnat_t *ipn; local 365 ipn = nat->nat_ptr; 369 (u_long)ipn); 378 apr = ipn->in_apr;
|
H A D | ip_nat6.c | 1569 ipn = nat->nat_ptr; 1570 if ((ipn != NULL) && (nat->nat_aps != NULL)) 1809 ipn = nat->nat_ptr; 1810 if ((ipn != NULL) && (nat->nat_aps != NULL))
|
H A D | fil.c | 3692 u_32_t ipn; local 3695 ip = ipn = ntohl(ip); 3696 for (i = 32; i; i--, ipn *= 2) 3697 if (ipn & 0x80000000) 3701 ipn = 0; 3703 ipn *= 2; 3705 ipn++; 3707 if (ipn == ip)
|