tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / bsdsocket / kern / amiga_netdb_resolver.h
blob9e62109631fa075f32d24b13c38c1875a4817e36
1 /* The Definitions in this file are PRIVATE to the stack.
2 No user applications should access them since
3 they may and WILL change!! */
5 #ifndef __private_amiga_netdb_resolver_h
6 #define __private_amiga_netdb_resolver_h
8 #include <netinet/in.h>
9 #include <netdb.h>
10 #include <exec/lists.h>
11 #include <exec/nodes.h>
13 /* PRIVATE SocketBaseTags */
15 #define SBTC_PRIVATE_RES_STATE 0x3FFF /* Access to resolver state structure
16 for many funcs */
18 #define PRIVATE_STACK_RESOLVER_DISABLED 0x8000 /* Used to Implement MiamiDisallowDNS() */
20 /* Resolver state */
21 struct state
23 int retrans; /* retransmition time interval */
24 int retry; /* number of times to retransmit */
25 long options; /* option flags - see below. */
26 u_short id; /* current packet id */
27 ULONG dbserial;
28 char **dnsrch;
29 struct in_addr *nsaddr_list;
32 /* Access control table item */
33 struct AccessItem {
34 UWORD ai_flags;
35 UWORD ai_port;
36 ULONG ai_host;
37 ULONG ai_mask;
40 /* NetDataBase */
41 struct NetDataBase {
42 struct MinList ndb_Hosts;
43 struct MinList ndb_Networks;
44 struct MinList ndb_Services;
45 struct MinList ndb_Protocols;
46 struct MinList ndb_NameServers;
47 struct MinList ndb_Domains;
48 LONG ndb_AccessCount; /* tmp var, but reduces code size */
49 struct AccessItem * ndb_AccessTable;
52 struct DynDataBase
54 struct SignalSemaphore dyn_Lock;
55 struct MinList dyn_NameServers;
56 struct MinList dyn_Domains;
60 * GenEnt has the common part of all NetDataBase Nodes
62 struct GenentNode {
63 struct MinNode gn_Node;
64 short gn_EntSize;
65 struct {
66 char *dummy[0];
67 } gn_Ent;
70 /* NetDataBase Nodes */
71 struct HostentNode {
72 struct MinNode hn_Node;
73 short hn_EntSize;
74 struct hostent hn_Ent;
77 struct NetentNode {
78 struct MinNode nn_Node;
79 short nn_EntSize;
80 struct netent nn_Ent;
83 struct ServentNode {
84 struct MinNode sn_Node;
85 short sn_EntSize;
86 struct servent sn_Ent;
89 struct ProtoentNode {
90 struct MinNode pn_Node;
91 short pn_EntSize;
92 struct protoent pn_Ent;
95 struct NameserventNode {
96 struct MinNode nsn_Node;
97 short nsn_EntSize;
98 struct nameservent {
99 struct in_addr ns_addr;
100 } nsn_Ent;
103 struct DomainentNode {
104 struct MinNode dn_Node;
105 short dn_EntSize;
106 struct domainent {
107 char *d_name;
108 } dn_Ent;
111 #endif