1 /* $NetBSD: refuse.c,v 1.5 2012/03/21 10:10:37 matt Exp $ */
4 * refuse() reports a refused connection, and takes the consequences: in
5 * case of a datagram-oriented service, the unread datagram is taken from
6 * the input queue (or inetd would see the same datagram again and again);
7 * the program is terminated.
9 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
12 #include <sys/cdefs.h>
15 static char sccsid
[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
17 __RCSID("$NetBSD: refuse.c,v 1.5 2012/03/21 10:10:37 matt Exp $");
21 /* System libraries. */
30 /* refuse - refuse request */
33 refuse(struct request_info
*request
)
35 syslog(deny_severity
, "refused connect from %s", eval_client(request
));