mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-26 20:48:32 +00:00
Generalise locally-configured CNAME handling.
It's now possible for the target of a CNAME to be any locally configured RR or even point to a non-existent RR.
This commit is contained in:
4 files changed
+34
-108
No files matched your search
+6
-6
@@ -287,9 +287,9 @@ union all_addr {
|
||||
struct {
|
||||
union {
|
||||
struct crec *cache;
|
||||
struct interface_name *int_name;
|
||||
char *name;
|
||||
} target;
|
||||
unsigned int uid; /* 0 if union is interface-name */
|
||||
unsigned int uid; /* 0 if union is char * */
|
||||
} cname;
|
||||
struct {
|
||||
struct blockdata *keydata;
|
||||
@@ -483,10 +483,10 @@ struct crec {
|
||||
|
||||
#define UID_NONE 0
|
||||
/* Values of uid in crecs with F_CONFIG bit set. */
|
||||
/* cname to uid SRC_INTERFACE are to interface names,
|
||||
so use UID_NONE for that to eliminate clashes with
|
||||
any other uid */
|
||||
#define SRC_INTERFACE UID_NONE
|
||||
/* cname to uid SRC_PTR are to locally-configured CNAME
|
||||
so use UID_NONE for that to
|
||||
eliminate clashes with any other uid */
|
||||
#define SRC_PTR UID_NONE
|
||||
#define SRC_CONFIG 1
|
||||
#define SRC_HOSTS 2
|
||||
#define SRC_AH 3
|
||||
|
||||
Reference in new issue
Block a user