*/
#include <inttypes.h>
+#include <netinet/in.h>
typedef uint32_t u32;
#define STRINGIFY(x) STRINGIFY2(x)
#define STRINGIFY2(x) #x
+
+static inline int nwho_pkt_size(struct nwho_pkt *pkt)
+{
+ return sizeof(struct nwho_pkt) - (MAX_USERS - ntohl(pkt->num_users))*sizeof(struct userinfo);
+}
+
+/* util.c */
+
+void die(char *msg, ...) __attribute__((noreturn));