/*
 *------------------------------------------------------------------
 *
 * $Source: /mit/cgw/gw/in/RCS/gw_control.h,v $
 * $Revision: 1.1 $
 * $Date: 87/10/12 02:11:31 $
 * $State: Exp $
 * $Author: jon $
 * $Locker: jon $
 *
 * $Log:	gw_control.h,v $
 * Revision 1.1  87/10/12  02:11:31  jon
 * Initial revision
 * 
 * 
 *------------------------------------------------------------------
 */

#ifndef _GW_CONTROL_
#define _GW_CONTROL

#define REBOOT 1
#define RESTART 2
#define DUMP_ROUTES 3
#define CHANGE_ROUTE 4
#define LAST_REQUEST 4

#define GW_CONTROL_PROTOCOL_VERSION_1 "gwcn001\0"

typedef struct {
  int  request;
  char password[8];
  /* old requests (REBOOT/RESTART) only look at above */
  char version[8];
  int  request_number;
  int  reply_number;
} gw_control_header ;

#endif _GW_CONTROL_
