o LLC: rename llc_mac.c to llc_input.c, net/llc_mac.h to net/llc.h

Next step: to have llc_build_and_send_ui_pkt in llc_output.c, not
using the silly sap state machinery.
parent ff6e3904
#ifndef LLC_MAC_H #ifndef LLC_H
#define LLC_MAC_H #define LLC_H
/* /*
* Copyright (c) 1997 by Procom Technology, Inc. * Copyright (c) 1997 by Procom Technology, Inc.
* 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
...@@ -16,15 +16,17 @@ ...@@ -16,15 +16,17 @@
#define LLC_DEST_SAP 1 /* Type 1 goes here */ #define LLC_DEST_SAP 1 /* Type 1 goes here */
#define LLC_DEST_CONN 2 /* Type 2 goes here */ #define LLC_DEST_CONN 2 /* Type 2 goes here */
extern int llc_rcv(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt);
struct llc_sap; struct llc_sap;
struct net_device;
struct packet_type;
struct sk_buff; struct sk_buff;
extern int llc_rcv(struct sk_buff *skb, struct net_device *dev,
struct packet_type *pt);
extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap,
struct sk_buff *skb)); struct sk_buff *skb));
extern void llc_remove_pack(int type); extern void llc_remove_pack(int type);
extern void llc_set_station_handler(void (*handler)(struct sk_buff *skb)); extern void llc_set_station_handler(void (*handler)(struct sk_buff *skb));
#endif /* LLC_MAC_H */ #endif /* LLC_H */
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
obj-$(CONFIG_LLC_CORE) += llc_core.o obj-$(CONFIG_LLC_CORE) += llc_core.o
llc_core-y := llc_mac.o llc_sap.o llc_s_st.o llc_s_ac.o llc_s_ev.o llc_main.o \ llc_core-y := llc_input.o llc_output.o llc_s_st.o llc_s_ac.o llc_s_ev.o \
llc_actn.o llc_stat.o llc_evnt.o llc_output.o llc_main.o llc_actn.o llc_stat.o llc_evnt.o llc_sap.o
obj-$(CONFIG_LLC2) += llc2.o obj-$(CONFIG_LLC2) += llc2.o
......
...@@ -24,14 +24,14 @@ ...@@ -24,14 +24,14 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/tcp.h> #include <linux/tcp.h>
#include <linux/rtnetlink.h>
#include <linux/init.h>
#include <net/llc.h>
#include <net/llc_sap.h> #include <net/llc_sap.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_conn.h> #include <net/llc_conn.h>
#include <net/llc_mac.h>
#include <net/llc_main.h> #include <net/llc_main.h>
#include <net/llc_proc.h> #include <net/llc_proc.h>
#include <linux/rtnetlink.h>
#include <linux/init.h>
/* remember: uninitialized global data is zeroed because its in .bss */ /* remember: uninitialized global data is zeroed because its in .bss */
static u16 llc_ui_sap_last_autoport = LLC_SAP_DYN_START; static u16 llc_ui_sap_last_autoport = LLC_SAP_DYN_START;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <net/llc_main.h> #include <net/llc_main.h>
#include <net/llc_evnt.h> #include <net/llc_evnt.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_mac.h>
#include "llc_output.h" #include "llc_output.h"
int llc_station_ac_start_ack_timer(struct llc_station *station, int llc_station_ac_start_ack_timer(struct llc_station *station,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <net/llc_c_ac.h> #include <net/llc_c_ac.h>
#include <net/llc_c_st.h> #include <net/llc_c_st.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_mac.h> #include <net/llc.h>
#include "llc_output.h" #include "llc_output.h"
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <net/llc_c_ev.h> #include <net/llc_c_ev.h>
#include <net/llc_c_ac.h> #include <net/llc_c_ac.h>
#include <net/llc_c_st.h> #include <net/llc_c_st.h>
#include <net/llc_mac.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_s_ev.h> #include <net/llc_s_ev.h>
......
/* /*
* llc_mac.c - Manages interface between LLC and MAC * llc_input.c - Minimal input path for LLC
* *
* Copyright (c) 1997 by Procom Technology, Inc. * Copyright (c) 1997 by Procom Technology, Inc.
* 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br> * 2001-2003 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the GNU General Public License for more details. * See the GNU General Public License for more details.
*/ */
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <net/llc_mac.h> #include <net/llc.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_sap.h> #include <net/llc_sap.h>
#include <net/llc_main.h> #include <net/llc_main.h>
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <net/llc.h>
#include <net/llc_sap.h> #include <net/llc_sap.h>
#include <net/llc_conn.h> #include <net/llc_conn.h>
#include <net/llc_main.h> #include <net/llc_main.h>
...@@ -27,7 +28,6 @@ ...@@ -27,7 +28,6 @@
#include <net/llc_c_st.h> #include <net/llc_c_st.h>
#include <net/llc_s_ev.h> #include <net/llc_s_ev.h>
#include <net/llc_s_st.h> #include <net/llc_s_st.h>
#include <net/llc_mac.h>
#include <net/llc_proc.h> #include <net/llc_proc.h>
/* static function prototypes */ /* static function prototypes */
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <net/llc_c_ev.h> #include <net/llc_c_ev.h>
#include <net/llc_c_st.h> #include <net/llc_c_st.h>
#include <net/llc_conn.h> #include <net/llc_conn.h>
#include <net/llc_mac.h>
#include <net/llc_main.h> #include <net/llc_main.h>
#include <net/llc_sap.h> #include <net/llc_sap.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <net/llc_main.h> #include <net/llc_main.h>
#include <net/llc_s_ev.h> #include <net/llc_s_ev.h>
#include <net/llc_pdu.h> #include <net/llc_pdu.h>
#include <net/llc_mac.h>
#include "llc_output.h" #include "llc_output.h"
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment