1 /* $NetBSD: refuse.c,v 1.2 1997/10/09 21:20:44 christos 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.2 1997/10/09 21:20:44 christos Exp $");
21 /* System libraries. */
30 /* refuse - refuse request */
33 struct request_info
*request
;
35 syslog(deny_severity
, "refused connect from %s", eval_client(request
));