diff options
author | Jeremy C. Reed <jreed@isc.org> | 2010-03-05 05:31:28 +0100 |
---|---|---|
committer | Jeremy C. Reed <jreed@isc.org> | 2010-03-05 05:31:28 +0100 |
commit | 2e119c7e2290889e6d4fc0ee48ece416d8e2ad8a (patch) | |
tree | c0f79971ea76ee3615cfc52144ce1f3832b987c5 /src/lib/dns/rdata/generic/soa_6.h | |
parent | - made AuthSrv construction exception-safe (diff) | |
download | kea-2e119c7e2290889e6d4fc0ee48ece416d8e2ad8a.tar.xz kea-2e119c7e2290889e6d4fc0ee48ece416d8e2ad8a.zip |
Restructure trunk again.
This is based on ideas done in experiments/jreed-layout, but
I manually did this again.
Moved around directory structures.
A single python subdirectory under src/lib for single "isc" module.
No "cpp" directories.
No pyshared or includes symlink trees.
I tested running the c++ tests and python tests.
I tested running run_bind10.sh from source tree (with nothing installed).
I tested running bind10 from installed (after moving source).
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1120 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'src/lib/dns/rdata/generic/soa_6.h')
-rw-r--r-- | src/lib/dns/rdata/generic/soa_6.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/lib/dns/rdata/generic/soa_6.h b/src/lib/dns/rdata/generic/soa_6.h new file mode 100644 index 0000000000..1b278a5702 --- /dev/null +++ b/src/lib/dns/rdata/generic/soa_6.h @@ -0,0 +1,54 @@ +// Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC") +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +// $Id$ + +// BEGIN_HEADER_GUARD + +#include <string> + +#include "name.h" +#include "rdata.h" + +// BEGIN_ISC_NAMESPACE + +// BEGIN_COMMON_DECLARATIONS +// END_COMMON_DECLARATIONS + +// BEGIN_RDATA_NAMESPACE + +class SOA : public Rdata { +public: + // BEGIN_COMMON_MEMBERS + // END_COMMON_MEMBERS + + explicit SOA(const Name& mname, const Name& rname, uint32_t serial, + uint32_t refresh, uint32_t retry, uint32_t expire, + uint32_t minimum); +private: + /// Note: this is a prototype version; we may reconsider + /// this representation later. + Name mname_; + Name rname_; + /// serial, refresh, retry, expire, minimum, stored in network byte order + uint8_t numdata_[20]; +}; + +// END_RDATA_NAMESPACE +// END_ISC_NAMESPACE +// END_HEADER_GUARD + +// Local Variables: +// mode: c++ +// End: |