blob: 7e7875f59cac23d9b0eeebc9f0bdc649ec08db4e (
plain)
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
|
/* LIBAX25 - Library for AX.25 programs
* Copyright (C) 1997-1999 Jonathan Naylor, Tomi Manninen, Jean-Paul Roubelat
* and Alan Cox.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
/*
* This file documents the layout of the mheard file. Since this file is
* common to at least two of the AX25 utilities, it is documented here.
*/
#ifndef MHEARD_H
#define MHEARD_H
struct mheard_struct {
ax25_address from_call;
ax25_address to_call;
char portname[20];
unsigned int count;
unsigned int sframes;
unsigned int uframes;
unsigned int iframes;
unsigned int ndigis;
ax25_address digis[8];
time_t first_heard;
time_t last_heard;
#define MHEARD_TYPE_SABM 0
#define MHEARD_TYPE_SABME 1
#define MHEARD_TYPE_DISC 2
#define MHEARD_TYPE_UA 3
#define MHEARD_TYPE_DM 4
#define MHEARD_TYPE_RR 5
#define MHEARD_TYPE_RNR 6
#define MHEARD_TYPE_REJ 7
#define MHEARD_TYPE_FRMR 8
#define MHEARD_TYPE_I 9
#define MHEARD_TYPE_UI 10
#define MHEARD_TYPE_UNKNOWN 11
unsigned int type;
#define MHEARD_MODE_TEXT 0x0001
#define MHEARD_MODE_ARP 0x0002
#define MHEARD_MODE_IP_DG 0x0004
#define MHEARD_MODE_IP_VC 0x0008
#define MHEARD_MODE_NETROM 0x0010
#define MHEARD_MODE_ROSE 0x0020
#define MHEARD_MODE_FLEXNET 0x0040
#define MHEARD_MODE_TEXNET 0x0080
#define MHEARD_MODE_PSATPB 0x0100
#define MHEARD_MODE_PSATFT 0x0200
#define MHEARD_MODE_SEGMENT 0x4000
#define MHEARD_MODE_UNKNOWN 0x8000
unsigned int mode;
char spare[128];
};
#endif
|