mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-15 02:10:00 -04:00
4330. [protocol] Identify the PAD option as "PAD" when printing out
a message.
(cherry picked from commit 33a4294f44)
This commit is contained in:
parent
98e54554ed
commit
9f8d166497
3 changed files with 10 additions and 4 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4330. [protocol] Identify the PAD option as "PAD" when printing out
|
||||
a message.
|
||||
|
||||
--- 9.10.4b1 released ---
|
||||
|
||||
4329. [func] Warn about a common misconfiguration when forwarding
|
||||
|
|
|
|||
|
|
@ -102,10 +102,11 @@
|
|||
#define DNS_MESSAGEEXTFLAG_DO 0x8000U
|
||||
|
||||
/*%< EDNS0 extended OPT codes */
|
||||
#define DNS_OPT_NSID 0x0003 /*%< NSID opt code */
|
||||
#define DNS_OPT_CLIENT_SUBNET 0x0008 /*%< client subnet opt code */
|
||||
#define DNS_OPT_EXPIRE 0x0009 /*%< EXPIRE opt code */
|
||||
#define DNS_OPT_COOKIE 0x000a /*%< COOKIE opt code */
|
||||
#define DNS_OPT_NSID 3 /*%< NSID opt code */
|
||||
#define DNS_OPT_CLIENT_SUBNET 8 /*%< client subnet opt code */
|
||||
#define DNS_OPT_EXPIRE 9 /*%< EXPIRE opt code */
|
||||
#define DNS_OPT_COOKIE 10 /*%< COOKIE opt code */
|
||||
#define DNS_OPT_PAD 12 /*%< PAD opt code */
|
||||
|
||||
/*%< The number of EDNS options we know about. */
|
||||
#define DNS_EDNSOPTIONS 4
|
||||
|
|
|
|||
|
|
@ -3373,6 +3373,8 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
|||
continue;
|
||||
}
|
||||
ADD_STRING(target, "; EXPIRE");
|
||||
} else if (optcode == DNS_OPT_PAD) {
|
||||
ADD_STRING(target, "; PAD");
|
||||
} else {
|
||||
ADD_STRING(target, "; OPT=");
|
||||
snprintf(buf, sizeof(buf), "%u", optcode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue