File: xmon.h

package info (click to toggle)
tnt 1.1a3-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 1,868 kB
  • ctags: 3,374
  • sloc: ansic: 34,341; makefile: 193; sh: 4
file content (83 lines) | stat: -rw-r--r-- 1,548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* tnt: Hostmode Terminal for TNC
   Copyright (C) 1993-1995 by Mark Wahl
   For license details see documentation
   include file for extended monitor (xmon.h)
   created: Mark Wahl DL4YBG 94/07/17
   updated: Mark Wahl DL4YBG 95/03/16
*/

#ifdef USE_IFACE
#define MAX_XMON 20
#else
#define MAX_XMON 10
#endif
#define XMON_SCREENS 5

/* timeout if no new packet is received on monbox channel in seconds */
#define XMON_TIMEOUT 900

struct xmon_stat {
  int active;
  char srccall[10];
  char destcall[10];
  int srcsum;
  int destsum;
  int next_i_nbr;
  int last_i_nbr;
  int check_chksum;
  int last_chksum;
  int screen;
  int attribute;
  int monbox;
  int monbox_channel;
  time_t last_received;
  int huffcod;
};

struct monheader {
  int header_valid;
  char srccall[10];
  char destcall[10];
  int srcsum;
  int destsum;
  int last_i_nbr;
};

struct heardlist {
  int srcsum;
  int destsum;
  char *srccall;
  char *destcall;
  time_t first_heard;
  time_t last_heard;
  struct heardlist *previous;
  struct heardlist *next;
};

/* layer3 definitions */
#define L3_HEADERLEN 20
#define L3_CONACKLEN 21
#define L3_CONREQLEN 35

#define L3_SRCCALL 0
#define L3_DESTCALL 7
#define L3_TTL 14
#define L3_CI 15
#define L3_CID 16
#define L3_CI_2 17
#define L3_TXNO 17
#define L3_CID_2 18
#define L3_RXNO 18
#define L3_OPCODE 19
#define L3_WINSIZE 20
#define L3_CALL3 21
#define L3_CALL4 28

/* layer3 opcodes */
#define L3OP_CONREQ 1
#define L3OP_CONACK 2
#define L3OP_DISCREQ 3
#define L3OP_DISCACK 4
#define L3OP_INFO 5
#define L3OP_INFOACK 6