xref: /openbmc/linux/include/net/datalink.h (revision 31a254f6)
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 #endif
27