mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
Made compress_add and compress_find static to lib/dns/compress.c
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
|||||||
|
104. [bug] Made compress_add and compress_find static to
|
||||||
|
lib/dns/compress.c.
|
||||||
|
|
||||||
103. [func] libisc buffer API changes for <isc/buffer.h>:
|
103. [func] libisc buffer API changes for <isc/buffer.h>:
|
||||||
Added:
|
Added:
|
||||||
isc_buffer_base(b) (pointer)
|
isc_buffer_base(b) (pointer)
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: compress.c,v 1.26 2000/04/27 00:01:21 tale Exp $ */
|
/* $Id: compress.c,v 1.27 2000/04/27 00:08:44 tale Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -34,22 +34,24 @@
|
|||||||
#define DCTX_MAGIC 0x44435458U /* DCTX */
|
#define DCTX_MAGIC 0x44435458U /* DCTX */
|
||||||
#define VALID_DCTX(x) ((x) != NULL && (x)->magic == DCTX_MAGIC)
|
#define VALID_DCTX(x) ((x) != NULL && (x)->magic == DCTX_MAGIC)
|
||||||
|
|
||||||
static void free_offset(void *offset, void *mctx);
|
static void
|
||||||
isc_boolean_t compress_find(dns_rbt_t *root, dns_name_t *name,
|
free_offset(void *offset, void *mctx);
|
||||||
dns_name_t *prefix, dns_name_t *suffix,
|
|
||||||
isc_uint16_t *offset,
|
static isc_boolean_t
|
||||||
isc_buffer_t *workspace);
|
compress_find(dns_rbt_t *root, dns_name_t *name, dns_name_t *prefix,
|
||||||
void compress_add(dns_rbt_t *root, dns_name_t *prefix,
|
dns_name_t *suffix, isc_uint16_t *offset,
|
||||||
dns_name_t *suffix, isc_uint16_t offset,
|
isc_buffer_t *workspace);
|
||||||
isc_boolean_t global16, isc_mem_t *mctx);
|
|
||||||
|
static void
|
||||||
|
compress_add(dns_rbt_t *root, dns_name_t *prefix, dns_name_t *suffix,
|
||||||
|
isc_uint16_t offset, isc_boolean_t global16, isc_mem_t *mctx);
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** Compression
|
*** Compression
|
||||||
***/
|
***/
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx)
|
dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx) {
|
||||||
{
|
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
REQUIRE(cctx != NULL);
|
REQUIRE(cctx != NULL);
|
||||||
@@ -259,7 +261,7 @@ free_offset(void *offset, void *mctx) {
|
|||||||
/*
|
/*
|
||||||
* Add the labels in prefix to RBT.
|
* Add the labels in prefix to RBT.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
compress_add(dns_rbt_t *root, dns_name_t *prefix, dns_name_t *suffix,
|
compress_add(dns_rbt_t *root, dns_name_t *prefix, dns_name_t *suffix,
|
||||||
isc_uint16_t offset, isc_boolean_t global16, isc_mem_t *mctx)
|
isc_uint16_t offset, isc_boolean_t global16, isc_mem_t *mctx)
|
||||||
{
|
{
|
||||||
@@ -312,7 +314,7 @@ compress_add(dns_rbt_t *root, dns_name_t *prefix, dns_name_t *suffix,
|
|||||||
* If no match is found return ISC_FALSE.
|
* If no match is found return ISC_FALSE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
isc_boolean_t
|
static isc_boolean_t
|
||||||
compress_find(dns_rbt_t *root, dns_name_t *name, dns_name_t *prefix,
|
compress_find(dns_rbt_t *root, dns_name_t *name, dns_name_t *prefix,
|
||||||
dns_name_t *suffix, isc_uint16_t *offset,
|
dns_name_t *suffix, isc_uint16_t *offset,
|
||||||
isc_buffer_t *workspace)
|
isc_buffer_t *workspace)
|
||||||
|
Reference in New Issue
Block a user