/*************************************************************************
* (C) 2011 AITNET - Sofia/Bulgaria - <office@aitnet.org>
* by Michael Pounov <misho@elwix.org>
*
* $Author: misho $
* $Id: proto.h,v 1.1 2011/10/04 22:37:46 misho Exp $
*
*************************************************************************/
#ifndef __PROTO_H
#define __PROTO_H
#define ANSH_CODE 42
#define ANSH_VERSION 1
#define ANSH_ID 0x4224
#define ANSH_FLG_ERR -1
#define ANSH_FLG_OK 0
#define ANSH_FLG_EOF 1
#define ANSH_FLG_CPOUT 2
#define ANSH_FLG_WINZ 3
#define ANSH_FLG_GET(x) ((x) & 0xf)
struct ansh_hdr {
uint8_t ansh_ver;
int8_t ansh_flg;
uint16_t ansh_len;
uint32_t ansh_crc;
} __attribute__((packed));
#endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>