1:  /*
   2:   * refuse() reports a refused connection, and takes the consequences: in
   3:   * case of a datagram-oriented service, the unread datagram is taken from
   4:   * the input queue (or inetd would see the same datagram again and again);
   5:   * the program is terminated.
   6:   *
   7:   * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
   8:   */
   9: 
  10: #ifndef lint
  11: static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";
  12: #endif
  13: 
  14: /* System libraries. */
  15: 
  16: #include <stdio.h>
  17: #include <syslog.h>
  18: 
  19: /* Local stuff. */
  20: 
  21: #include "tcpd.h"
  22: 
  23: /* refuse - refuse request */
  24: 
  25: void    refuse(request)
  26: struct request_info *request;
  27: {
  28:     syslog(deny_severity, "refused connect from %s", eval_client(request));
  29:     clean_exit(request);
  30:     /* NOTREACHED */
  31: }

Defined functions

Defined variables

sccsid defined in line 11; never used
Last modified: 1994-12-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2371
Valid CSS Valid XHTML 1.0 Strict