2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-04-16 15:20:36 -07:00
|
|
|
#ifndef _NET_INET_DATALINK_H_
|
|
|
|
|
#define _NET_INET_DATALINK_H_
|
|
|
|
|
|
2022-07-20 16:57:58 -07:00
|
|
|
#include <linux/list.h>
|
|
|
|
|
|
|
|
|
|
struct llc_sap;
|
|
|
|
|
struct net_device;
|
|
|
|
|
struct packet_type;
|
|
|
|
|
struct sk_buff;
|
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
struct datalink_proto {
|
|
|
|
|
unsigned char type[8];
|
|
|
|
|
|
|
|
|
|
struct llc_sap *sap;
|
|
|
|
|
|
|
|
|
|
unsigned short header_length;
|
|
|
|
|
|
|
|
|
|
int (*rcvfunc)(struct sk_buff *, struct net_device *,
|
2005-08-09 19:34:12 -07:00
|
|
|
struct packet_type *, struct net_device *);
|
2005-04-16 15:20:36 -07:00
|
|
|
int (*request)(struct datalink_proto *, struct sk_buff *,
|
2021-10-12 08:58:37 -07:00
|
|
|
const unsigned char *);
|
2005-04-16 15:20:36 -07:00
|
|
|
struct list_head node;
|
|
|
|
|
};
|
|
|
|
|
|
2014-02-09 22:27:41 +05:30
|
|
|
struct datalink_proto *make_EII_client(void);
|
|
|
|
|
void destroy_EII_client(struct datalink_proto *dl);
|
2005-04-16 15:20:36 -07:00
|
|
|
#endif
|