allow for up 100 records or 64K of data to be in a ncache entry

This commit is contained in:
Mark Andrews 2019-01-03 16:08:39 +11:00
parent 8e6af477dd
commit 604889e627

View file

@ -28,7 +28,7 @@
#include <dns/rdataset.h>
#include <dns/rdatastruct.h>
#define DNS_NCACHE_RDATA 20U
#define DNS_NCACHE_RDATA 100U
/*
* The format of an ncache rdata is a sequence of zero or more records of
@ -133,7 +133,7 @@ addoptout(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
dns_rdata_t rdata[DNS_NCACHE_RDATA];
dns_rdataset_t ncrdataset;
dns_rdatalist_t ncrdatalist;
unsigned char data[4096];
unsigned char data[65536];
unsigned int next = 0;
/*