summaryrefslogtreecommitdiffstats
path: root/netrom/netromd.h
blob: 61220d226ffd0a546ef1da017a03c34ccf4d7dc8 (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
#ifndef	TRUE
#define	TRUE	1
#endif
#ifndef	FALSE
#define	FALSE	0
#endif

#define	NETROM_PID	0xCF

#define	NODES_SIG	0xFF

#define	CALLSIGN_LEN	7
#define	MNEMONIC_LEN	6
#define	QUALITY_LEN	1

#define	NODES_PACLEN	256
#define	ROUTE_LEN	(CALLSIGN_LEN+MNEMONIC_LEN+CALLSIGN_LEN+QUALITY_LEN)

struct port_struct {
	char *device;
	char *port;
	int  minimum_obs;
	int  default_qual;
	int  worst_qual;
	int  verbose;
};

extern struct port_struct port_list[];

extern int port_count;
extern int debug;
extern int logging;
extern int compliant;

extern ax25_address my_call;
extern ax25_address node_call;

/* In netromt.c */
extern void transmit_nodes(int, int);

/* In netromr.c */
extern void receive_nodes(unsigned char *, int, ax25_address *, int);