Zesstra | 83f011d | 2016-04-24 20:09:05 +0200 | [diff] [blame^] | 1 | #define INETD "/secure/inetd/inetd" |
| 2 | |
| 3 | // ****** Defines for field names **************** |
| 4 | #define RECIPIENT "RCPNT" |
| 5 | #define REQUEST "REQ" |
| 6 | #define SENDER "SND" |
| 7 | /* The DATA field should be used to store the main body of any packet. */ |
| 8 | #define DATA "DATA" |
| 9 | /* These headers are reserved for system use only. */ |
| 10 | #define HOST "HST" |
| 11 | #define ID "ID" |
| 12 | #define NAME "NAME" |
| 13 | #define PACKET "PKT" |
| 14 | #define UDP_PORT "UDP" |
| 15 | #define SYSTEM "SYS" |
| 16 | #define VERSION "V" |
| 17 | #define FLAGS "F" |
| 18 | #define SIGNATURE "S" |
| 19 | |
| 20 | /* Reserved headers for diagnostics. */ |
| 21 | #define PACKET_LOSS "PKT_LOSS" |
| 22 | #define RESPONSE_TIME "TIME" |
| 23 | |
| 24 | /* --- Standard REQUESTs --- */ |
| 25 | #define PING "ping" |
| 26 | #define QUERY "query" |
| 27 | #define REPLY "reply" |
| 28 | #define HELO "helo" |
| 29 | |
| 30 | // packet properties |
| 31 | #define MAX_UDP_LENGTH 65536 |
| 32 | // packet flags |
| 33 | #define FL_VALID_SIGNATURE 0x1 |
| 34 | |
| 35 | /* --- Index macros for host arrays in old-style host lists --- */ |
| 36 | #define HOSTLIST_NAME 0 |
| 37 | #define HOSTLIST_IP 1 |
| 38 | #define HOSTLIST_UDP_PORT 2 |
| 39 | #define HOSTLIST_LOCAL_COMMANDS 3 |
| 40 | #define HOSTLIST_COMMANDS 4 |
| 41 | #define HOSTLIST_STATUS 5 |
| 42 | #define HOSTFILE_DEL ":" |
| 43 | #define HOSTFILE_DEL2 "," |
| 44 | |
| 45 | /* Mud / Admin email address. */ |
| 46 | #define EMAIL "mud@mg.mud.de" |
| 47 | |
| 48 | // Public commands which are usually accessible. |
| 49 | #define DEFAULT_COMMANDS \ |
| 50 | ({ PING, QUERY, REPLY, "channel", "finger", "tell", "who", "mail",\ |
| 51 | "www", "htmlwho", "locate" }) |
| 52 | |