/*
 * This file contains the x callbacks for various things.
 *
 * Copyright 1990 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>.
 *
 * Tom Coppeto
 * MIT Network Services
 * 8 August 1990
 *
 *    $Source: /afs/net.mit.edu/tools/src/xinterface/RCS/data.c,v $
 *    $Author: tom $
 *    $Locker:  $
 *    $Log:	data.c,v $
 * Revision 1.3  91/02/21  13:44:27  tom
 * added kinetics type
 * 
 * Revision 1.2  90/10/29  09:17:27  tom
 * *** empty log message ***
 * 
 * Revision 1.1  90/08/15  01:13:00  tom
 * Initial revision
 * 
 */

#ifndef lint
static char *rcsid = "$Header: /afs/net.mit.edu/tools/src/xinterface/RCS/data.c,v 1.3 91/02/21 13:44:27 tom Exp $";
#endif

#include "xport.h"
#include <mit-copyright.h>

struct _interface interface[MAX_INTS];
struct in_addr addr;
char   *sysdesc;
int    nints;
int    protect = 1;
int    update  = 60;
int    vendor  = 0;
char   *community = "public";


struct _vendor vendors[] = 
{
  {"cisco",             CISCO},
  {"kinetics fastpath", KINETICS},
  {(char *) NULL,       0},
};



/*
 * from rfc 1156
 */

int num_interface_types = 22;
char *interface_type[] = 
{
  "other",
  "regular1822",
  "hdh1822",
  "ddn-x25",
  "rfc877-x25",
  "ethernet-csmacd",
  "iso88023-csmacd",
  "iso88024-tokenBus",
  "iso88025-tokenRing",
  "iso88026-man",
  "starLan",
  "proteon-10MBit",
  "proteon-80MBit",
  "hyperchannel",
  "fddi",
  "lapb",
  "sdlc",
  "t1-carrier",
  "cept",
  "basicIsdn",
  "primaryIsdn",
  "propPointToPointSerial"
};


int num_route_protocols = 13;
char *route_protocol[] = 
{
  "other",    
  "local",
  "netmgmt",
  "icmp",
  "egp",
  "ggp",
  "hello",
  "rip",
  "is-is",
  "es-is",
  "ciscoIgrp",
  "bbnSpfIgp",
  "oigp",
};



int num_tcp_timeout_algorithms = 4;
char *tcp_timeout_algorithm[] = 
{
  "other",   
  "constant", 
  "rsre",
  "vanj",
};



int num_tcp_connection_states = 11;
char *tcp_connection_state[] = 
{
  "closed",
  "listen",
  "synSent",
  "synReceived",
  "established",
  "finWait1",
  "finWait2",
  "closeWait",
  "lastAck",
  "closing",
  "timeWait",
};



/*
 * menus
 */

int num_route_types = 4;
char *route_type[] = 
{
  "other",
  "invalid",
  "direct",
  "remote",
};

int num_stats_menus = 6;
struct _menu stats_menu[] = 
{
  {stat_interface, "interfaceMenuEntry",      0},
  {stat_address,   "ifaddressMenuEntry",      0},
  {stat_ifstats,   "ifstatMenuEntry",         0},
  {stat_ifaddr,    "ifaddrMenuEntry",         0},
  {stat_ifroute,   "ifrouteMenuEntry",        0},
  {stat_ifmisc,    "ifmiscMenuEntry",         0},
};  
  
int num_options_menus = 3;
struct _menu options_menu[] = 
{
  {change_community, "communityMenuEntry",    0},
  {change_update,    "updateEntry",           0},
  {set_protect,      "writeprotectMenuEntry", 1},
};
  
int num_info_menus = 2;
struct _menu info_menu[] = 
{
  {info_boot,      "bootConfigMenuEntry",     0},
  {info_author,    "authorMenuEntry",         0},
};

int num_bstats_menus = 5;
struct _menu bstats_menu[] = 
{
  {stat_ip,        "ipMenuEntry",             0},
  {stat_icmp,      "icmpMenuEntry",           0},
  {stat_udp,       "udpMenuEntry",            0},
  {stat_tcp,       "tcpMenuEntry",            0},
  {stat_memory,    "memoryMenuEntry",         0},
};

