Skip to content
Snippets Groups Projects
Commit 3937198b authored by Karel Slaný's avatar Karel Slaný
Browse files

layer/validate: minor code changes

parent c31d26c9
Branches
Tags
No related merge requests found
......@@ -74,10 +74,10 @@ static int nsec_nonamematch(const knot_rrset_t *nsec, const knot_dname_t *sname)
}
}
#define FLG_NOEXIST_RRTYPE 0x01 /**< <SNAME, SCLASS> exists, <SNAME, SCLASS, STYPE> does not exist. */
#define FLG_NOEXIST_RRSET 0x02 /**< <SNAME, SCLASS> does not exist. */
#define FLG_NOEXIST_WILDCARD 0x04 /**< No wildcard covering <SNAME, SCLASS> exists. */
#define FLG_NOEXIST_CLOSER 0x08 /**< Wildcard covering <SNAME, SCLASS> exists, but doesn't match STYPE. */
#define FLG_NOEXIST_RRTYPE (1 << 0) /**< <SNAME, SCLASS> exists, <SNAME, SCLASS, STYPE> does not exist. */
#define FLG_NOEXIST_RRSET (1 << 1) /**< <SNAME, SCLASS> does not exist. */
#define FLG_NOEXIST_WILDCARD (1 << 2) /**< No wildcard covering <SNAME, SCLASS> exists. */
#define FLG_NOEXIST_CLOSER (1 << 3) /**< Wildcard covering <SNAME, SCLASS> exists, but doesn't match STYPE. */
/**
* According to set flags determine whether authenticated denial of existence has been proven.
......
......@@ -31,13 +31,13 @@
#define OPT_OUT_BIT 0x01
//#define FLG_CLOSEST_ENCLOSER 0x01
#define FLG_CLOSEST_PROVABLE_ENCLOSER 0x02
#define FLG_NAME_COVERED 0x04
#define FLG_NAME_MATCHED 0x08
#define FLG_TYPE_BIT_MISSING 0x10
#define FLG_CNAME_BIT_MISSING 0x20
#define FLG_OPT_OUT_SET 0x40
//#define FLG_CLOSEST_ENCLOSER (1 << 0)
#define FLG_CLOSEST_PROVABLE_ENCLOSER (1 << 1)
#define FLG_NAME_COVERED (1 << 2)
#define FLG_NAME_MATCHED (1 << 3)
#define FLG_TYPE_BIT_MISSING (1 << 4)
#define FLG_CNAME_BIT_MISSING (1 << 5)
#define FLG_OPT_OUT_SET (1 << 6)
/**
* Obtains NSEC3 parameters from RR.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment