2 * The Remote User Info Distribution Protocol
4 * (c) 1997--2010 Martin Mares <mj@ucw.cz>
23 u32 magic; /* Guard against ancient nwho versions */
25 u32 server_time; /* Reserved for use by the server */
29 struct userinfo users[MAX_USERS];
32 #define NWHO_SPOOL_DIR "/var/state/nwho"
33 #define NWHO_MAGIC 0x21913332
36 #define DEFAULT_SEND_TIME 30
37 #define DEFAULT_PRUNE_TIME 30
38 #define DEFAULT_DOWN_TIME 120
39 #define DEFAULT_DEAD_TIME 4*86400
41 #define STRINGIFY(x) STRINGIFY2(x)
42 #define STRINGIFY2(x) #x
44 static inline int nwho_pkt_size(struct nwho_pkt *pkt)
46 return sizeof(struct nwho_pkt) - (MAX_USERS - ntohl(pkt->num_users))*sizeof(struct userinfo);