BIND 10 trac2000, updated. 6e87315672b64f37f850add634946899e452af99 [2000] Update option code to be different from option length

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Feb 19 09:09:11 UTC 2014


The branch, trac2000 has been updated
       via  6e87315672b64f37f850add634946899e452af99 (commit)
      from  bb87247db5283a9c406255feb8449ccfefb74c49 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6e87315672b64f37f850add634946899e452af99
Author: Mukund Sivaraman <muks at isc.org>
Date:   Wed Feb 19 14:38:59 2014 +0530

    [2000] Update option code to be different from option length

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/tests/rdata_opt_unittest.cc        |    4 ++--
 src/lib/dns/tests/testdata/rdata_opt_fromWire1 |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/tests/rdata_opt_unittest.cc b/src/lib/dns/tests/rdata_opt_unittest.cc
index 49d3068..c5a10b9 100644
--- a/src/lib/dns/tests/rdata_opt_unittest.cc
+++ b/src/lib/dns/tests/rdata_opt_unittest.cc
@@ -37,7 +37,7 @@ class Rdata_OPT_Test : public RdataTest {
 
 const uint8_t rdata_opt_wiredata[] = {
     // Option code
-    0x00, 0x03,
+    0x00, 0x2a,
     // Option length
     0x00, 0x03,
     // Option data
@@ -197,7 +197,7 @@ TEST_F(Rdata_OPT_Test, getPseudoRRs) {
     const std::vector<generic::OPT::PseudoRR>& rrs = rdf.getPseudoRRs();
     ASSERT_FALSE(rrs.empty());
     EXPECT_EQ(1, rrs.size());
-    EXPECT_EQ(3, rrs.at(0).getCode());
+    EXPECT_EQ(0x2a, rrs.at(0).getCode());
     EXPECT_EQ(3, rrs.at(0).getLength());
 
     const uint8_t expected_data[] = {0x00, 0x01, 0x02};
diff --git a/src/lib/dns/tests/testdata/rdata_opt_fromWire1 b/src/lib/dns/tests/testdata/rdata_opt_fromWire1
index f1005ef..f2eb680 100644
--- a/src/lib/dns/tests/testdata/rdata_opt_fromWire1
+++ b/src/lib/dns/tests/testdata/rdata_opt_fromWire1
@@ -8,7 +8,7 @@
 # An OPT RR containing an NSID Option
 #      code=3 len=3 ID value (opaque)
 # 2  3  4  5  6  7  8  9 10
- 00 07 00 03 00 03 00 01 02
+ 00 07 00 2a 00 03 00 01 02
 #
 # Short buffer (this can be tested only at the end of the buffer)
 # 1  2  3  4  5



More information about the bind10-changes mailing list