Parcourir la source

[trac1113] commit minfo wire format testdata

chenzhengzhang il y a 14 ans
Parent
commit
c293f63968

+ 15 - 0
src/lib/dns/tests/testdata/rdata_minfo_toWire

@@ -0,0 +1,15 @@
+#
+# various kinds of MINFO RDATA stored in an input buffer
+# 
+# Valid compressed RDATA for "(rmailbox.example.com. emailbox.example.com.)"
+# RDLENGHT=32 bytes
+# 0  1
+ 00 21
+# RMAILBOX: non compressed
+# 2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7  8  9 20  1  2  3(bytes)
+#(8) r  m  a  i  l  b  o  x (7) e  x  a  m  p  l  e (3) c  o  m  .
+ 08 72 6d 61 69 6c 62 6f 78 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00
+# EMAILBOX: compressed
+# 4  5  6  7  8  9 30  1  2  3  4
+#(8) e  m  a  i  l  b  o  x ptr=11
+ 08 65 6d 61 69 6c 62 6f 78 c0 0b

+ 6 - 0
src/lib/dns/tests/testdata/rdata_minfo_toWireUncompressed.spec

@@ -0,0 +1,6 @@
+#
+# A simplest form of MINFO: all default parameters
+#
+[custom]
+sections: minfo
+[minfo]

+ 8 - 0
src/lib/dns/tests/testdata/rdata_minfo_toWireUncompressed.wire

@@ -0,0 +1,8 @@
+###
+### This data file was auto-generated from rdata_minfo_toWireUncompressed.spec
+###
+
+# MINFO RDATA, RDLEN=44
+002c
+# RMAILBOX=rmailbox.example.com EMAILBOX=emailbox.example.com
+08726d61696c626f78076578616d706c6503636f6d00 08656d61696c626f78076578616d706c6503636f6d00