xref: /netbsd-src/external/mpl/bind/dist/lib/dns/rdata/generic/ipseckey_45.h (revision fb5eed702691094bd687fbf1ded189c87457cd35)
1 /*	$NetBSD: ipseckey_45.h,v 1.5 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_IPSECKEY_45_H
15 #define GENERIC_IPSECKEY_45_H 1
16 
17 typedef struct dns_rdata_ipseckey {
18 	dns_rdatacommon_t common;
19 	isc_mem_t *mctx;
20 	uint8_t precedence;
21 	uint8_t gateway_type;
22 	uint8_t algorithm;
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 *key;
27 	uint16_t keylength;
28 } dns_rdata_ipseckey_t;
29 
30 #endif /* GENERIC_IPSECKEY_45_H */
31