aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pies.h b/src/pies.h
index d6347ce..25db08a 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -177,6 +177,7 @@ struct component
/* For inetd components */
size_t max_rate; /* Maximum number of invocations per minute */
+ size_t max_ip_connections; /* Max. number of connections per IP address */
int socket_type; /* Socket type */
struct inetd_builtin *builtin; /* Builtin function */
char *service;
@@ -189,6 +190,12 @@ struct component
become available. */
pies_acl_t acl;
char *tcpmux; /* Master service for TCPMUX */
+
+ /* Optional error messages to be sent back on the socket: */
+ char *access_denied_message;
+ char *max_instances_message;
+ char *max_ip_connections_message;
+
/* Redirectors: */
int facility; /* Syslog facility. */
struct redirector redir[2]; /* Repeaters for stdout and stderr */
@@ -239,6 +246,7 @@ void progman_run_comp (struct component *comp, int fd,
void progman_iterate_comp (int (*fun) (struct component *, void *),
void *data);
+void fd_report (int fd, const char *msg);
int check_acl (pies_acl_t acl, struct sockaddr *s, socklen_t salen);

Return to:

Send suggestions and report system problems to the System administrator.