listen_dnsport.h (266114) | listen_dnsport.h (276605) |
---|---|
1/* 2 * services/listen_dnsport.h - listen on port 53 for incoming DNS queries. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 115 unchanged lines hidden (view full) --- 124 * Create commpoints with for this thread for the shared ports. 125 * @param base: the comm_base that provides event functionality. 126 * for default all ifs. 127 * @param ports: the list of shared ports. 128 * @param bufsize: size of datagram buffer. 129 * @param tcp_accept_count: max number of simultaneous TCP connections 130 * from clients. 131 * @param sslctx: nonNULL if ssl context. | 1/* 2 * services/listen_dnsport.h - listen on port 53 for incoming DNS queries. 3 * 4 * Copyright (c) 2007, NLnet Labs. All rights reserved. 5 * 6 * This software is open source. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 115 unchanged lines hidden (view full) --- 124 * Create commpoints with for this thread for the shared ports. 125 * @param base: the comm_base that provides event functionality. 126 * for default all ifs. 127 * @param ports: the list of shared ports. 128 * @param bufsize: size of datagram buffer. 129 * @param tcp_accept_count: max number of simultaneous TCP connections 130 * from clients. 131 * @param sslctx: nonNULL if ssl context. |
132 * @param dtenv: nonNULL if dnstap enabled. |
|
132 * @param cb: callback function when a request arrives. It is passed 133 * the packet and user argument. Return true to send a reply. 134 * @param cb_arg: user data argument for callback function. 135 * @return: the malloced listening structure, ready for use. NULL on error. 136 */ 137struct listen_dnsport* listen_create(struct comm_base* base, 138 struct listen_port* ports, size_t bufsize, int tcp_accept_count, | 133 * @param cb: callback function when a request arrives. It is passed 134 * the packet and user argument. Return true to send a reply. 135 * @param cb_arg: user data argument for callback function. 136 * @return: the malloced listening structure, ready for use. NULL on error. 137 */ 138struct listen_dnsport* listen_create(struct comm_base* base, 139 struct listen_port* ports, size_t bufsize, int tcp_accept_count, |
139 void* sslctx, comm_point_callback_t* cb, void* cb_arg); | 140 void* sslctx, struct dt_env *dtenv, comm_point_callback_t* cb, 141 void* cb_arg); |
140 141/** 142 * delete the listening structure 143 * @param listen: listening structure. 144 */ 145void listen_delete(struct listen_dnsport* listen); 146 147/** --- 61 unchanged lines hidden --- | 142 143/** 144 * delete the listening structure 145 * @param listen: listening structure. 146 */ 147void listen_delete(struct listen_dnsport* listen); 148 149/** --- 61 unchanged lines hidden --- |