hosts_access.c (201782) | hosts_access.c (257398) |
---|---|
1 /* 2 * This module implements a simple access control language that is based on 3 * host (or domain) names, NIS (host) netgroup names, IP addresses (or 4 * network numbers) and daemon process names. When a match is found the 5 * search is terminated, and depending on whether PROCESS_OPTIONS is defined, 6 * a list of options is executed or an optional shell command is executed. 7 * 8 * Host and user names are looked up on demand, provided that suitable endpoint 9 * information is available as sockaddr_in structures or TLI netbufs. As a 10 * side effect, the pattern matching process may change the contents of 11 * request structure fields. 12 * 13 * Diagnostics are reported through syslog(3). 14 * 15 * Compile with -DNETGROUP if your library provides support for netgroups. 16 * 17 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. 18 * | 1 /* 2 * This module implements a simple access control language that is based on 3 * host (or domain) names, NIS (host) netgroup names, IP addresses (or 4 * network numbers) and daemon process names. When a match is found the 5 * search is terminated, and depending on whether PROCESS_OPTIONS is defined, 6 * a list of options is executed or an optional shell command is executed. 7 * 8 * Host and user names are looked up on demand, provided that suitable endpoint 9 * information is available as sockaddr_in structures or TLI netbufs. As a 10 * side effect, the pattern matching process may change the contents of 11 * request structure fields. 12 * 13 * Diagnostics are reported through syslog(3). 14 * 15 * Compile with -DNETGROUP if your library provides support for netgroups. 16 * 17 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. 18 * |
19 * $FreeBSD: head/contrib/tcp_wrappers/hosts_access.c 201782 2010-01-08 10:54:15Z sobomax $ | 19 * $FreeBSD: head/contrib/tcp_wrappers/hosts_access.c 257398 2013-10-30 21:18:14Z sbruno $ |
20 */ 21 22#ifndef lint 23static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22"; 24#endif 25 26/* System libraries. */ 27 --- 11 unchanged lines hidden (view full) --- 39#include <syslog.h> 40#include <ctype.h> 41#include <errno.h> 42#include <setjmp.h> 43#include <string.h> 44#ifdef INET6 45#include <netdb.h> 46#endif | 20 */ 21 22#ifndef lint 23static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22"; 24#endif 25 26/* System libraries. */ 27 --- 11 unchanged lines hidden (view full) --- 39#include <syslog.h> 40#include <ctype.h> 41#include <errno.h> 42#include <setjmp.h> 43#include <string.h> 44#ifdef INET6 45#include <netdb.h> 46#endif |
47#include <stdlib.h> |
|
47 48extern char *fgets(); 49extern int errno; 50 51#ifndef INADDR_NONE 52#define INADDR_NONE (-1) /* XXX should be 0xffffffff */ 53#endif 54 --- 445 unchanged lines hidden --- | 48 49extern char *fgets(); 50extern int errno; 51 52#ifndef INADDR_NONE 53#define INADDR_NONE (-1) /* XXX should be 0xffffffff */ 54#endif 55 --- 445 unchanged lines hidden --- |