HomeSort by: relevance | last modified time | path
    Searched refs:nat (Results 1 - 25 of 127) sorted by relevancy

1 2 3 4 5 6

  /src/external/bsd/ipf/dist/lib/
printactivenat.c 20 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->nat_ifnames[0])
    [all...]
getnattype.c 19 * 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);
  /src/external/bsd/ipf/dist/tools/
ipnat_y.y 58 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...]
ipnat.c 249 * Read NAT statistic information in using a symbol table and memory file
301 * Issue an ioctl to flush either the NAT rules table or the active mapping
331 printf("%d entries flushed from NAT table\n", n);
339 printf("%d entries flushed from NAT list\n", n);
345 * Display NAT statistics.
351 nat_t *np, nat; local
382 for (np = nsp->ns_instances; np; np = nat.nat_next) {
383 if (kmemcpy((char *)&nat, (long)np, sizeof(nat)))
385 if ((filter != NULL) && (nat_matcharray(&nat, filter) == 0)
547 nat_t nat; local
    [all...]
  /src/tests/ipf/regress/
Makefile 136 ni1.nat \
138 ni10.nat \
140 ni11.nat \
142 ni12.nat \
144 ni13.nat \
146 ni14.nat \
148 ni15.nat \
150 ni16.nat \
152 ni17.nat \
154 ni18.nat \
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_nat.c 142 /* nat */
194 /* How the NAT is organised and works. */
196 /* Inside (interface y) NAT Outside (interface x) */
210 /* In the NAT table, internal source is recorded as "in" and externally */
272 /* The only global NAT structure that needs to be initialised is the filter */
303 /* Returns: void * - NULL = failure, else pointer to NAT context */
306 /* Allocate the initial soft context structure for NAT and populate it with */
382 /* Initialise all of the NAT locks, tables and other structures. */
477 "nat ipftq udp tab");
481 "nat ipftq udpack tab")
985 ipnat_t *nat, *nt, *n; local
1686 nat_t *nat, *n; local
1779 nat_t *n, *nat; local
1915 nat_t *n, *nat; local
2441 nat_t *nat; local
2533 nat_t *nat; local
3066 nat_t *nat, *natl; local
3575 nat_t *nat; local
3729 nat_t *nat; local
4030 nat_t *nat; local
4359 nat_t *nat; local
4587 nat_t *nat; local
4790 nat_t *nat; local
5283 nat_t *nat; local
5863 nat_t *nat; local
6226 nat_t *nat; local
6523 nat_t *nat, *nextnat = NULL, zeronat; local
6667 nat_t *nat, **natp; local
7592 nat_t *nat, *natnext; local
7908 nat_t **newtab[2], *nat, **natp; local
8232 nat_t *nat; local
    [all...]
