1 /* $NetBSD: amtrelay_260.h,v 1.3 2021/02/19 16:42:17 christos Exp $ */ 2 3 /* 4 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 5 * 6 * This Source Code Form is subject to the terms of the Mozilla Public 7 * License, v. 2.0. If a copy of the MPL was not distributed with this 8 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 9 * 10 * See the COPYRIGHT file distributed with this work for additional 11 * information regarding copyright ownership. 12 */ 13 14 #ifndef GENERIC_AMTRELAY_260_H 15 #define GENERIC_AMTRELAY_260_H 1 16 17 typedef struct dns_rdata_amtrelay { 18 dns_rdatacommon_t common; 19 isc_mem_t *mctx; 20 uint8_t precedence; 21 bool discovery; 22 uint8_t gateway_type; 23 struct in_addr in_addr; /* gateway type 1 */ 24 struct in6_addr in6_addr; /* gateway type 2 */ 25 dns_name_t gateway; /* gateway type 3 */ 26 unsigned char *data; /* gateway type > 3 */ 27 uint16_t length; 28 } dns_rdata_amtrelay_t; 29 30 #endif /* GENERIC_AMTRELAY_260_H */ 31