Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: soa.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_SOA_H
[12] Fix | Delete
#define DNS_SOA_H 1
[13] Fix | Delete
[14] Fix | Delete
/*****
[15] Fix | Delete
***** Module Info
[16] Fix | Delete
*****/
[17] Fix | Delete
[18] Fix | Delete
/*! \file dns/soa.h
[19] Fix | Delete
* \brief
[20] Fix | Delete
* SOA utilities.
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
/***
[24] Fix | Delete
*** Imports
[25] Fix | Delete
***/
[26] Fix | Delete
[27] Fix | Delete
#include <inttypes.h>
[28] Fix | Delete
[29] Fix | Delete
#include <isc/lang.h>
[30] Fix | Delete
#include <isc/types.h>
[31] Fix | Delete
[32] Fix | Delete
#include <dns/types.h>
[33] Fix | Delete
[34] Fix | Delete
ISC_LANG_BEGINDECLS
[35] Fix | Delete
[36] Fix | Delete
#define DNS_SOA_BUFFERSIZE ((2 * DNS_NAME_MAXWIRE) + (4 * 5))
[37] Fix | Delete
[38] Fix | Delete
isc_result_t
[39] Fix | Delete
dns_soa_buildrdata(dns_name_t *origin, dns_name_t *contact,
[40] Fix | Delete
dns_rdataclass_t rdclass,
[41] Fix | Delete
uint32_t serial, uint32_t refresh,
[42] Fix | Delete
uint32_t retry, uint32_t expire,
[43] Fix | Delete
uint32_t minimum, unsigned char *buffer,
[44] Fix | Delete
dns_rdata_t *rdata);
[45] Fix | Delete
/*%<
[46] Fix | Delete
* Build the rdata of an SOA record.
[47] Fix | Delete
*
[48] Fix | Delete
* Requires:
[49] Fix | Delete
*\li buffer Points to a temporary buffer of at least
[50] Fix | Delete
* DNS_SOA_BUFFERSIZE bytes.
[51] Fix | Delete
*\li rdata Points to an initialized dns_rdata_t.
[52] Fix | Delete
*
[53] Fix | Delete
* Ensures:
[54] Fix | Delete
* \li *rdata Contains a valid SOA rdata. The 'data' member
[55] Fix | Delete
* refers to 'buffer'.
[56] Fix | Delete
*/
[57] Fix | Delete
[58] Fix | Delete
uint32_t
[59] Fix | Delete
dns_soa_getserial(dns_rdata_t *rdata);
[60] Fix | Delete
uint32_t
[61] Fix | Delete
dns_soa_getrefresh(dns_rdata_t *rdata);
[62] Fix | Delete
uint32_t
[63] Fix | Delete
dns_soa_getretry(dns_rdata_t *rdata);
[64] Fix | Delete
uint32_t
[65] Fix | Delete
dns_soa_getexpire(dns_rdata_t *rdata);
[66] Fix | Delete
uint32_t
[67] Fix | Delete
dns_soa_getminimum(dns_rdata_t *rdata);
[68] Fix | Delete
/*
[69] Fix | Delete
* Extract an integer field from the rdata of a SOA record.
[70] Fix | Delete
*
[71] Fix | Delete
* Requires:
[72] Fix | Delete
* rdata refers to the rdata of a well-formed SOA record.
[73] Fix | Delete
*/
[74] Fix | Delete
[75] Fix | Delete
void
[76] Fix | Delete
dns_soa_setserial(uint32_t val, dns_rdata_t *rdata);
[77] Fix | Delete
void
[78] Fix | Delete
dns_soa_setrefresh(uint32_t val, dns_rdata_t *rdata);
[79] Fix | Delete
void
[80] Fix | Delete
dns_soa_setretry(uint32_t val, dns_rdata_t *rdata);
[81] Fix | Delete
void
[82] Fix | Delete
dns_soa_setexpire(uint32_t val, dns_rdata_t *rdata);
[83] Fix | Delete
void
[84] Fix | Delete
dns_soa_setminimum(uint32_t val, dns_rdata_t *rdata);
[85] Fix | Delete
/*
[86] Fix | Delete
* Change an integer field of a SOA record by modifying the
[87] Fix | Delete
* rdata in-place.
[88] Fix | Delete
*
[89] Fix | Delete
* Requires:
[90] Fix | Delete
* rdata refers to the rdata of a well-formed SOA record.
[91] Fix | Delete
*/
[92] Fix | Delete
[93] Fix | Delete
[94] Fix | Delete
ISC_LANG_ENDDECLS
[95] Fix | Delete
[96] Fix | Delete
#endif /* DNS_SOA_H */
[97] Fix | Delete
[98] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function