summaryrefslogtreecommitdiff
path: root/nameser.h
diff options
context:
space:
mode:
authorCasey Deccio <casey@deccio.net>2019-05-03 08:16:20 -0600
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-04-10 13:17:35 +0200
commit27bf32ee31ea4ad2575756ce6f8e04b118604f83 (patch)
treed2a6e06815636808a76acda7d0b89ee5cd74a199 /nameser.h
parent85b39920a628a21b8c2c2e51be1560f377d6666d (diff)
downloadtcpdump-27bf32ee31ea4ad2575756ce6f8e04b118604f83.tar.gz
DNS: Add printing the EDNS options
(pull request #762)
Diffstat (limited to 'nameser.h')
-rw-r--r--nameser.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/nameser.h b/nameser.h
index 820458c2..1e8692e7 100644
--- a/nameser.h
+++ b/nameser.h
@@ -199,6 +199,22 @@
#define C_CACHE_FLUSH 0x8000 /* mDNS cache flush flag in replies */
/*
+ * Values for EDNS option types
+ */
+
+#define E_NSID 3 /* name server identifier */
+#define E_DAU 5 /* signal DNSSEC algorithm understood */
+#define E_DHU 6 /* signal DS hash understood */
+#define E_N3U 7 /* signal NSEC3 hash understood */
+#define E_ECS 8 /* EDNS client subnet */
+#define E_EXPIRE 9 /* zone expiration */
+#define E_COOKIE 10 /* DNS cookies */
+#define E_KEEPALIVE 11 /* TCP keepalive */
+#define E_PADDING 12 /* pad DNS messages */
+#define E_CHAIN 13 /* chain DNS queries */
+#define E_KEYTAG 14 /* EDNS key tag */
+
+/*
* Status return codes for T_UNSPEC conversion routines
*/
#define CONV_SUCCESS 0