diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-04-10 00:44:09 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-04-10 00:44:09 +0200 |
commit | 60368d2e0bd1a81c64b1a30b0819232866ccedb4 (patch) | |
tree | c147b96c7af298db90dad7ae782d9af3cc03092e /mheard.h |
Import ax25-lib 0.0.1 from tarballax25-lib-0.0.1
Diffstat (limited to 'mheard.h')
-rw-r--r-- | mheard.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mheard.h b/mheard.h new file mode 100644 index 0000000..577c027 --- /dev/null +++ b/mheard.h @@ -0,0 +1,52 @@ +/* + * 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 |