summaryrefslogtreecommitdiff
path: root/include/net/datalink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/datalink.h')
-rw-r--r--include/net/datalink.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/net/datalink.h b/include/net/datalink.h
index deb7ca75db48..6c529a40e00d 100644
--- a/include/net/datalink.h
+++ b/include/net/datalink.h
@@ -1,6 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _NET_INET_DATALINK_H_
#define _NET_INET_DATALINK_H_
+#include <linux/list.h>
+
+struct llc_sap;
+struct net_device;
+struct packet_type;
+struct sk_buff;
+
struct datalink_proto {
unsigned char type[8];
@@ -11,7 +19,7 @@ struct datalink_proto {
int (*rcvfunc)(struct sk_buff *, struct net_device *,
struct packet_type *, struct net_device *);
int (*request)(struct datalink_proto *, struct sk_buff *,
- unsigned char *);
+ const unsigned char *);
struct list_head node;
};