mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-06 18:07:41 +02:00
start of EDNS work; TC truncation of message encoding.
git-svn-id: file:///svn/unbound/trunk@276 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -180,6 +180,8 @@ struct rr_parse {
|
||||
/** Calculate destination offset of a compression pointer. pass first and
|
||||
* second octets of the compression pointer. */
|
||||
#define PTR_OFFSET(x, y) ( ((x)&0x3f)<<8 | (y) )
|
||||
/** create a compression pointer to the given offset. */
|
||||
#define PTR_CREATE(offset) ((uint16_t)(0xc000 | (offset)))
|
||||
|
||||
/** error codes, extended with EDNS, so > 15. */
|
||||
#define EDNS_RCODE_BADVERS 16 /** bad EDNS version */
|
||||
|
||||
Reference in New Issue
Block a user