summaryrefslogtreecommitdiff
path: root/nameser.h
diff options
context:
space:
mode:
authorguy <guy>2006-11-10 03:18:21 +0000
committerguy <guy>2006-11-10 03:18:21 +0000
commitf0ededcff9543194d2f075f57c89f5f2c64ce1b6 (patch)
treee075777b28c0905212c045cbc9dff71634c87cb4 /nameser.h
parent8e396b573159a3c2abe21a423fb0f4237e296bce (diff)
downloadtcpdump-f0ededcff9543194d2f075f57c89f5f2c64ce1b6.tar.gz
The topmost bit in the class field isn't a "cache flush" flag in mDNS
queries. Display that bit correctly (as per Marc Krochmal's request). In mDNS, the topmost bit of the class field should be handled the same way regardless of the value of the lower 15 bits, and *vice versa* - they're independent fields.
Diffstat (limited to 'nameser.h')
-rw-r--r--nameser.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/nameser.h b/nameser.h
index 3aeedb45..f441f3ea 100644
--- a/nameser.h
+++ b/nameser.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.15 2006-04-07 08:47:34 guy Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/nameser.h,v 1.16 2006-11-10 03:18:21 guy Exp $ (LBL) */
/*
* Copyright (c) 1983, 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -75,6 +75,14 @@
* Internet nameserver port number
*/
#define NAMESERVER_PORT 53
+
+/*
+ * Port for multicast DNS; see
+ *
+ * http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt
+ *
+ * for the current mDNS spec.
+ */
#define MULTICASTDNS_PORT 5353
/*
@@ -201,7 +209,8 @@
#define C_HS 4 /* for Hesiod name server (MIT) (XXX) */
/* Query class values which do not appear in resource records */
#define C_ANY 255 /* wildcard match */
-#define C_CACHE_FLUSH 0x8000 /* mDNS cache flush flag */
+#define C_QU 0x8000 /* mDNS QU flag in queries */
+#define C_CACHE_FLUSH 0x8000 /* mDNS cache flush flag in replies */
/*
* Status return codes for T_UNSPEC conversion routines