summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2009-03-02 07:29:54 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2009-03-02 07:29:54 +0000
commitacc0a0992fa27f2e0cf893577eba6c3db4afd5df (patch)
treeaf0c565008ac0d60238ae189d3d9f7f8075d4534 /h
parent2e7ac9926a7acb502c3887a4a01f9b17ff1f857d (diff)
19 fields zephyrgrams
Diffstat (limited to 'h')
-rw-r--r--h/zephyr/zephyr.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h
index cb3bf46..9dab437 100644
--- a/h/zephyr/zephyr.h
+++ b/h/zephyr/zephyr.h
@@ -40,7 +40,7 @@
#define Z_MAXPKTLEN 1024
#define Z_MAXHEADERLEN 800
#define Z_MAXOTHERFIELDS 10 /* Max unknown fields in ZNotice_t */
-#define Z_NUMFIELDS 17
+#define Z_NUMFIELDS 19
/* Authentication levels returned by ZCheckAuthentication */
#define ZAUTH_FAILED (-1)
@@ -50,6 +50,11 @@
#define ZNOTICE_SOCKADDR 1
#define ZNOTICE_CHARSET 1
+#define ZCHARSET_UNKNOWN 0
+/* The following are from http://www.iana.org/assignments/character-sets */
+#define ZCHARSET_ISO_8859_1 4
+#define ZCHARSET_UTF_8 106
+
typedef char ZPacket_t[Z_MAXPKTLEN];
/* Packet type */
@@ -86,12 +91,12 @@ typedef struct _ZNotice_t {
/* heavily deprecated: */
#define z_sender_addr z_sender_sockaddr.ip4.sin_addr
/* probably a bad idea?: */
-#define z_port z_sender_sockaddr.ip4.sin_port
struct _ZTimeval z_time;
+ unsigned short z_port;
+ unsigned short z_charset;
int z_auth;
int z_checked_auth;
int z_authent_len;
- int z_charset;
char *z_ascii_authent;
char *z_class;
char *z_class_inst;