blob: 026217ae1b89d61701c73976bd6cc34b0a506ac1 (
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
|
#ifndef _AX25_SUBR_H
#define _AX25_SUBR_H
#include <net/ax25.h>
#include <net/ax25dev.h>
extern unsigned char *ax25_parse_addr(unsigned char*, int, ax25_pktinfo*);
extern unsigned short ax25_calculate_t1(ax25_cb*);
extern void ax25_return_dm(struct net_device*, ax25_pktinfo*);
extern void ax25_tx_command(ax25_cb*, int, int);
extern void ax25_tx_response(ax25_cb*, int, int);
extern void ax25_clear_queues(ax25_cb*);
extern void ax25_disconnect(ax25_cb*, int);
extern void ax25_nr_error_recovery(ax25_cb*);
extern void ax25_establish_data_link(ax25_cb*);
extern void ax25_transmit_enquiry(ax25_cb*);
extern void ax25_enquiry_response(ax25_cb*);
extern void ax25_timeout_response(ax25_cb*);
extern void ax25_close_socket(struct sock*, int);
extern inline void ax25_set_cond(ax25_cb* ax25, unsigned int cond)
{
ax25->condition |= cond;
}
extern inline void ax25_clr_cond(ax25_cb* ax25, unsigned int cond)
{
ax25->condition &= ~cond;
}
extern inline void ax25_start_t1(ax25_cb* ax25)
{
ax25_set_cond(ax25, AX25_COND_START_T1);
ax25->wrt_timer = 0;
}
#endif
|