Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _NET_INET_DATALINK_H_
0003 #define _NET_INET_DATALINK_H_
0004 
0005 #include <linux/list.h>
0006 
0007 struct llc_sap;
0008 struct net_device;
0009 struct packet_type;
0010 struct sk_buff;
0011 
0012 struct datalink_proto {
0013         unsigned char   type[8];
0014 
0015     struct llc_sap   *sap;
0016 
0017         unsigned short  header_length;
0018 
0019         int     (*rcvfunc)(struct sk_buff *, struct net_device *,
0020                                 struct packet_type *, struct net_device *);
0021     int     (*request)(struct datalink_proto *, struct sk_buff *,
0022                const unsigned char *);
0023     struct list_head node;
0024 };
0025 
0026 struct datalink_proto *make_EII_client(void);
0027 void destroy_EII_client(struct datalink_proto *dl);
0028 #endif