1999-09-16 00:02:20 +00:00
|
|
|
/*
|
2018-02-23 09:53:12 +01:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2000-08-01 01:33:37 +00:00
|
|
|
*
|
2021-06-03 08:37:05 +02:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*
|
2016-06-27 14:56:38 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 16:20:40 -07:00
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
1999-09-16 00:02:20 +00:00
|
|
|
*/
|
1999-05-07 03:19:11 +00:00
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
1999-05-07 03:19:11 +00:00
|
|
|
|
|
|
|
#include <isc/lang.h>
|
1999-09-02 06:40:15 +00:00
|
|
|
#include <isc/sockaddr.h>
|
1999-05-07 03:19:11 +00:00
|
|
|
|
2000-07-31 20:57:06 +00:00
|
|
|
#include <dns/name.h>
|
2000-04-04 23:10:53 +00:00
|
|
|
#include <dns/types.h>
|
|
|
|
|
1999-05-07 03:19:11 +00:00
|
|
|
ISC_LANG_BEGINDECLS
|
|
|
|
|
|
|
|
typedef struct dns_rdatacommon {
|
2020-02-12 13:59:18 +01:00
|
|
|
dns_rdataclass_t rdclass;
|
2020-02-14 08:14:03 +01:00
|
|
|
dns_rdatatype_t rdtype;
|
2020-02-12 13:59:18 +01:00
|
|
|
ISC_LINK(struct dns_rdatacommon) link;
|
1999-05-07 03:19:11 +00:00
|
|
|
} dns_rdatacommon_t;
|
|
|
|
|
2000-06-07 00:11:51 +00:00
|
|
|
#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \
|
2020-02-12 13:59:18 +01:00
|
|
|
do { \
|
|
|
|
(_data)->common.rdtype = (_rdtype); \
|
|
|
|
(_data)->common.rdclass = (_rdclass); \
|
2000-06-07 00:11:51 +00:00
|
|
|
ISC_LINK_INIT(&(_data)->common, link); \
|
2000-06-06 02:03:23 +00:00
|
|
|
} while (0)
|