]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
packet2wire now uses read_uint16
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Thu, 16 Dec 2004 10:43:46 +0000 (10:43 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Thu, 16 Dec 2004 10:43:46 +0000 (10:43 +0000)
doxygen: javadoc style briefs (first line until . is always read as brief)
doxygen: ldns/ is also read now (as well as all other subdirectories)

libdns.doxygen
packet.c
rdata.c

index 785f16a96932b313e4e6094f005f0c6b84839148..dfbaadda50727cd76809f48c945a1bdad74c64aa 100644 (file)
@@ -137,7 +137,7 @@ SHORT_NAMES            = NO
 # comments will behave just like the Qt-style comments (thus requiring an 
 # explicit @brief command for a brief description.
 
-JAVADOC_AUTOBRIEF      = NO
+JAVADOC_AUTOBRIEF      = YES
 
 # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 
 # treat a multi-line C++ special comment block (i.e. a block of //! or /// 
@@ -438,7 +438,7 @@ FILE_PATTERNS          = *.c *.h
 # should be searched for input files as well. Possible values are YES and NO. 
 # If left blank NO is used.
 
-RECURSIVE              = NO
+RECURSIVE              = YES
 
 # The EXCLUDE tag can be used to specify files and/or directories that should 
 # excluded from the INPUT source files. This way you can easily exclude a 
index 1c9bf1af4ca97cdb1599dd9d72f90cf87be50bd5..81f32ce1619f0bcfb97b20f842c2638b66ae4e6d 100644 (file)
--- a/packet.c
+++ b/packet.c
 
 /* Counter of the question section */
 #define QDCOUNT_OFF            4
+/*
 #define        QDCOUNT(wirebuf)                (ntohs(*(uint16_t *)(wirebuf+QDCOUNT_OFF)))
+*/
+#define        QDCOUNT(wirebuf)                (read_uint16(wirebuf+QDCOUNT_OFF))
 
 /* Counter of the answer section */
 #define ANCOUNT_OFF            6
-#define        ANCOUNT(wirebuf)                (ntohs(*(uint16_t *)(wirebuf+ANCOUNT_OFF)))
+#define        ANCOUNT(wirebuf)                (read_uint16(wirebuf+ANCOUNT_OFF))
 
 /* Counter of the authority section */
 #define NSCOUNT_OFF            8
-#define        NSCOUNT(wirebuf)                (ntohs(*(uint16_t *)(wirebuf+NSCOUNT_OFF)))
+#define        NSCOUNT(wirebuf)                (read_uint16(wirebuf+NSCOUNT_OFF))
 
 /* Counter of the additional section */
 #define ARCOUNT_OFF            10
-#define        ARCOUNT(wirebuf)                (ntohs(*(uint16_t *)(wirebuf+ARCOUNT_OFF)))
+#define        ARCOUNT(wirebuf)                (read_uint16(wirebuf+ARCOUNT_OFF))
 
 /* Access functions 
  * do this as functions to get type checking
diff --git a/rdata.c b/rdata.c
index 9d7ed25c2c9fd6bad089c8e79e35139b9f2868b9..979a15feddd2b7afe1f5221dce9a0953a2471370 100644 (file)
--- a/rdata.c
+++ b/rdata.c
@@ -99,7 +99,7 @@ _ldns_rd_field_destroy(t_rdata_field *rd)
 }
 
 /**
- * remove \DDD, \[space] and other escapes from the input
+ * remove \\DDD, \\[space] and other escapes from the input
  * See RFC 1035, section 5.1
  * Return the length of the string or a negative error
  * code