refuse.c
来自「基于TCP-WRAP原理的系统监控的c语言实现代码」· C语言 代码 · 共 33 行
C
33 行
/* * refuse() reports a refused connection, and takes the consequences: in * case of a datagram-oriented service, the unread datagram is taken from * the input queue (or inetd would see the same datagram again and again); * the program is terminated. * * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. */#ifndef lintstatic char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39";#endif/* System libraries. */#include <stdio.h>#include <syslog.h>/* Local stuff. */#include "tcpd.h"/* refuse - refuse request */void refuse(request)struct request_info *request;{ syslog(deny_severity, "refused connect from %s", eval_client(request)); clean_exit(request); /* NOTREACHED */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?