mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +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:
@@ -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