From: W.C.A. Wijngaards Date: Thu, 27 Feb 2020 15:28:36 +0000 (+0100) Subject: Document log check functions. X-Git-Tag: release-1.11.0~120^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f03245c362ffc78d522f4d8143448575a3e80bca;p=thirdparty%2Funbound.git Document log check functions. --- diff --git a/util/netevent.h b/util/netevent.h index 60824fc42..bb2cd1e53 100644 --- a/util/netevent.h +++ b/util/netevent.h @@ -783,11 +783,22 @@ void comm_base_handle_slow_accept(int fd, short event, void* arg); void comm_point_tcp_win_bio_cb(struct comm_point* c, void* ssl); #endif -/** see if errno for tcp connect has to be logged or not. This uses errno */ +/** + * See if errno for tcp connect has to be logged or not. This uses errno + * @param addr: apart from checking errno, the addr is checked for ip4mapped + * and broadcast type, hence passed. + * @param addrlen: length of the addr parameter. + * @return true if it needs to be logged. + */ int tcp_connect_errno_needs_log(struct sockaddr* addr, socklen_t addrlen); #ifdef HAVE_SSL -/** true if the ssl handshake error has to be squelched from the logs */ +/** + * True if the ssl handshake error has to be squelched from the logs + * @param err: the error returned by the openssl routine, ERR_get_error. + * This is a packed structure with elements that are examined. + * @return true if the error is squelched (not logged). + */ int squelch_err_ssl_handshake(unsigned long err); #endif