From 9f0de7de494c86e19d3c7166e245682453154b74 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 20 Jun 2009 22:53:50 +0000 Subject: Move all header files to be installed to new subdirectory netax25. --- netax25/mheard.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 netax25/mheard.h (limited to 'netax25/mheard.h') diff --git a/netax25/mheard.h b/netax25/mheard.h new file mode 100644 index 0000000..7e7875f --- /dev/null +++ b/netax25/mheard.h @@ -0,0 +1,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 -- cgit v1.2.3