xref: /linux/include/net/datalink.h (revision b54a2377ec02d52b7bb5dab381e9a45ba0bc617a)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _NET_INET_DATALINK_H_
3 #define _NET_INET_DATALINK_H_
4 
5 #include <linux/list.h>
6 
7 struct llc_sap;
8 struct net_device;
9 struct packet_type;
10 struct sk_buff;
11 
12 struct datalink_proto {
13         unsigned char   type[8];
14 
15 	struct llc_sap   *sap;
16 
17         unsigned short  header_length;
18 
19         int     (*rcvfunc)(struct sk_buff *, struct net_device *,
20                                 struct packet_type *, struct net_device *);
21 	int     (*request)(struct datalink_proto *, struct sk_buff *,
22 			   const unsigned char *);
23 	struct list_head node;
24 };
25 
26 struct datalink_proto *make_EII_client(void);
27 void destroy_EII_client(struct datalink_proto *dl);
28 #endif
29