#define CODEDOMAIN "literal"
#define PORTDOMAIN "inet-udp"
#define PORTPROTO "udp"
#define PORTNUMBER 3714
#define PORTNAME "fred"
#define SLOCNAME "fred"
#define SLOC "sloc"

#define MAXSERVERS 5
#define NUMRETRIES 5
#define RETRY 500 /* ms */

#define TIMERANGE 300

#define PROTOVERSION0 0

#define REQUEST_PING 1
#define REQUEST_REGISTRATION 2
#define REQUEST_DEREGISTRATION 3
#define REQUEST_KEY 4

#define REPLY_ERROR 0
#define REPLY_PING 1
#define REPLY_DEREGRISTRATION 3
#define REPLY_KEY 4

#define ERROR_BADPACKET 1
#define ERROR_PROTOUNSUPPORTED 2
#define ERROR_BADREQUEST 3
#define ERROR_BADKEYGENERATOR 4
#define ERROR_PERMISSIONDENIED 5
#define ERROR_UNKNOWNKEY 6
#define ERROR_UNKNOWNKEYTYPE 7
