1 /* SPDX-License-Identifier: GPL-2.0 */
3 * These are the public elements of the Linux LAPB module.
10 #define LAPB_BADTOKEN 1
11 #define LAPB_INVALUE 2
12 #define LAPB_CONNECTED 3
13 #define LAPB_NOTCONNECTED 4
14 #define LAPB_REFUSED 5
15 #define LAPB_TIMEDOUT 6
18 #define LAPB_STANDARD 0x00
19 #define LAPB_EXTENDED 0x01
27 struct lapb_register_struct
{
28 void (*connect_confirmation
)(struct net_device
*dev
, int reason
);
29 void (*connect_indication
)(struct net_device
*dev
, int reason
);
30 void (*disconnect_confirmation
)(struct net_device
*dev
, int reason
);
31 void (*disconnect_indication
)(struct net_device
*dev
, int reason
);
32 int (*data_indication
)(struct net_device
*dev
, struct sk_buff
*skb
);
33 void (*data_transmit
)(struct net_device
*dev
, struct sk_buff
*skb
);
36 struct lapb_parms_struct
{
48 extern int lapb_register(struct net_device
*dev
,
49 const struct lapb_register_struct
*callbacks
);
50 extern int lapb_unregister(struct net_device
*dev
);
51 extern int lapb_getparms(struct net_device
*dev
, struct lapb_parms_struct
*parms
);
52 extern int lapb_setparms(struct net_device
*dev
, struct lapb_parms_struct
*parms
);
53 extern int lapb_connect_request(struct net_device
*dev
);
54 extern int lapb_disconnect_request(struct net_device
*dev
);
55 extern int lapb_data_request(struct net_device
*dev
, struct sk_buff
*skb
);
56 extern int lapb_data_received(struct net_device
*dev
, struct sk_buff
*skb
);