Searched refs:nat (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-9.3-release/contrib/ipfilter/lib/
H A Dprintactivenat.c19 void printactivenat(nat, opts, alive, now)
20 nat_t *nat;
25 printf("%s", getnattype(nat, alive));
27 if (nat->nat_flags & SI_CLONE)
30 printf(" %-15s", inet_ntoa(nat->nat_inip));
32 if ((nat->nat_flags & IPN_TCPUDP) != 0)
33 printf(" %-5hu", ntohs(nat->nat_inport));
35 printf(" <- -> %-15s",inet_ntoa(nat->nat_outip));
37 if ((nat->nat_flags & IPN_TCPUDP) != 0)
38 printf(" %-5hu", ntohs(nat
[all...]
H A Dgetnattype.c19 * Get a nat filter type given its kernel address.
21 char *getnattype(nat, alive)
22 nat_t *nat;
30 if (!nat)
33 type = nat->nat_redir;
35 ipn = nat->nat_ptr;
/freebsd-9.3-release/contrib/ipfilter/tools/
H A Dipnat_y.y58 static ipnat_t *nat = NULL;
111 line: xx rule { while ((nat = nattop) != NULL) {
112 nattop = nat->in_next;
113 (*nataddfunc)(natfd, natioctlfunc, nat);
114 free(nat);
145 { nat->in_v = 4;
146 nat->in_inip = $3.a.s_addr;
147 nat->in_inmsk = $3.m.s_addr;
148 nat->in_outip = $5.a.s_addr;
149 nat
[all...]
H A Dipfs.c170 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);
201 if (!strncmp(nat->nat_ifnames[2], ifs, olen + 1)) {
202 strcpy(nat
576 nat_t *nat; local
[all...]
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_nat.c293 MUTEX_INIT(&nat_udptq.ifq_lock, "nat ipftq udp tab");
299 MUTEX_INIT(&nat_icmptq.ifq_lock, "nat icmp ipftq tab");
305 MUTEX_INIT(&nat_iptq.ifq_lock, "nat ip ipftq tab");
326 MUTEX_INIT(&ipf_nat_new, "ipf nat new mutex");
327 MUTEX_INIT(&ipf_natio, "ipf nat io mutex");
651 ipnat_t *nat, *nt, *n = NULL, **np = NULL; local
681 nat = NULL; /* XXX gcc -Wuninitialized */
704 nat = &natd;
705 if (nat->in_v == 0) /* For backward compat. */
706 nat
1205 nat_t *nat, *n; local
1284 nat_t *n, *nat; local
1407 nat_t *n, *nat; local
1815 nat_t *nat; local
2372 nat_t *nat, *natl; local
2752 nat_t *nat; local
2888 nat_t *nat; local
3148 nat_t *nat; local
3393 nat_t *nat; local
3557 nat_t *nat; local
3765 nat_t *nat; local
4058 nat_t *nat; local
4533 nat_t *nat; local
4771 nat_t *nat; local
5069 nat_t *nat, *nextnat = NULL, zeronat; local
5317 nat_t *nat, **natp; local
[all...]
H A Dip_rcmd_pxy.c58 int ippr_rcmd_new(fin, aps, nat)
61 nat_t *nat;
66 nat = nat; /* LINT */
100 int ippr_rcmd_portmsg(fin, aps, nat)
103 nat_t *nat;
162 if (nat->nat_dir == NAT_OUTBOUND)
163 nat2 = nat_outlookup(&fi, NAT_SEARCH|IPN_TCP, nat->nat_p,
164 nat->nat_inip, nat
[all...]
H A Dip_pptp_pxy.c85 int ippr_pptp_new(fin, aps, nat)
88 nat_t *nat;
96 if (nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_inip,
126 if (nat->nat_dir == NAT_OUTBOUND) {
127 ipn->in_nip = ntohl(nat->nat_outip.s_addr);
130 } else if (nat->nat_dir == NAT_INBOUND) {
132 ipn->in_outip = nat->nat_outip.s_addr;
135 ipn->in_inip = nat->nat_inip.s_addr;
140 bcopy(nat->nat_ptr->in_ifnames[0], ipn->in_ifnames[0],
150 void ippr_pptp_donatstate(fin, nat, ppt
[all...]
H A Dip_ftp_pxy.c124 int ippr_ftp_new(fin, aps, nat)
127 nat_t *nat;
137 nat = nat; /* LINT */
155 int ippr_ftp_port(fin, ip, nat, f, dlen)
158 nat_t *nat;
212 if (((nat->nat_dir == NAT_OUTBOUND) &&
213 (a1 != ntohl(nat->nat_inip.s_addr))) ||
214 ((nat->nat_dir == NAT_INBOUND) &&
215 (a1 != ntohl(nat
[all...]
H A Dip_netbios_pxy.c69 int ippr_netbios_out(fin, aps, nat)
72 nat_t *nat;
81 nat = nat; /* LINT */
H A Dip_ipsec_pxy.c84 int ippr_ipsec_new(fin, aps, nat)
87 nat_t *nat;
107 if (nat_outlookup(fin, 0, IPPROTO_ESP, nat->nat_inip,
132 ipn->in_nip = ntohl(nat->nat_outip.s_addr);
134 ipn->in_inip = nat->nat_inip.s_addr;
137 ipn->in_outmsk = nat->nat_outip.s_addr;
141 bcopy(nat->nat_ptr->in_ifnames[0], ipn->in_ifnames[0],
191 int ippr_ipsec_inout(fin, aps, nat)
194 nat_t *nat;
201 if ((fin->fin_out == 1) && (nat
[all...]
H A Dip_irc_pxy.c225 int ippr_irc_new(fin, aps, nat)
228 nat_t *nat;
237 nat = nat; /* LINT */
247 int ippr_irc_send(fin, nat)
249 nat_t *nat;
287 irc = nat->nat_aps->aps_data;
295 if (irc->irc_ipnum != ntohl(nat->nat_inip.s_addr))
392 nat2 = nat_outlookup(fin, IPN_TCP, nat->nat_p, nat
[all...]
H A Dip_rpcb_pxy.c143 /* nat(I) - pointer to NAT session structure */
148 ippr_rpcb_new(fin, aps, nat)
151 nat_t *nat;
156 nat = nat; /* LINT */
198 /* nat(I) - pointer to NAT session structure */
204 ippr_rpcb_in(fin, aps, nat)
207 nat_t *nat;
238 rv = ippr_rpcb_decodereq(fin, nat, rs, rm);
249 rv = ippr_rpcb_modreq(fin, nat, r
[all...]
H A Dip_raudio_pxy.c53 int ippr_raudio_new(fin, aps, nat)
56 nat_t *nat;
65 nat = nat; /* LINT */
76 int ippr_raudio_out(fin, aps, nat)
79 nat_t *nat;
89 nat = nat; /* LINT */
182 int ippr_raudio_in(fin, aps, nat)
185 nat_t *nat;
[all...]
/freebsd-9.3-release/share/examples/ppp/
H A Dppp.linkdown.sample28 # If you're running ``ppp -auto -nat dynamic-nat-auto'', and are
33 dynamic-nat-auto:
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/sparc64/
H A DMakefile6 LIBSRCS+= sparc-nat.c sparc64-nat.c sparc64fbsd-nat.c
/freebsd-9.3-release/contrib/ipfilter/samples/
H A Dproxy.c145 nat_t *nat; local
149 nat = &ns.ipn_nat;
150 nat->nat_p = IPPROTO_TCP;
151 nat->nat_dir = NAT_OUTBOUND;
153 strncpy(nat->nat_ifnames[0], extif,
154 sizeof(nat->nat_ifnames[0]));
155 strncpy(nat->nat_ifnames[1], extif,
156 sizeof(nat->nat_ifnames[1]));
157 nat->nat_ifnames[0][sizeof(nat
[all...]
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/amd64/
H A DMakefile6 LIBSRCS+= amd64-nat.c amd64bsd-nat.c amd64fbsd-nat.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/i386/
H A DMakefile6 LIBSRCS+= i386-nat.c i386bsd-nat.c i386fbsd-nat.c
/freebsd-9.3-release/sbin/ipf/rules/
H A DMakefile12 firewall ftp-proxy ftppxy mediaone nat-setup \
13 nat.eg server tcpstate mkfilters
/freebsd-9.3-release/sbin/ipfw/
H A DMakefile4 SRCS= ipfw2.c dummynet.c ipv6.c main.c nat.c altq.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/arm/
H A DMakefile4 LIBSRCS+= armfbsd-nat.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/ia64/
H A DMakefile5 LIBSRCS+= ia64-fbsd-nat.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/mips/
H A DMakefile4 LIBSRCS+= mipsfbsd-nat.c fbsd-threads.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/powerpc/
H A DMakefile5 LIBSRCS+= ppcfbsd-nat.c
/freebsd-9.3-release/gnu/usr.bin/gdb/arch/powerpc64/
H A DMakefile5 LIBSRCS+= ppcfbsd-nat.c

Completed in 200 milliseconds

123