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

1 2

  /src/games/sail/
dr_main.c 59 int nat[NNATION]; local
79 nat[n] = 0;
91 sp->file->stern = nat[sp->nationality]++;
pl_main.c 58 int nat[NNATION]; local
69 nat[n] = 0;
76 sp->file->stern = nat[sp->nationality]++;
dr_1.c 55 int nat; local
61 nat = capship(sp)->nationality;
63 if (nat != capship(to)->nationality &&
  /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/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/usr.sbin/npf/npfctl/
npf_cmd.c 148 "invalid NAT ruleset name (note: the name must be "
409 bool nat; member in struct:__anon8532
429 * applicability of NAT.
438 if (fil->nat && !nat_conn) {
509 f.nat = true;
529 "nat-addr:port");
npf_build.c 688 * npfctl_build_maprset: create and insert a NAT ruleset.
701 yyerror("NAT ruleset names must be prefixed with `"
705 yyerror("NAT ruleset is missing a name (only prefix found)");
902 * npfctl_build_nat: create a single NAT policy of a specified
912 nl_nat_t *nat; local
927 nat = npf_nat_create(type, flags, ifname);
934 npf_nat_setaddr(nat, family, &am->fam_addr, am->fam_mask);
940 npf_nat_settable(nat, tid);
946 npf_nat_setport(nat, port);
947 npfctl_build_code(nat, family, popts, fopts)
    [all...]
  /src/external/bsd/ipf/dist/tools/
ipfs.c 163 * Change interface names in NAT information saved out to disk.
170 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);
568 nat_t *nat; local
    [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...]
ipftest.c 394 fprintf(stderr, "ipfioctl(NAT,%#x,%p) = %d\n",
548 fprintf(stderr, "ipfioctl(NAT,%#x,%p) = %d\n", cmd, data, i);
680 * Display the built up NAT table rules and mapping entries.
688 nat_t *nat; local
694 for (nat = softn->ipf_nat_instances; nat; nat = nat->nat_next) {
695 printactivenat(nat, opts, 0);
696 if (nat->nat_aps
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_frag.c 198 RWLOCK_INIT(&softf->ipfr_natfrag, "ipf NAT fragment rwlock");
539 /* nat(I) - pointer to NAT structure */
541 /* Create a new NAT fragment cache entry based on the current packet and */
542 /* the NAT structure for this "session". */
546 nat_t *nat)
561 fra->ipfr_data = nat;
562 nat->nat_data = fra;
787 /* Returns: nat_t* - pointer to 'parent' NAT structure if frag table */
791 /* Functional interface for NAT lookups of the NAT fragment cache *
798 nat_t *nat; local
1002 nat_t *nat; local
1041 nat_t *nat; local
    [all...]
ip_sync.c 153 void ipf_sync_natorder(int, struct nat *);
236 RWLOCK_INIT(&softs->ipf_syncnat, "add things to nat sync table");
337 /* nat(IO) - pointer to data to be converted. */
339 /* Do byte swapping on values in the NAT data structure that need to be */
425 /* structures in the state/NAT tables. */
577 /* for pending state/NAT updates. If no data is available, the caller is */
889 /* Deletes an object from the synclist nat table and free's its memory. */
909 /* Updates the NAT table according to information passed in the sync */
912 /* create a new NAT entry or update one. Deletion is left to the NAT */
920 nat_t *n, *nat; local
1154 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_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...]
  /src/sys/net/npf/
npf_conn.c 55 * The key may be formed using translated values in a case of NAT.
58 * to accommodate the dynamic NAT. Connections for the former purpose
62 * ruleset. The other purpose is to associate a dynamic NAT mechanism
63 * with a connection. Such connections are created by the NAT policies
64 * and they have a relationship with NAT translation structure via
71 * NAT policy. Both keys of the established connection are inserted
404 * on other interfaces will also bypass dynamic NAT.
535 /* Release any NAT structures. */
554 * npf_conn_setnat: associate NAT entry with the connection, update and
624 /* Associate the NAT entry and release the lock. *
860 const nvlist_t *nat, *conkey; local
    [all...]
npf_ctl.c 440 npf_mk_singlenat(npf_t *npf, const nvlist_t *nat, nvlist_t *resp,
448 * NAT rules are standard rules, plus the translation policy.
451 error = npf_mk_singlerule(npf, nat, resp, NULL, &rl);
458 /* If this rule is named, then it is a group with NAT policies. */
459 if (dnvlist_get_string(nat, "name", NULL)) {
464 if (nvlist_exists_number(nat, "nat-table-id")) {
465 unsigned tid = nvlist_get_number(nat, "nat-table-id");
474 /* Allocate a new NAT policy and assign it to the rule. *
512 const nvlist_t *nat = nat_rules[i]; local
    [all...]
  /src/external/bsd/ipf/dist/
ip_sync.c 149 void ipf_sync_natorder __P((int, struct nat *));
235 RWLOCK_INIT(&softs->ipf_syncnat, "add things to nat sync table");
342 /* nat(IO) - pointer to data to be converted. */
344 /* Do byte swapping on values in the NAT data structure that need to be */
434 /* structures in the state/NAT tables. */
588 /* for pending state/NAT updates. If no data is available, the caller is */
909 /* Deletes an object from the synclist nat table and free's its memory. */
931 /* Updates the NAT table according to information passed in the sync */
934 /* create a new NAT entry or update one. Deletion is left to the NAT */
945 nat_t *n, *nat; local
1186 nat_t *nat; local
    [all...]
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...]
  /src/external/bsd/openldap/dist/servers/slapd/back-mdb/
id2entry.c 876 int i, nat = 0, nval = 0, nnval = 0, doff = 0; local
885 nat++;
930 eh->nattrs = nat;
932 eh->offset = nat + nval - nnval - doff;
  /src/external/bsd/openldap/dist/servers/slapd/
entry.c 637 int i, nat = 0, nval = 0; local
650 nat++;
672 len += entry_lenlen(nat);
675 *pnattrs = nat;
  /src/usr.sbin/sysinst/arch/i386/
md.c 718 struct nativedisk_info *nip = NULL, *nat; local
733 nat = &disklist->dl_nativedisks[i];
734 if (!strcmp(dev, nat->ni_devname)) {
735 nip = nat;
  /src/sys/external/mit/xen-include-public/dist/xen/include/public/arch-x86/hvm/
save.h 281 struct hvm_hw_cpu nat; member in union:hvm_hw_cpu_union
291 ucpu->nat.error_code = ucpu->cmp.error_code;
292 ucpu->nat.pending_event = ucpu->cmp.pending_event;
293 ucpu->nat.tsc = ucpu->cmp.tsc;
294 ucpu->nat.msr_tsc_aux = 0;
297 ucpu->nat.flags = XEN_X86_FPU_INITIALISED;
  /src/lib/libnpf/
npf.c 572 if (natset && !dnvlist_get_bool(rule_nvl, "nat-rule", false)) {
577 nvlist_add_bool(rule_nvl, "nat-ruleset", natset);
597 nvlist_add_bool(rule_nvl, "nat-ruleset", natset);
614 nvlist_add_bool(rule_nvl, "nat-ruleset", natset);
631 nvlist_add_bool(rule_nvl, "nat-ruleset", natset);
893 nvlist_add_bool(req, "nat-ruleset", natset);
1000 * NAT INTERFACE.
1013 /* Create a rule for NAT policy. Next, will add NAT data. */
1023 nvlist_add_bool(rule_dict, "nat-rule", true)
1392 const nvlist_t *nat; local
    [all...]
  /src/external/gpl3/gcc/dist/libgcc/config/ia64/
unwind-ia64.c 162 UNW_NAT_NONE, /* NaT not represented */
163 UNW_NAT_VAL, /* NaT represented by NaT value (fp reg) */
164 UNW_NAT_MEMSTK, /* NaT value is in unat word at offset OFF */
165 UNW_NAT_REGSTK /* NaT is in rnat */
177 unw_word rnat; /* rse nat collection */
216 unw_sword off : 61; /* NaT word is at loc+nat.off */
217 } nat; member in struct:_Unwind_Context::unw_ireg
223 /* ??? We initially point pri_unat_loc here. The entire NAT bi
1668 char nat; local
1685 char nat = 0; local
2191 char nat; local
    [all...]
  /src/external/gpl3/gcc.old/dist/libgcc/config/ia64/
unwind-ia64.c 162 UNW_NAT_NONE, /* NaT not represented */
163 UNW_NAT_VAL, /* NaT represented by NaT value (fp reg) */
164 UNW_NAT_MEMSTK, /* NaT value is in unat word at offset OFF */
165 UNW_NAT_REGSTK /* NaT is in rnat */
177 unw_word rnat; /* rse nat collection */
216 unw_sword off : 61; /* NaT word is at loc+nat.off */
217 } nat; member in struct:_Unwind_Context::unw_ireg
223 /* ??? We initially point pri_unat_loc here. The entire NAT bi
1668 char nat; local
1685 char nat = 0; local
2191 char nat; local
    [all...]

Completed in 37 milliseconds

1 2