| 1 |
/* LIBAX25 - Library for AX.25 programs |
| 2 |
* Copyright (C) 1997-1999 Jonathan Naylor, Tomi Manninen, Jean-Paul Roubelat |
| 3 |
* and Alan Cox. |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Library General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, see |
| 17 |
* <https://www.gnu.org/licenses/>. |
| 18 |
*/ |
| 19 |
/* |
| 20 |
* This file documents the layout of the mheard file. Since this file is |
| 21 |
* common to at least two of the AX25 utilities, it is documented here. |
| 22 |
*/ |
| 23 |
#ifndef MHEARD_H |
| 24 |
#define MHEARD_H |
| 25 |
|
| 26 |
struct mheard_struct { |
| 27 |
ax25_address from_call; |
| 28 |
ax25_address to_call; |
| 29 |
char portname[20]; |
| 30 |
unsigned int count; |
| 31 |
unsigned int sframes; |
| 32 |
unsigned int uframes; |
| 33 |
unsigned int iframes; |
| 34 |
unsigned int ndigis; |
| 35 |
ax25_address digis[8]; |
| 36 |
time_t first_heard; |
| 37 |
time_t last_heard; |
| 38 |
|
| 39 |
#define MHEARD_TYPE_SABM 0 |
| 40 |
#define MHEARD_TYPE_SABME 1 |
| 41 |
#define MHEARD_TYPE_DISC 2 |
| 42 |
#define MHEARD_TYPE_UA 3 |
| 43 |
#define MHEARD_TYPE_DM 4 |
| 44 |
#define MHEARD_TYPE_RR 5 |
| 45 |
#define MHEARD_TYPE_RNR 6 |
| 46 |
#define MHEARD_TYPE_REJ 7 |
| 47 |
#define MHEARD_TYPE_FRMR 8 |
| 48 |
#define MHEARD_TYPE_I 9 |
| 49 |
#define MHEARD_TYPE_UI 10 |
| 50 |
#define MHEARD_TYPE_UNKNOWN 11 |
| 51 |
unsigned int type; |
| 52 |
|
| 53 |
#define MHEARD_MODE_TEXT 0x0001 |
| 54 |
#define MHEARD_MODE_ARP 0x0002 |
| 55 |
#define MHEARD_MODE_IP_DG 0x0004 |
| 56 |
#define MHEARD_MODE_IP_VC 0x0008 |
| 57 |
#define MHEARD_MODE_NETROM 0x0010 |
| 58 |
#define MHEARD_MODE_ROSE 0x0020 |
| 59 |
#define MHEARD_MODE_FLEXNET 0x0040 |
| 60 |
#define MHEARD_MODE_TEXNET 0x0080 |
| 61 |
#define MHEARD_MODE_PSATPB 0x0100 |
| 62 |
#define MHEARD_MODE_PSATFT 0x0200 |
| 63 |
#define MHEARD_MODE_SEGMENT 0x4000 |
| 64 |
#define MHEARD_MODE_UNKNOWN 0x8000 |
| 65 |
unsigned int mode; |
| 66 |
|
| 67 |
char spare[128]; |
| 68 |
}; |
| 69 |
|
| 70 |
#endif |