* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
+
/*
* Portions of this code were adapted from dnstap-ldns:
*
do { result = (op); \
if (result != ISC_R_SUCCESS) { \
fprintf(stderr, \
- "%s: %s: %s\n", program, msg, \
+ "%s: %s: %s\n", program, msg, \
isc_result_totext(result)); \
goto cleanup; \
} \
}
/* Query? */
- if ((d->type & DNS_DTTYPE_QUERY) != 0)
+ if ((d->type & DNS_DTTYPE_QUERY) != 0)
d->query = ISC_TRUE;
else
d->query = ISC_FALSE;
protobuf_c_enum_descriptor_get_value(
&dnstap__socket_protocol__descriptor,
m->socket_protocol);
- if (type != NULL &&
+ if (type != NULL &&
type->value == DNSTAP__SOCKET_PROTOCOL__TCP)
d->tcp = ISC_TRUE;
- else
+ else
d->tcp = ISC_FALSE;
}
if (d->typebuf[0] == '\0')
CHECK(putstr(dest, "?"));
- else
+ else
CHECK(putstr(dest, d->typebuf));
CHECK(isc_buffer_reserve(dest, 1));
*
* Notes:
*
- *\li 'path' refers to a UNIX domain socket by default. It may
+ *\li 'path' refers to a UNIX domain socket by default. It may
* optionally be prepended with "socket:" or "file:". If prepended
* with "file:", then dnstap logs are sent to a file instead of a
* socket.
*
* Requires:
*
- *\li 'view' is a valid view, and 'view->dtenv' is NULL or is a
+ *\li 'view' is a valid view, and 'view->dtenv' is NULL or is a
* valid dnstap environment.
*/
/*%<
* Converts a parsed dnstap data structure 'd' to text, storing
* the result in the buffer 'dest'. If 'dest' points to a dynamically
- * allocated buffer, then it may be reallocated as needed.
+ * allocated buffer, then it may be reallocated as needed.
*
* (XXX: add a 'long_form' option to generate a detailed listing of
* dnstap data instead * of a one-line summary.)
*\li 'bufp' is not NULL
*\li 'sizep' is not NULL
*
- * Ensures:
+ * Ensures:
* \li if returning ISC_R_SUCCESS then '*bufp' is not NULL
*
* Returns:
/*
- * Copyright (C) 2004-2008, 2011, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2008, 2011, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
/*
- * Copyright (C) 2011, 2012, 2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2011, 2012, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
/*
- * Copyright (C) 2004-2007, 2009-2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2007, 2009-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001, 2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any