Home
last modified time | relevance | path

Searched refs:ipn (Results 1 – 16 of 16) sorted by relevance

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dcount4bits.c21 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 Dgetnattype.c30 ipnat_t *ipn, ipnatbuff; local
39 ipn = nat->nat_ptr;
40 if (kmemcpy((char *)&ipnatbuff, (long)ipn, sizeof(ipnatbuff)))
H A Dprintpool.c23 ip_pool_node_t *ipnp, *ipnpn, ipn; local
89 (*copyfunc)(ipnpn, ipnp, sizeof(ipn));
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_ipsec_pxy.c119 ipnat_t *ipn; local
155 ipn = &ipsec->ipsc_rule;
159 ipn->in_ifps[0] = fin->fin_ifp;
160 ipn->in_apr = NULL;
161 ipn->in_use = 1;
162 ipn->in_hits = 1;
164 ipn->in_ippip = 1;
166 ipn->in_inmsk = 0xffffffff;
170 ipn->in_srcmsk = 0xffffffff;
171 ipn->in_redir = NAT_MAP;
[all …]
H A Dip_h323_pxy.c151 ipnat_t *ipn; local
154 for (i = 0, ipn = aps->aps_data;
156 i++, ipn = (ipnat_t *)((char *)ipn + sizeof(*ipn)))
200 ipnat_t *ipn; local
211 ipn = (ipnat_t *)&newarray[aps->aps_psiz];
213 (void) strncpy(ipn->in_plabel, "h245", APR_LABELLEN);
215 ipn->in_inip = nat->nat_inip.s_addr;
216 ipn->in_inmsk = 0xffffffff;
217 ipn->in_dport = htons(port);
231 if (fr_nat_ioctl((caddr_t)ipn, SIOCADNAT,
[all …]
H A Dip_pptp_pxy.c113 ipnat_t *ipn; local
140 ipn = &pptp->pptp_rule;
142 ipn->in_apr = NULL;
143 ipn->in_use = 1;
144 ipn->in_hits = 1;
145 ipn->in_ippip = 1;
149 ipn->in_redir = NAT_MAP;
151 ipn->in_nip = 0;
156 ipn->in_inmsk = 0xffffffff;
157 ipn->in_outmsk = 0xffffffff;
[all …]
H A Dip_rpcb_pxy.c1179 ipnat_t *ipn, ipnat; local
1187 ipn = nat->nat_ptr;
1256 ipn->in_apr = NULL;
1257 ipn->in_p = proto;
1261 ipn->in_space = 1;
1262 ipn->in_ippip = 1;
1263 if (ipn->in_flags & IPN_FILTER) {
1264 ipn->in_scmp = 0;
1265 ipn->in_dcmp = 0;
1267 *ipn->in_plabel = '\0';
[all …]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfs.c169 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)) {
589 bzero((char *)&ipn, sizeof(ipn));
595 i = read(nfd, &ipn, sizeof(ipn));
603 if (i != sizeof(ipn)) {
605 i, (int)sizeof(ipn));
614 if (ipn.ipn_dsize > sizeof(ipn)) {
615 n = ipn.ipn_dsize - sizeof(ipn);
[all …]
H A Dipnat.c295 ipnat_t ipn; in dostats() local
325 if (kmemcpy((char *)&ipn, (long)nsp->ns_list, in dostats()
326 sizeof (ipn))) { in dostats()
331 printf("%lu ", ipn.in_hits); in dostats()
332 printnat(&ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); in dostats()
333 nsp->ns_list = ipn.in_next; in dostats()
426 ipnat_t ipn; in dostats_live() local
437 iter.igi_data = &ipn; in dostats_live()
447 printf("%lu ", ipn.in_hits); in dostats_live()
448 printnat(&ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); in dostats_live()
[all …]
H A Dipftest.c633 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 Dipnat_y.y973 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);
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_nat.c1275 if (ipn == NULL)
1329 outsize = ipn->ipn_dsize - sizeof(*ipn) + sizeof(ipn->ipn_data);
1352 if (ipn != NULL) {
1609 if (ipn.ipn_dsize > sizeof(ipn)) {
1625 ipnn = &ipn;
2004 ipn->in_space++;
2005 ipn->in_use--;
2006 if (ipn->in_use == 0 && (ipn->in_flags & IPN_DELETE)) {
2009 KFREE(ipn);
3270 ipnat_t *ipn; local
[all …]
H A Dip_pool.c749 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 Dip_proxy.c362 ipnat_t *ipn; local
365 ipn = nat->nat_ptr;
369 (u_long)ipn);
378 apr = ipn->in_apr;
H A Dip_nat6.c1569 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 Dfil.c3690 u_32_t ipn; local
3693 ip = ipn = ntohl(ip);
3694 for (i = 32; i; i--, ipn *= 2)
3695 if (ipn & 0x80000000)
3699 ipn = 0;
3701 ipn *= 2;
3703 ipn++;
3705 if (ipn == ip)