Home | History | Annotate | Line # | Download | only in generic
      1  1.1  christos /*	$NetBSD: resinfo_261.h,v 1.3 2025/01/26 16:25:33 christos Exp $	*/
      2  1.1  christos 
      3  1.1  christos /*
      4  1.1  christos  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      5  1.1  christos  *
      6  1.1  christos  * SPDX-License-Identifier: MPL-2.0
      7  1.1  christos  *
      8  1.1  christos  * This Source Code Form is subject to the terms of the Mozilla Public
      9  1.1  christos  * License, v. 2.0. If a copy of the MPL was not distributed with this
     10  1.1  christos  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
     11  1.1  christos  *
     12  1.1  christos  * See the COPYRIGHT file distributed with this work for additional
     13  1.1  christos  * information regarding copyright ownership.
     14  1.1  christos  */
     15  1.1  christos 
     16  1.1  christos #pragma once
     17  1.1  christos 
     18  1.1  christos typedef struct dns_rdata_resinfo_string {
     19  1.1  christos 	uint8_t length;
     20  1.1  christos 	unsigned char *data;
     21  1.1  christos } dns_rdata_resinfo_string_t;
     22  1.1  christos 
     23  1.1  christos typedef struct dns_rdata_resinfo {
     24  1.1  christos 	dns_rdatacommon_t common;
     25  1.1  christos 	isc_mem_t *mctx;
     26  1.1  christos 	unsigned char *txt;
     27  1.1  christos 	uint16_t txt_len;
     28  1.1  christos 	/* private */
     29  1.1  christos 	uint16_t offset;
     30  1.1  christos } dns_rdata_resinfo_t;
     31  1.1  christos 
     32  1.1  christos /*
     33  1.1  christos  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
     34  1.1  christos  * via rdatastructpre.h and rdatastructsuf.h.
     35  1.1  christos  */
     36