Annotation of src/lib/libwrap/refuse.c, Revision 1.4.66.2
1.4.66.2! riz 1: /* $NetBSD: refuse.c,v 1.4.66.1 2012/04/23 16:48:57 riz Exp $ */
1.2 christos 2:
1.1 mrg 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.
1.4 simonb 8: *
1.1 mrg 9: * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
10: */
11:
1.2 christos 12: #include <sys/cdefs.h>
1.1 mrg 13: #ifndef lint
1.2 christos 14: #if 0
1.1 mrg 15: static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
1.2 christos 16: #else
1.4.66.2! riz 17: __RCSID("$NetBSD: refuse.c,v 1.4.66.1 2012/04/23 16:48:57 riz Exp $");
1.2 christos 18: #endif
1.1 mrg 19: #endif
20:
21: /* System libraries. */
22:
23: #include <stdio.h>
24: #include <syslog.h>
25:
26: /* Local stuff. */
27:
28: #include "tcpd.h"
29:
30: /* refuse - refuse request */
31:
1.4.66.2! riz 32: void refuse(request)
! 33: struct request_info *request;
1.1 mrg 34: {
35: syslog(deny_severity, "refused connect from %s", eval_client(request));
36: clean_exit(request);
37: /* NOTREACHED */
38: }
39:
CVSweb <webmaster@jp.NetBSD.org>