dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / lib / libwrap / refuse.c
blob1cbbeb223202fba87747ac9a5d8e68193c283a38
1 /*
2 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5 #pragma ident "%Z%%M% %I% %E% SMI"
7 /*
8 * refuse() reports a refused connection, and takes the consequences: in
9 * case of a datagram-oriented service, the unread datagram is taken from
10 * the input queue (or inetd would see the same datagram again and again);
11 * the program is terminated.
13 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
16 static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
18 /* System libraries. */
20 #include <stdio.h>
21 #include <syslog.h>
23 /* Local stuff. */
25 #include "tcpd.h"
27 /* refuse - refuse request */
29 void refuse(request)
30 struct request_info *request;
32 syslog(deny_severity, "refused connect from %s", eval_client(request));
33 clean_exit(request);
34 /* NOTREACHED */