Blame rpcapd/config_params.h

Packit 209cc3
/*
Packit 209cc3
 * Copyright (c) 2002 - 2003
Packit 209cc3
 * NetGroup, Politecnico di Torino (Italy)
Packit 209cc3
 * All rights reserved.
Packit 209cc3
 *
Packit 209cc3
 * Redistribution and use in source and binary forms, with or without
Packit 209cc3
 * modification, are permitted provided that the following conditions
Packit 209cc3
 * are met:
Packit 209cc3
 *
Packit 209cc3
 * 1. Redistributions of source code must retain the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer.
Packit 209cc3
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 209cc3
 * notice, this list of conditions and the following disclaimer in the
Packit 209cc3
 * documentation and/or other materials provided with the distribution.
Packit 209cc3
 * 3. Neither the name of the Politecnico di Torino nor the names of its
Packit 209cc3
 * contributors may be used to endorse or promote products derived from
Packit 209cc3
 * this software without specific prior written permission.
Packit 209cc3
 *
Packit 209cc3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit 209cc3
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit 209cc3
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Packit 209cc3
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Packit 209cc3
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Packit 209cc3
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit 209cc3
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit 209cc3
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit 209cc3
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit 209cc3
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 209cc3
 *
Packit 209cc3
 */
Packit 209cc3
Packit 209cc3
#ifndef __CONFIG_PARAMS_H__
Packit 209cc3
#define __CONFIG_PARAMS_H__
Packit 209cc3
Packit 209cc3
//
Packit 209cc3
// Parameters set from the configuration file.
Packit 209cc3
//
Packit 209cc3
Packit 209cc3
#define MAX_LINE 2048		/* Maximum chars allowed for the host list (in passive mode) */
Packit 209cc3
#define MAX_HOST_LIST 64000
Packit 209cc3
#define MAX_ACTIVE_LIST 10
Packit 209cc3
Packit 209cc3
struct active_pars
Packit 209cc3
{
Packit 209cc3
	char address[MAX_LINE + 1];	// keeps the network address (either numeric or literal) to of the active client
Packit 209cc3
	char port[MAX_LINE + 1];	// keeps the network port to bind to
Packit 209cc3
	int ai_family;			// address faimly to use
Packit 209cc3
};
Packit 209cc3
Packit 209cc3
extern char hostlist[MAX_HOST_LIST + 1];	//!< Keeps the list of the hosts that are allowed to connect to this server
Packit 209cc3
extern struct active_pars activelist[MAX_ACTIVE_LIST];		//!< Keeps the list of the hosts (host, port) on which I want to connect to (active mode)
Packit 209cc3
extern int nullAuthAllowed;			//!< '1' if we permit NULL authentication, '0' otherwise
Packit 209cc3
extern char loadfile[MAX_LINE + 1];		//!< Name of the file from which we have to load the configuration
Packit 209cc3
Packit 209cc3
#endif