BIND 10 trac2310, updated. 31707f9fd9a78add4895394d0168d5664184b18f [2310] added notes about htonl() portability considerations

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jan 29 21:43:14 UTC 2013


The branch, trac2310 has been updated
       via  31707f9fd9a78add4895394d0168d5664184b18f (commit)
      from  2ca96761f12b10e51faa6e394617baffbb68afdd (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 31707f9fd9a78add4895394d0168d5664184b18f
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Tue Jan 29 13:42:58 2013 -0800

    [2310] added notes about htonl() portability considerations

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

Summary of changes:
 src/lib/datasrc/memory/zone_data.cc |    3 +++
 1 file changed, 3 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/zone_data.cc b/src/lib/datasrc/memory/zone_data.cc
index f9c0e3a..d32fc87 100644
--- a/src/lib/datasrc/memory/zone_data.cc
+++ b/src/lib/datasrc/memory/zone_data.cc
@@ -138,6 +138,9 @@ namespace {
 // A helper to convert a TTL value in network byte order and set it in
 // ZoneData::min_ttl_.  We can use util::OutputBuffer, but copy the logic
 // here to guarantee it is exception free.
+// Note: essentially this function is a local (re)implementation of the
+// standard htonl() library function, but we avoid relying on it in case it's
+// not available (it's not in the C++ standard library).
 void
 setTTLInNetOrder(uint32_t val, uint32_t* result) {
     uint8_t buf[4];



More information about the bind10-changes mailing list