mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
checkpoint
This commit is contained in:
@@ -1,15 +1,11 @@
|
|||||||
#ifndef DNS_TCPMSG_H
|
#ifndef DNS_TCPMSG_H
|
||||||
#define DNS_TCPMSG_H
|
#define DNS_TCPMSG_H
|
||||||
|
|
||||||
#define DNS_TCPMSG_MAGIC 0x5443506d /* TCPm */
|
#include <isc/buffer.h>
|
||||||
|
|
||||||
#define DNS_TCPMSG_VALID(foo) \
|
|
||||||
((foo) != NULL \
|
|
||||||
&& ((foo)->magic == DNS_TCPMSG_MAGIC))
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned int magic;
|
unsigned int magic;
|
||||||
unsigned int size;
|
u_int16_t size;
|
||||||
isc_buffer_t buffer;
|
isc_buffer_t buffer;
|
||||||
unsigned int maxsize;
|
unsigned int maxsize;
|
||||||
isc_mem_t *mctx;
|
isc_mem_t *mctx;
|
||||||
@@ -66,7 +62,7 @@ dns_tcpmsg_readmessage(dns_tcpmsg_t *tcpmsg,
|
|||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
*
|
*
|
||||||
* DNS_R_SUCCESS -- no error
|
* ISC_R_SUCCESS -- no error
|
||||||
* Anything that the isc_socket_recv() call can return. XXXMLG
|
* Anything that the isc_socket_recv() call can return. XXXMLG
|
||||||
*
|
*
|
||||||
* Notes:
|
* Notes:
|
||||||
|
Reference in New Issue
Block a user