Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libwrap / refuse.c
blob82a2fa4f5baab4ea9659d17999d6d5a69dc06ddc
1 /* $NetBSD: refuse.c,v 1.2 1997/10/09 21:20:44 christos Exp $ */
3 /*
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.
8 *
9 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
12 #include <sys/cdefs.h>
13 #ifndef lint
14 #if 0
15 static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
16 #else
17 __RCSID("$NetBSD: refuse.c,v 1.2 1997/10/09 21:20:44 christos Exp $");
18 #endif
19 #endif
21 /* System libraries. */
23 #include <stdio.h>
24 #include <syslog.h>
26 /* Local stuff. */
28 #include "tcpd.h"
30 /* refuse - refuse request */
32 void refuse(request)
33 struct request_info *request;
35 syslog(deny_severity, "refused connect from %s", eval_client(request));
36 clean_exit(request);
37 /* NOTREACHED */