/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* bos720 src/bos/usr/bin/errlg/samples/syscatch/sysguard.h.S 1.1         */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1995                   */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/* @(#)81	1.1  src/bos/usr/bin/errlg/samples/syscatch/sysguard.h.S, cmderrlg, bos720 7/28/95 15:51:47 */
/*
 * COMPONENT_NAME: (CMDERRLG) Error catcher sample
 *
 * FUNCTIONS: System Guard header file
 *
 * ORIGINS: 27
 *
 * (C) COPYRIGHT International Business Machines Corp. 1995
 * All Rights Reserved
 * Licensed Materials - Property of IBM
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */

#define		BUMP_MAGIC_NUMBER	0xc9c2d401
#define		DATA_ERR_RETURN		-1
#define		NORMAL_RETURN		0
#define		DUP_RETURN		1
#define		SERVER_ERR_RETURN	2
#define		MODEM_INIT_STRING	"ATZ\n"
#define SOH    0x01                          /* start of block character */
#define EOT    0x04                          /* end of transmission */
#define ACK    0x06                          /* acknowledge block */
#define NAK    0x15                          /* error in transmission */
#define SUB    0x1a                          /* end of file (a la CP/M, DOS) */
#define	SECSIZE		128
#define	BUFSIZE		SECSIZE + 3
#define SEND_MASK	0x7F
#define	RECEIVE_MASK	0xFF
#define	NAK_INTERVAL	4
#define MAX_NAKS	6
#define	MAX_SECTORS	10000   
#define	SLEEP_INTERVAL	3600	/* check for data in queue this interval  */
#define POLL_RATE	1	/* check ttys every this interval seconds */
#define MAX_TTY_NAME	10

typedef struct sysguard_prob {
	unsigned int	magic;  		       	/* A magic number (identifyer) */
	unsigned int	metric;				/* routing metric */
	char		login_id[12];
	char		css_id[4];
	char		custid[12];
	char		passwd[16];
	char		time[8];				/* time in seconds since epoch */
	char		callback[20];			/* BUMP's call back number */
	char		voice_phone[20];
	char		serial_no[10];			/* Serial Number */
	char 		device_type[13];		/* Device Type of the machine */
	char		error_code[4];
	char		destination[1];
	char		SRN_LCD[64];			/* LED String */
	char		abstract[64];
} sysguard_prob_type;


typedef struct data_holder_struct
{
        struct data_holder_struct       *nxt;
        struct data_holder_struct       *prev;
        char                            buffer[SECSIZE];
} data_holder;