ip_nat6.c 150 /* Parameters: in(I) - NAT rule that requires address fields to be init'd */
152 /* For each of the source/destination address fields in a NAT rule, call */
206 /* Parameters: n(I) - pointer to NAT rule to add */
209 /* loaded NAT rules. Updates the bitmask indicating which netmasks are in */
253 /* Parameters: n(I) - pointer to NAT rule to add */
255 /* Adds a NAT map rule to the hash table of rules and the list of loaded */
256 /* NAT rules. Updates the bitmask indicating which netmasks are in use by */
294 /* Parameters: n(I) - pointer to NAT rule to delete */
296 /* Removes a NAT rdr rule from the hash table of NAT rdr rules. *
944 nat_t *nat, *natl; local
1374 nat_t *nat; local
1566 nat_t *nat; local
1878 nat_t *nat; local
2191 nat_t *nat; local
2420 nat_t *nat; local
2574 nat_t *nat; local
2973 nat_t *nat; local
    [all...]
ip_tftp_pxy.c 132 ipf_p_tftp_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
137 if (nat->nat_dir == NAT_OUTBOUND)
138 return ipf_p_tftp_client(softt, fin, aps, nat);
139 return ipf_p_tftp_server(softt, fin, aps, nat);
144 ipf_p_tftp_in(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
149 if (nat->nat_dir == NAT_INBOUND)
150 return ipf_p_tftp_client(softt, fin, aps, nat);
151 return ipf_p_tftp_server(softt, fin, aps, nat);
156 ipf_p_tftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
166 np = nat->nat_ptr
    [all...]
ip_rcmd_pxy.c 10 * Simple RCMD transparent proxy for in-kernel use. For use with the NAT
70 ipf_p_rcmd_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
86 ipn = ipf_proxy_rule_rev(nat);
133 ipf_p_rcmd_portmsg(fr_info_t *fin, ap_session_t *aps, nat_t *nat)
199 * Initialise the packet info structure so we can search the NAT
207 fi.fin_src6 = nat->nat_ndst6;
208 fi.fin_dst6 = nat->nat_nsrc6;
210 if (nat->nat_v[0] == 6) {
212 if (nat->nat_dir == NAT_OUTBOUND) {
214 nat->nat_pr[1]
    [all...]
ip_netbios_pxy.c 5 * For use with the NAT code.
75 ipf_p_netbios_out(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
84 nat = nat; /* LINT */
ip_pptp_pxy.c 6 * Simple PPTP transparent proxy for in-kernel use. For use with the NAT
116 ipf_p_pptp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
128 np = nat->nat_ptr;
131 if (ipf_nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_osrcip,
157 * Create NAT rule against which the tunnel/transport mapping is
158 * created. This is required because the current NAT rule does not
167 ipn->in_snip = ntohl(nat->nat_nsrcaddr);
169 ipn->in_dnip = ntohl(nat->nat_ndstaddr);
170 ipn->in_ndstaddr = nat->nat_ndstaddr;
172 ipn->in_osrcaddr = nat->nat_osrcaddr
    [all...]
ip_ftp_pxy.c 8 * Simple FTP transparent proxy for in-kernel use. For use with the NAT
227 ipf_p_ftp_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
236 nat = nat; /* LINT */
282 ipf_p_ftp_port(ipf_ftp_softc_t *softf, fr_info_t *fin, ip_t *ip, nat_t *nat,
303 DT3(ftp_PORT_error_dlen, nat_t *, nat, ftpside_t *, f,
319 DT2(ftp_PORT_error_atoi_1, nat_t *, nat, ftpside_t *, f);
326 DT2(ftp_PORT_error_atoi_2, nat_t *, nat, ftpside_t *, f);
338 if (((nat->nat_dir == NAT_OUTBOUND) &&
339 (a1 != ntohl(nat->nat_osrcaddr))) |
    [all...]
ip_proxy.c 674 /* nat(I) - pointer to current NAT session */
676 /* This function extends the NAT matching to ensure that a packet that has */
677 /* arrived matches the proxy information attached to the NAT rule. Notably, */
762 /* nat(I) - pointer to current NAT session */
765 /* matching. Whilst other parts of the NAT code are rather lenient when it */
770 ipf_proxy_match(fr_info_t *fin, nat_t *nat)
778 ipn = nat->nat_ptr;
781 (u_long)fin, (u_long)nat, (u_long)nat->nat_aps
    [all...]
ip_irc_pxy.c 229 ipf_p_irc_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
240 nat = nat; /* LINT */
251 ipf_p_irc_send(fr_info_t *fin, nat_t *nat)
291 irc = nat->nat_aps->aps_data;
299 if (irc->irc_ipnum != ntohl(nat->nat_osrcaddr))
375 * Add skeleton NAT entry for connection which will come back the
394 nat2 = ipf_nat_outlookup(fin, IPN_TCP, nat->nat_pr[1], nat->nat_nsrcip,
413 ip->ip_src = nat->nat_nsrcip
    [all...]
ip_ipsec_pxy.c 8 * Simple ISAKMP transparent proxy for in-kernel use. For use with the NAT
132 ipf_p_ipsec_new(void *arg, fr_info_t *fin, ap_session_t *aps, nat_t *nat)
162 if (ipf_nat_outlookup(fin, 0, IPPROTO_ESP, nat->nat_nsrcip,
166 np = nat->nat_ptr;
185 * Create NAT rule against which the tunnel/transport mapping is
186 * created. This is required because the current NAT rule does not
197 ipn->in_snip = ntohl(nat->nat_nsrcaddr);
199 ipn->in_osrcip = nat->nat_osrcip;
201 ipn->in_nsrcip = nat->nat_nsrcip;
203 ipn->in_odstip = nat->nat_odstip
    [all...]
  /src/external/bsd/ipf/dist/
ip_nat6.c 153 /* Parameters: in(I) - NAT rule that requires address fields to be init'd */
155 /* For each of the source/destination address fields in a NAT rule, call */
211 /* Parameters: n(I) - pointer to NAT rule to add */
214 /* loaded NAT rules. Updates the bitmask indicating which netmasks are in */
260 /* Parameters: n(I) - pointer to NAT rule to add */
262 /* Adds a NAT map rule to the hash table of rules and the list of loaded */
263 /* NAT rules. Updates the bitmask indicating which netmasks are in use by */
303 /* Parameters: n(I) - pointer to NAT rule to delete */
305 /* Removes a NAT rdr rule from the hash table of NAT rdr rules. *
970 nat_t *nat, *natl; local
1405 nat_t *nat; local
1605 nat_t *nat; local
1922 nat_t *nat; local
2243 nat_t *nat; local
2474 nat_t *nat; local
2629 nat_t *nat; local
3030 nat_t *nat; local
    [all...]
ip_tftp_pxy.c 135 ipf_p_tftp_out(arg, fin, aps, nat)
139 nat_t *nat;
144 if (nat->nat_dir == NAT_OUTBOUND)
145 return ipf_p_tftp_client(softt, fin, aps, nat);
146 return ipf_p_tftp_server(softt, fin, aps, nat);
151 ipf_p_tftp_in(arg, fin, aps, nat)
155 nat_t *nat;
160 if (nat->nat_dir == NAT_INBOUND)
161 return ipf_p_tftp_client(softt, fin, aps, nat);
162 return ipf_p_tftp_server(softt, fin, aps, nat);
    [all...]
ip_pptp_pxy.c 6 * Simple PPTP transparent proxy for in-kernel use. For use with the NAT
112 ipf_p_pptp_new(arg, fin, aps, nat)
116 nat_t *nat;
128 np = nat->nat_ptr;
131 if (ipf_nat_outlookup(fin, 0, IPPROTO_GRE, nat->nat_osrcip,
157 * Create NAT rule against which the tunnel/transport mapping is
158 * created. This is required because the current NAT rule does not
167 ipn->in_snip = ntohl(nat->nat_nsrcaddr);
169 ipn->in_dnip = ntohl(nat->nat_ndstaddr);
170 ipn->in_ndstaddr = nat->nat_ndstaddr
    [all...]
ip_irc_pxy.c 229 ipf_p_irc_new(arg, fin, aps, nat)
233 nat_t *nat;
244 nat = nat; /* LINT */
255 ipf_p_irc_send(fin, nat)
257 nat_t *nat;
297 irc = nat->nat_aps->aps_data;
305 if (irc->irc_ipnum != ntohl(nat->nat_osrcaddr))
386 * Add skeleton NAT entry for connection which will come back the
405 nat2 = ipf_nat_outlookup(fin, IPN_TCP, nat->nat_pr[1], nat->nat_nsrcip
    [all...]
ip_rpcb_pxy.c 21 * When triggered by appropriate IP NAT rules, this proxy works by
23 * modified, NAT and state table entries created, etc., as necessary.
36 * o There is a potential collision between cloning, wildcard NAT and
142 /* nat(I) - pointer to NAT session structure */
147 ipf_p_rpcb_new(arg, fin, aps, nat)
151 nat_t *nat;
155 nat = nat; /* LINT */
201 /* nat(I) - pointer to NAT session structure *
    [all...]
  /src/external/bsd/ipf/dist/samples/
proxy.c 10 * with a NAT rue like this:
90 * Build up the NAT natlookup structure.
100 * Open the NAT device and lookup the mapping pair.
145 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
    [all...]
  /src/external/bsd/ipf/rules/
Makefile 9 FILES= BASIC.NAT BASIC_1.FW BASIC_2.FW example.1 example.2 example.3 \
12 firewall ftp-proxy ftppxy nat-setup \
13 nat.eg server tcpstate mkfilters
  /src/tests/ipf/
t_pools.sh 46 if [ -f $(atf_get_srcdir)/regress/$1.nat ] ; then
47 cp $(atf_get_srcdir)/regress/$1.nat nat
53 if [ -f nat ] ; then
54 atf_check -o save:out ipftest -RD -b -P pool -N nat -i in
  /src/external/bsd/openldap/dist/servers/slapd/back-monitor/
entry.c 189 struct berval nat; local
196 nat = *rdn;
197 ptr = strchr( nat.bv_val, '=' );
198 nat.bv_len = ptr - nat.bv_val;
199 rc = slap_bv2ad( &nat, &nad, &text );
211 nat.bv_val = ptr + 1;
212 nat.bv_len = rdn->bv_len - ( nat.bv_val - rdn->bv_val );
217 attr_merge_normalize_one( e, nad, &nat, NULL )
    [all...]
  /src/games/sail/
pl_main.c 58 int nat[NNATION]; local
69 nat[n] = 0;
76 sp->file->stern = nat[sp->nationality]++;

Completed in 27 milliseconds

1 2 3 4 5 6