Home
last modified time | relevance | path

Searched refs:nat2 (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/inet/ipf/netinet/
H A Dip_h323_pxy.c285 nat_t *nat2; local
288 nat2 = nat_outlookup(fin->fin_ifp, IPN_UDP, IPPROTO_UDP,
290 if (nat2 == NULL) {
308 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
311 if (nat2 != NULL) {
312 (void) nat_proto(&fi, nat2, IPN_UDP);
313 nat_update(&fi, nat2, nat2->nat_ptr);
315 nat2->nat_ptr->in_hits++;
317 nat_log(nat2, (u_int)(nat->nat_ptr->in_redir),
322 bcopy((caddr_t)&nat2->nat_outport,
H A Dip_rcmd_pxy.c132 nat_t *nat2; local
182 nat2 = nat_outlookup(&fi, NAT_SEARCH|IPN_TCP, nat->nat_p,
185 nat2 = nat_inlookup(&fi, NAT_SEARCH|IPN_TCP, nat->nat_p,
187 if (nat2 == NULL) {
217 nat2 = nat_new(&fi, nat->nat_ptr, NULL, nflags, nat->nat_dir);
219 if (nat2 != NULL) {
220 (void) nat_proto(&fi, nat2, IPN_TCP);
221 nat_update(&fi, nat2, nat2->nat_ptr);
227 (void) fr_addstate(&fi, &nat2->nat_state, SI_W_DPORT);
H A Dip_raudio_pxy.c218 nat_t *nat2; local
322 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
325 if (nat2 != NULL) {
326 (void) nat_proto(&fi, nat2, IPN_UDP);
327 nat_update(&fi, nat2, nat2->nat_ptr);
340 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
343 if (nat2 != NULL) {
344 (void) nat_proto(&fi, nat2, IPN_UDP);
345 nat_update(&fi, nat2, nat2->nat_ptr);
H A Dip_pptp_pxy.c178 nat_t *nat2; local
186 nat2 = pptp->pptp_nat;
187 if ((nat2 == NULL) || (pptp->pptp_state == NULL)) {
218 if (nat2 != NULL)
219 fr_queueback(&nat2->nat_tqe, ifs);
221 nat2 = nat_new(&fi, &pptp->pptp_rule, &pptp->pptp_nat,
223 pptp->pptp_nat = nat2;
224 if (nat2 != NULL) {
225 (void) nat_proto(&fi, nat2, 0);
226 nat_update(&fi, nat2, nat2->nat_ptr);
[all …]
H A Dip_irc_pxy.c284 nat_t *nat2; local
417 nat2 = nat_outlookup(fin, IPN_TCP, nat->nat_p, nat->nat_inip,
419 if (nat2 == NULL) {
433 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
435 if (nat2 != NULL) {
436 (void) nat_proto(&fi, nat2, 0);
437 nat_update(&fi, nat2, nat2->nat_ptr);
H A Dip_ftp_pxy.c201 nat_t *nat2; local
356 nat2 = nat_outlookup(&fi, NAT_SEARCH|IPN_TCP, nat->nat_p,
359 nat2 = nat_inlookup(&fi, NAT_SEARCH|IPN_TCP, nat->nat_p,
361 if (nat2 == NULL) {
392 nat2 = nat_new(&fi, nat->nat_ptr, NULL, flags, nat->nat_dir);
394 if (nat2 != NULL) {
395 (void) nat_proto(&fi, nat2, IPN_TCP);
396 nat_update(&fi, nat2, nat->nat_ptr);
402 (void) fr_addstate(&fi, &nat2->nat_state, SI_W_DPORT);
410 nat_update(&fi, nat2, nat->nat_ptr);
[all …]