2 * (c) Copyright 1992 by Panagiotis Tsirigotis
3 * (c) Sections Copyright 1998-2001 by Rob Braun
4 * All rights reserved. The file named COPYRIGHT specifies the terms
5 * and conditions for redistribution.
10 #include <sys/types.h>
11 #include <sys/socket.h>
19 * A NULL value for the name field marks the end of the table
22 const struct name_value service_types[] =
27 { "INTERNAL", ST_INTERNAL },
28 { "UNLISTED", ST_UNLISTED },
29 { "SPECIAL", ST_SPECIAL },
30 { "TCPMUX", ST_TCPMUX },
31 { "TCPMUXPLUS", ST_TCPMUXPLUS },
36 /* REUSE is only used for backward compatibility. All services are now reuse */
37 const struct name_value service_flags[] =
39 { "REUSE", SF_REUSE },
40 { "INTERCEPT", SF_INTERCEPT },
41 { "NORETRY", SF_NORETRY },
42 { "IDONLY", SF_IDONLY },
43 { "NAMEINARGS", SF_NAMEINARGS },
44 { "NODELAY", SF_NODELAY },
45 { "KEEPALIVE", SF_KEEPALIVE },
46 { "NOLIBWRAP", SF_NOLIBWRAP },
47 { "SENSOR", SF_SENSOR },
54 const struct name_value socket_types[] =
56 { "stream", SOCK_STREAM },
57 { "dgram", SOCK_DGRAM },
59 { "seqpacket", SOCK_SEQPACKET },
61 { "BAD SOCKET TYPE", 0 }
65 const struct name_value success_log_options[] =
68 { "DURATION", LO_DURATION },
71 { "USERID", LO_USERID },
72 { "TRAFFIC", LO_TRAFFIC },
77 const struct name_value failure_log_options[] =
80 { "ATTEMPT", LO_ATTEMPT },
81 { "USERID", LO_USERID },
87 const struct name_value syslog_facilities[] =
89 { "daemon", LOG_DAEMON },
92 { "authpriv", LOG_AUTHPRIV },
102 { "news", LOG_NEWS },
105 { "uucp", LOG_UUCP },
110 { "local0", LOG_LOCAL0 },
111 { "local1", LOG_LOCAL1 },
112 { "local2", LOG_LOCAL2 },
113 { "local3", LOG_LOCAL3 },
114 { "local4", LOG_LOCAL4 },
115 { "local5", LOG_LOCAL5 },
116 { "local6", LOG_LOCAL6 },
117 { "local7", LOG_LOCAL7 },
119 { "BAD FACILITY", 0 }
123 const struct name_value syslog_levels[] =
125 { "emerg", LOG_EMERG },
126 { "alert", LOG_ALERT },
127 { "crit", LOG_CRIT },
129 { "warning", LOG_WARNING },
130 { "notice", LOG_NOTICE },
131 { "info", LOG_INFO },
132 { "debug", LOG_DEBUG },