Home
last modified time | relevance | path

Searched refs:nat (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintactivenat.c50 nat->nat_age, nat->nat_use, getsumd(nat->nat_sumd[0]));
52 getsumd(nat->nat_sumd[1]), nat->nat_p,
53 nat->nat_hv[0], nat->nat_hv[1], nat->nat_flags);
64 nat->nat_bytes[1], nat->nat_pkts[0], nat->nat_pkts[1]);
71 nat->nat_next, nat->nat_pnext, nat->nat_hm);
73 nat->nat_hnext[0], nat->nat_hnext[1],
74 nat->nat_phnext[0], nat->nat_phnext[1]);
76 nat->nat_data, nat->nat_me, nat->nat_state, nat->nat_aps);
78 nat->nat_fr, nat->nat_ptr, nat->nat_ifps[0],
79 nat->nat_ifps[1], nat->nat_sync);
[all …]
H A Dgetnattype.c25 char *getnattype(nat, alive) in getnattype() argument
26 nat_t *nat; in getnattype()
34 if (!nat)
37 type = nat->nat_redir;
39 ipn = nat->nat_ptr;
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipnat_y.y124 free(nat);
377 nat->in_in[0].i6[0] &= nat->in_in[1].i6[0];
378 nat->in_in[0].i6[0] &= nat->in_in[1].i6[1];
379 nat->in_in[0].i6[0] &= nat->in_in[1].i6[2];
380 nat->in_in[0].i6[0] &= nat->in_in[1].i6[3];
701 nat->in_dport = nat->in_pnext;
702 nat->in_dport = htons(nat->in_dport);
706 nat->in_pmin = nat->in_dport;
707 nat->in_pmax = nat->in_pmin;
708 nat->in_pnext = nat->in_pmin;
[all …]
H A Dipnat.c294 nat_t *np, nat; in dostats() local
339 if (kmemcpy((char *)&nat, (long)np, sizeof (nat))) in dostats()
341 printactivenat(&nat, opts, 0); in dostats()
342 if (nat.nat_aps) in dostats()
343 printaps(nat.nat_aps, opts); in dostats()
427 nat_t nat; in dostats_live() local
456 iter.igi_data = &nat; in dostats_live()
461 printactivenat(&nat, opts, 1); in dostats_live()
462 if (nat.nat_aps) in dostats_live()
463 printaps(nat.nat_aps, opts); in dostats_live()
[all …]
H A Dipfs.c170 nat_t *nat; local
180 nat = &ipn.ipn_nat;
194 strcpy(nat->nat_ifnames[0], s);
198 strcpy(nat->nat_ifnames[1], s);
570 nat_t *nat; local
640 nat = &in->ipn_nat;
641 if (nat->nat_fr != NULL) {
646 nat->nat_flags |= SI_NEWFR;
648 nat->nat_fr = &in1->ipn_fr;
671 nat = &in->ipn_nat;
[all …]
H A Dipftest.c634 nat_t *nat; local
640 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
641 printactivenat(nat, opts, 0);
642 if (nat->nat_aps)
643 printaps(nat->nat_aps, opts);
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_nat6.c812 bzero((char *)nat, sizeof (*nat));
925 nat->nat_sync = ipfsync_new(SMC_NAT, fin, nat);
1034 nat->nat_ifps[1] = nat->nat_ifps[0];
1523 for (; nat; nat = nat->nat_hnext[1]) {
1599 for (; nat; nat = nat->nat_hnext[1]) {
1624 nat = fr_natclone(fin, nat);
1671 *nat->nat_phnext[0] = nat->nat_hnext[0];
1676 *nat->nat_phnext[1] = nat->nat_hnext[1];
1773 for (; nat; nat = nat->nat_hnext[0]) {
1839 for (; nat; nat = nat->nat_hnext[0]) {
[all …]
H A Dip_nat.c1904 struct nat *nat; in nat_delete()
3312 for (; nat; nat = nat->nat_hnext[1]) {
3386 for (; nat; nat = nat->nat_hnext[1]) {
3563 for (; nat; nat = nat->nat_hnext[0]) {
3627 for (; nat; nat = nat->nat_hnext[0]) {
4769 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
4892 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
4926 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
4948 for (nat = ifs->ifs_nat_instances; nat; nat = nat->nat_next) {
4993 for (nat = ifs->ifs_nat_instances; nat != NULL; nat = nat->nat_next) {
[all …]
H A Dip_proxy.c287 ipnat_t *nat;
359 nat_t *nat;
365 ipn = nat->nat_ptr;
368 (u_long)fin, (u_long)nat, (u_long)nat->nat_aps,
405 nat_t *nat;
414 if ((nat->nat_ptr == NULL) || (nat->nat_aps != NULL)) {
417 (u_long)nat->nat_ptr, (u_long)nat->nat_aps);
455 aps->aps_nat = nat;
458 nat->nat_aps = aps;
472 nat_t *nat;
[all …]
H A Dip_frag.c426 nat_t *nat;
437 fra->ipfr_data = nat;
438 nat->nat_data = fra;
598 nat_t *nat; local
607 nat = ipf->ipfr_data;
616 nat = NULL;
618 return nat;
789 nat_t *nat; local
803 if (nat != NULL) {
827 nat_t *nat; local
[all …]
H A Dip_compat.c143 struct nat *nat_next;
144 struct nat **nat_pnext;
145 struct nat *nat_hnext[2];
146 struct nat **nat_phnext[2];
149 struct nat **nat_me;
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_rcmd_pxy.c80 nat_t *nat;
86 nat = nat; /* LINT */
123 nat_t *nat;
183 nat->nat_inip, nat->nat_oip);
186 nat->nat_inip, nat->nat_oip);
210 ip->ip_src = nat->nat_inip;
213 ip->ip_src = nat->nat_oip;
217 nat2 = nat_new(&fi, nat->nat_ptr, NULL, nflags, nat->nat_dir);
225 ip->ip_dst = nat->nat_inip;
240 nat_t *nat;
[all …]
H A Dip_ftp_pxy.c156 nat_t *nat;
167 nat = nat; /* LINT */
188 nat_t *nat;
357 nat->nat_inip, nat->nat_oip);
360 nat->nat_inip, nat->nat_oip);
427 nat_t *nat;
501 nat_t *nat;
640 nat_t *nat;
714 nat->nat_p, nat->nat_inip, nat->nat_oip);
717 nat->nat_p, nat->nat_inip, nat->nat_oip);
[all …]
H A Dip_pptp_pxy.c109 nat_t *nat;
146 if (nat->nat_dir == NAT_OUTBOUND) {
152 ipn->in_outip = nat->nat_outip.s_addr;
155 ipn->in_inip = nat->nat_inip.s_addr;
172 nat_t *nat;
222 NAT_SLAVE, nat->nat_dir);
236 if (nat->nat_dir == NAT_INBOUND)
256 nat_t *nat;
381 nat_t *nat;
406 nat_t *nat;
[all …]
H A Dip_h323_pxy.c129 int ippr_h323_new(fin, aps, nat, private) in ippr_h323_new() argument
132 nat_t *nat;
136 nat = nat; /* LINT */
180 int ippr_h323_in(fin, aps, nat, private) in ippr_h323_in() argument
183 nat_t *nat;
215 ipn->in_inip = nat->nat_inip.s_addr;
252 nat_t *nat;
256 nat = nat; /* LINT */
268 nat_t *nat;
282 ipaddr = nat->nat_inip.s_addr;
[all …]
H A Dip_rpcb_pxy.c173 nat_t *nat;
179 nat = nat; /* LINT */
235 nat_t *nat;
305 nat_t *nat;
361 if (nat->nat_inip.s_addr != nat->nat_outip.s_addr) {
437 nat_t *nat;
525 if ((nat->nat_outip.s_addr != nat->nat_inip.s_addr) ||
526 (nat->nat_outport != nat->nat_inport))
795 nat_t *nat;
882 nat_t *nat;
[all …]
H A Dip_ipsec_pxy.c111 int ippr_ipsec_new(fin, aps, nat, private) in ippr_ipsec_new() argument
114 nat_t *nat;
163 ipn->in_nip = ntohl(nat->nat_outip.s_addr);
165 ipn->in_inip = nat->nat_inip.s_addr;
168 ipn->in_outmsk = nat->nat_outip.s_addr;
218 int ippr_ipsec_inout(fin, aps, nat, private) in ippr_ipsec_inout() argument
221 nat_t *nat;
263 nat->nat_dir);
277 ipsec->ipsc_state->is_die = nat->nat_age;
303 nat_t *nat;
[all …]
H A Dip_irc_pxy.c248 int ippr_irc_new(fin, aps, nat, private) in ippr_irc_new() argument
251 nat_t *nat;
261 nat = nat; /* LINT */
271 int ippr_irc_send(fin, nat, ifsirc) in ippr_irc_send() argument
273 nat_t *nat;
312 irc = nat->nat_aps->aps_data;
417 nat2 = nat_outlookup(fin, IPN_TCP, nat->nat_p, nat->nat_inip,
432 ip->ip_src = nat->nat_inip;
433 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
447 int ippr_irc_out(fin, aps, nat, private) in ippr_irc_out() argument
[all …]
H A Dip_raudio_pxy.c72 int ippr_raudio_new(fin, aps, nat, private) in ippr_raudio_new() argument
75 nat_t *nat;
85 nat = nat; /* LINT */
96 int ippr_raudio_out(fin, aps, nat, private) in ippr_raudio_out() argument
99 nat_t *nat;
110 nat = nat; /* LINT */
203 int ippr_raudio_in(fin, aps, nat, private) in ippr_raudio_in() argument
206 nat_t *nat;
298 ip->ip_src = nat->nat_inip;
299 ip->ip_dst = nat->nat_oip;
[all …]
H A Dip_netbios_pxy.c95 int ippr_netbios_out(fin, aps, nat, private) in ippr_netbios_out() argument
98 nat_t *nat;
108 nat = nat; /* LINT */
H A Dip_proxy.h35 struct nat;
111 int (* apr_new) __P((fr_info_t *, ap_session_t *, struct nat *, void *));
113 int (* apr_inpkt) __P((fr_info_t *, ap_session_t *, struct nat *, void *));
114 int (* apr_outpkt) __P((fr_info_t *, ap_session_t *, struct nat *, void *));
115 int (* apr_match) __P((fr_info_t *, ap_session_t *, struct nat *, void *));
454 extern int appr_match __P((fr_info_t *, struct nat *));
457 extern int appr_check __P((fr_info_t *, struct nat *));
459 extern int appr_new __P((fr_info_t *, struct nat *));
H A Dip_nat.h92 typedef struct nat { struct
94 struct nat *nat_next; argument
95 struct nat **nat_pnext; argument
96 struct nat *nat_hnext[2]; argument
97 struct nat **nat_phnext[2]; argument
100 struct nat **nat_me; argument
300 struct nat ipn_nat;
484 extern int nat_delete __P((struct nat *, int, ipf_stack_t *));
494 extern void nat_log __P((struct nat *, u_int, ipf_stack_t *));
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_nat.c164 ilb_nat_entry_t *nat; in ilbd_show_nat() local
166 nat = &kcmd->entries[i]; in ilbd_show_nat()
168 nat_ret->nat_proto = nat->proto; in ilbd_show_nat()
170 nat_ret->nat_in_local = nat->in_local; in ilbd_show_nat()
171 nat_ret->nat_in_global = nat->in_global; in ilbd_show_nat()
172 nat_ret->nat_out_local = nat->out_local; in ilbd_show_nat()
173 nat_ret->nat_out_global = nat->out_global; in ilbd_show_nat()
175 nat_ret->nat_in_local_port = nat->in_local_port; in ilbd_show_nat()
176 nat_ret->nat_in_global_port = nat->in_global_port; in ilbd_show_nat()
177 nat_ret->nat_out_local_port = nat->out_local_port; in ilbd_show_nat()
[all …]
/illumos-gate/usr/src/cmd/ipf/examples/
H A DMakefile34 ftppxy ip_rules nat-setup nat.eg \
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_conn.c1094 nat[j].proto = cur_connp->conn_l4; in ilb_list_nat()
1096 nat[j].in_global = cur_connp->conn_c2s_daddr; in ilb_list_nat()
1097 nat[j].in_global_port = cur_connp->conn_c2s_dport; in ilb_list_nat()
1098 nat[j].out_global = cur_connp->conn_c2s_saddr; in ilb_list_nat()
1099 nat[j].out_global_port = cur_connp->conn_c2s_sport; in ilb_list_nat()
1101 nat[j].in_local = cur_connp->conn_s2c_saddr; in ilb_list_nat()
1102 nat[j].in_local_port = cur_connp->conn_s2c_sport; in ilb_list_nat()
1103 nat[j].out_local = cur_connp->conn_s2c_daddr; in ilb_list_nat()
1104 nat[j].out_local_port = cur_connp->conn_s2c_dport; in ilb_list_nat()
1107 nat[j].last_access_time = in ilb_list_nat()
[all …]

12