a_1.h revision 70e5a7403f0e0a3bd292b8287c5fed5772c15270
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews/*
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews *
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * copyright notice and this permission notice appear in all copies.
3398334b3acda24b086957286288ca9852662b12Automatic Updater *
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews * PERFORMANCE OF THIS SOFTWARE.
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews/* $Id: a_1.h,v 1.5 2007/06/19 23:47:17 tbox Exp $ */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews/* by Bjorn.Victor@it.uu.se, 2005-05-07 */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews/* Based on generic/mx_15.h */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#ifndef CH_3_A_1_H
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#define CH_3_A_1_H 1
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewstypedef isc_uint16_t ch_addr_t;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewstypedef struct dns_rdata_ch_a {
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews dns_rdatacommon_t common;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews isc_mem_t *mctx;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews dns_name_t ch_addr_dom; /* ch-addr domain for back mapping */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews ch_addr_t ch_addr; /* chaos address (16 bit) network order */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews} dns_rdata_ch_a_t;
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews#endif /* CH_3_A_1_H */
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews