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

123

/freebsd-10.1-release/contrib/ipfilter/lib/
H A Dprintactivenat.c20 printactivenat(nat, opts, ticks)
21 nat_t *nat;
26 PRINTF("%s", getnattype(nat));
28 if (nat->nat_flags & SI_CLONE)
30 if (nat->nat_phnext[0] == NULL && nat->nat_phnext[1] == NULL)
34 if (nat->nat_redir & NAT_REWRITE) {
35 printactiveaddress(nat->nat_v[0], "%-15s", &nat->nat_osrc6,
36 nat
[all...]
H A Dgetnattype.c19 * Get a nat filter type given its kernel address.
22 getnattype(nat)
23 nat_t *nat;
28 if (!nat)
31 switch (nat->nat_redir)
65 nat->nat_redir & 0xffffffff);
/freebsd-10.1-release/contrib/ipfilter/tools/
H A Dipnat_y.y58 static ipnat_t *nat = NULL;
143 while ((nat = nattop) != NULL) {
144 if (nat->in_v[0] == 0)
145 nat->in_v[0] = 4;
146 if (nat->in_v[1] == 0)
147 nat->in_v[1] = nat->in_v[0];
148 nattop = nat->in_next;
149 err = (*nataddfunc)(natfd, natioctlfunc, nat);
150 free(nat);
[all...]
H A Dipnat.c352 nat_t *np, nat; local
383 for (np = nsp->ns_instances; np; np = nat.nat_next) {
384 if (kmemcpy((char *)&nat, (long)np, sizeof(nat)))
386 if ((filter != NULL) && (nat_matcharray(&nat, filter) == 0))
390 printnatfield(&nat, nat_fields[i].w_value);
396 printactivenat(&nat, opts, nsp->ns_ticks);
397 if (nat.nat_aps) {
400 if (nat.nat_dir & NAT_OUTBOUND)
401 proto = nat
548 nat_t nat; local
[all...]
/freebsd-10.1-release/sys/contrib/ipfilter/netinet/
H A Dip_nat.c139 /* nat */
482 "nat ipftq udp tab");
486 "nat ipftq udpack tab");
490 "nat icmp ipftq tab");
494 "nat icmpack ipftq tab");
498 "nat ip ipftq tab");
501 IPFTQ_INIT(&softn->ipf_nat_pending, 1, "nat pending ipftq tab");
520 MUTEX_INIT(&softn->ipf_nat_new, "ipf nat new mutex");
521 MUTEX_INIT(&softn->ipf_nat_io, "ipf nat io mutex");
1021 ipnat_t *nat, *n local
1723 nat_t *nat, *n; local
1819 nat_t *n, *nat; local
1957 nat_t *n, *nat; local
2472 nat_t *nat; local
2569 nat_t *nat; local
3109 nat_t *nat, *natl; local
3627 nat_t *nat; local
3786 nat_t *nat; local
4091 nat_t *nat; local
4430 nat_t *nat; local
4661 nat_t *nat; local
4870 nat_t *nat; local
5362 nat_t *nat; local
5944 nat_t *nat; local
6315 nat_t *nat; local
6626 nat_t *nat, *nextnat = NULL, zeronat; local
6773 nat_t *nat, **natp; local
7725 nat_t *nat, *natnext; local
8052 nat_t **newtab[2], *nat, **natp; local
8402 nat_t *nat; local
[all...]
H A Dip_nat6.c452 /* nat(I) - pointer to NAT entry */
462 ipf_nat6_newmap(fin, nat, ni)
464 nat_t *nat;
486 flags = nat->nat_flags;
517 nat->nat_hm = hm;
706 nat->nat_osrc6 = fin->fin_src6;
707 nat->nat_nsrc6 = in;
708 nat->nat_odst6 = fin->fin_dst6;
709 nat->nat_ndst6 = fin->fin_dst6;
710 if (nat
968 nat_t *nat, *natl; local
1403 nat_t *nat; local
1603 nat_t *nat; local
1920 nat_t *nat; local
2241 nat_t *nat; local
2472 nat_t *nat; local
2627 nat_t *nat; local
3028 nat_t *nat; local
[all...]
H A Dip_rcmd_pxy.c68 ipf_p_rcmd_new(arg, fin, aps, nat)
72 nat_t *nat;
82 np = nat->nat_ptr;
94 ipn = ipf_proxy_rule_rev(nat);
144 ipf_p_rcmd_portmsg(fin, aps, nat)
147 nat_t *nat;
221 fi.fin_src6 = nat->nat_ndst6;
222 fi.fin_dst6 = nat->nat_nsrc6;
224 if (nat->nat_v[0] == 6) {
226 if (nat
[all...]
H A Dip_tftp_pxy.c133 ipf_p_tftp_out(arg, fin, aps, nat)
137 nat_t *nat;
142 if (nat->nat_dir == NAT_OUTBOUND)
143 return ipf_p_tftp_client(softt, fin, aps, nat);
144 return ipf_p_tftp_server(softt, fin, aps, nat);
149 ipf_p_tftp_in(arg, fin, aps, nat)
153 nat_t *nat;
158 if (nat->nat_dir == NAT_INBOUND)
159 return ipf_p_tftp_client(softt, fin, aps, nat);
160 return ipf_p_tftp_server(softt, fin, aps, nat);
[all...]
H A Dip_netbios_pxy.c70 ipf_p_netbios_out(arg, fin, aps, nat)
74 nat_t *nat;
83 nat = nat; /* LINT */
H A Dip_pptp_pxy.c110 ipf_p_pptp_new(arg, fin, aps, nat)
114 nat_t *nat;
126 np = nat->nat_ptr;
129 if (ipf_nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_osrcip,
165 ipn->in_snip = ntohl(nat->nat_nsrcaddr);
167 ipn->in_dnip = ntohl(nat->nat_ndstaddr);
168 ipn->in_ndstaddr = nat->nat_ndstaddr;
170 ipn->in_osrcaddr = nat->nat_osrcaddr;
171 ipn->in_odstaddr = nat->nat_odstaddr;
194 ipf_p_pptp_donatstate(fin, nat, ppt
[all...]
H A Dip_irc_pxy.c227 ipf_p_irc_new(arg, fin, aps, nat)
231 nat_t *nat;
242 nat = nat; /* LINT */
253 ipf_p_irc_send(fin, nat)
255 nat_t *nat;
295 irc = nat->nat_aps->aps_data;
303 if (irc->irc_ipnum != ntohl(nat->nat_osrcaddr))
403 nat2 = ipf_nat_outlookup(fin, IPN_TCP, nat->nat_pr[1], nat
[all...]
H A Dip_ftp_pxy.c228 ipf_p_ftp_new(arg, fin, aps, nat)
232 nat_t *nat;
241 nat = nat; /* LINT */
289 ipf_p_ftp_port(softf, fin, ip, nat, ftp, dlen)
293 nat_t *nat;
315 DT3(ftp_PORT_error_dlen, nat_t *, nat, ftpside_t *, f,
331 DT2(ftp_PORT_error_atoi_1, nat_t *, nat, ftpside_t *, f);
338 DT2(ftp_PORT_error_atoi_2, nat_t *, nat, ftpside_t *, f);
350 if (((nat
[all...]
H A Dip_rpcb_pxy.c140 /* nat(I) - pointer to NAT session structure */
145 ipf_p_rpcb_new(arg, fin, aps, nat)
149 nat_t *nat;
153 nat = nat; /* LINT */
199 /* nat(I) - pointer to NAT session structure */
205 ipf_p_rpcb_in(arg, fin, aps, nat)
209 nat_t *nat;
240 rv = ipf_p_rpcb_decodereq(fin, nat, rs, rm);
251 rv = ipf_p_rpcb_modreq(fin, nat, r
[all...]
/freebsd-10.1-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-10.1-release/gnu/usr.bin/gdb/arch/sparc64/
H A DMakefile6 LIBSRCS+= sparc-nat.c sparc64-nat.c sparc64fbsd-nat.c
/freebsd-10.1-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-10.1-release/gnu/usr.bin/gdb/arch/amd64/
H A DMakefile6 LIBSRCS+= amd64-nat.c amd64bsd-nat.c amd64fbsd-nat.c
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/i386/
H A DMakefile6 LIBSRCS+= i386-nat.c i386bsd-nat.c i386fbsd-nat.c
/freebsd-10.1-release/sbin/ipf/rules/
H A DMakefile12 firewall ftp-proxy ftppxy mediaone nat-setup \
13 nat.eg server tcpstate mkfilters
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/arm/
H A DMakefile4 LIBSRCS+= armfbsd-nat.c
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/ia64/
H A DMakefile5 LIBSRCS+= ia64-fbsd-nat.c
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/mips/
H A DMakefile7 LIBSRCS+= mipsfbsd-nat.c fbsd-threads.c
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/powerpc/
H A DMakefile5 LIBSRCS+= ppcfbsd-nat.c
/freebsd-10.1-release/gnu/usr.bin/gdb/arch/powerpc64/
H A DMakefile5 LIBSRCS+= ppcfbsd-nat.c
/freebsd-10.1-release/sbin/ipfw/
H A DMakefile6 SRCS= ipfw2.c dummynet.c ipv6.c main.c nat.c

Completed in 154 milliseconds

123