no unions
This commit is contained in:
parent
d27ee153ad
commit
53b8d079db
1 changed files with 8 additions and 8 deletions
|
|
@ -86,8 +86,8 @@ enum
|
||||||
/* length of domain name hash table */
|
/* length of domain name hash table */
|
||||||
HTLEN= 4*1024,
|
HTLEN= 4*1024,
|
||||||
|
|
||||||
RRmagic= 0xdeadbabe,
|
#define RRmagic 0xdeadbabe
|
||||||
DNmagic= 0xa110a110,
|
#define DNmagic 0xa110a110
|
||||||
|
|
||||||
/* parallelism */
|
/* parallelism */
|
||||||
Maxactive= 32,
|
Maxactive= 32,
|
||||||
|
|
@ -197,7 +197,7 @@ struct RR
|
||||||
uchar db; /* from database */
|
uchar db; /* from database */
|
||||||
uchar cached; /* rr in cache */
|
uchar cached; /* rr in cache */
|
||||||
ulong marker; /* used locally when scanning rrlists */
|
ulong marker; /* used locally when scanning rrlists */
|
||||||
union {
|
/* union { */
|
||||||
DN *negsoaowner; /* soa for cached negative response */
|
DN *negsoaowner; /* soa for cached negative response */
|
||||||
DN *host; /* hostname - soa, cname, mb, md, mf, mx, ns */
|
DN *host; /* hostname - soa, cname, mb, md, mf, mx, ns */
|
||||||
DN *cpu; /* cpu type - hinfo */
|
DN *cpu; /* cpu type - hinfo */
|
||||||
|
|
@ -206,8 +206,8 @@ struct RR
|
||||||
DN *rp; /* rp arg - rp */
|
DN *rp; /* rp arg - rp */
|
||||||
int cruftlen;
|
int cruftlen;
|
||||||
ulong arg0;
|
ulong arg0;
|
||||||
};
|
/* }; */
|
||||||
union {
|
/* union { */
|
||||||
int negrcode; /* response code for cached negative response */
|
int negrcode; /* response code for cached negative response */
|
||||||
DN *rmb; /* responsible maibox - minfo, soa, rp */
|
DN *rmb; /* responsible maibox - minfo, soa, rp */
|
||||||
DN *ptr; /* pointer to domain name - ptr */
|
DN *ptr; /* pointer to domain name - ptr */
|
||||||
|
|
@ -215,15 +215,15 @@ struct RR
|
||||||
ulong pref; /* preference value - mx */
|
ulong pref; /* preference value - mx */
|
||||||
ulong local; /* ns served from local database - ns */
|
ulong local; /* ns served from local database - ns */
|
||||||
ulong arg1;
|
ulong arg1;
|
||||||
};
|
/* }; */
|
||||||
union {
|
/* union { */
|
||||||
SOA *soa; /* soa timers - soa */
|
SOA *soa; /* soa timers - soa */
|
||||||
Key *key;
|
Key *key;
|
||||||
Cert *cert;
|
Cert *cert;
|
||||||
Sig *sig;
|
Sig *sig;
|
||||||
Null *null;
|
Null *null;
|
||||||
Txt *txt;
|
Txt *txt;
|
||||||
};
|
/* }; */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue