2019-02-07 18:31:03 +11:00
|
|
|
/*
|
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
*
|
2021-06-03 08:37:05 +02:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*
|
2019-02-07 18:31:03 +11: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/.
|
2019-02-07 18:31:03 +11:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
2019-02-07 18:31:03 +11:00
|
|
|
|
2019-02-08 13:41:22 +11:00
|
|
|
typedef struct dns_rdata_amtrelay {
|
2020-02-12 13:59:18 +01:00
|
|
|
dns_rdatacommon_t common;
|
2020-02-14 08:14:03 +01:00
|
|
|
isc_mem_t *mctx;
|
|
|
|
uint8_t precedence;
|
|
|
|
bool discovery;
|
|
|
|
uint8_t gateway_type;
|
|
|
|
struct in_addr in_addr; /* gateway type 1 */
|
|
|
|
struct in6_addr in6_addr; /* gateway type 2 */
|
|
|
|
dns_name_t gateway; /* gateway type 3 */
|
|
|
|
unsigned char *data; /* gateway type > 3 */
|
|
|
|
uint16_t length;
|
2019-02-08 13:41:22 +11:00
|
|
|
} dns_rdata_amtrelay_t;
|