aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/llc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/llc.h')
-rw-r--r--include/net/llc.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/include/net/llc.h b/include/net/llc.h
index 9e7d7f08ef77..68490cbc8a65 100644
--- a/include/net/llc.h
+++ b/include/net/llc.h
@@ -95,29 +95,29 @@ struct hlist_nulls_head *llc_sk_laddr_hash(struct llc_sap *sap,
95extern struct list_head llc_sap_list; 95extern struct list_head llc_sap_list;
96extern spinlock_t llc_sap_list_lock; 96extern spinlock_t llc_sap_list_lock;
97 97
98extern int llc_rcv(struct sk_buff *skb, struct net_device *dev, 98int llc_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
99 struct packet_type *pt, struct net_device *orig_dev); 99 struct net_device *orig_dev);
100 100
101extern int llc_mac_hdr_init(struct sk_buff *skb, 101int llc_mac_hdr_init(struct sk_buff *skb, const unsigned char *sa,
102 const unsigned char *sa, const unsigned char *da); 102 const unsigned char *da);
103 103
104extern void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, 104void llc_add_pack(int type,
105 struct sk_buff *skb)); 105 void (*handler)(struct llc_sap *sap, struct sk_buff *skb));
106extern void llc_remove_pack(int type); 106void llc_remove_pack(int type);
107 107
108extern void llc_set_station_handler(void (*handler)(struct sk_buff *skb)); 108void llc_set_station_handler(void (*handler)(struct sk_buff *skb));
109 109
110extern struct llc_sap *llc_sap_open(unsigned char lsap, 110struct llc_sap *llc_sap_open(unsigned char lsap,
111 int (*rcv)(struct sk_buff *skb, 111 int (*rcv)(struct sk_buff *skb,
112 struct net_device *dev, 112 struct net_device *dev,
113 struct packet_type *pt, 113 struct packet_type *pt,
114 struct net_device *orig_dev)); 114 struct net_device *orig_dev));
115static inline void llc_sap_hold(struct llc_sap *sap) 115static inline void llc_sap_hold(struct llc_sap *sap)
116{ 116{
117 atomic_inc(&sap->refcnt); 117 atomic_inc(&sap->refcnt);
118} 118}
119 119
120extern void llc_sap_close(struct llc_sap *sap); 120void llc_sap_close(struct llc_sap *sap);
121 121
122static inline void llc_sap_put(struct llc_sap *sap) 122static inline void llc_sap_put(struct llc_sap *sap)
123{ 123{
@@ -125,27 +125,27 @@ static inline void llc_sap_put(struct llc_sap *sap)
125 llc_sap_close(sap); 125 llc_sap_close(sap);
126} 126}
127 127
128extern struct llc_sap *llc_sap_find(unsigned char sap_value); 128struct llc_sap *llc_sap_find(unsigned char sap_value);
129 129
130extern int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb, 130int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
131 unsigned char *dmac, unsigned char dsap); 131 unsigned char *dmac, unsigned char dsap);
132 132
133extern void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb); 133void llc_sap_handler(struct llc_sap *sap, struct sk_buff *skb);
134extern void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb); 134void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb);
135 135
136extern void llc_station_init(void); 136void llc_station_init(void);
137extern void llc_station_exit(void); 137void llc_station_exit(void);
138 138
139#ifdef CONFIG_PROC_FS 139#ifdef CONFIG_PROC_FS
140extern int llc_proc_init(void); 140int llc_proc_init(void);
141extern void llc_proc_exit(void); 141void llc_proc_exit(void);
142#else 142#else
143#define llc_proc_init() (0) 143#define llc_proc_init() (0)
144#define llc_proc_exit() do { } while(0) 144#define llc_proc_exit() do { } while(0)
145#endif /* CONFIG_PROC_FS */ 145#endif /* CONFIG_PROC_FS */
146#ifdef CONFIG_SYSCTL 146#ifdef CONFIG_SYSCTL
147extern int llc_sysctl_init(void); 147int llc_sysctl_init(void);
148extern void llc_sysctl_exit(void); 148void llc_sysctl_exit(void);
149 149
150extern int sysctl_llc2_ack_timeout; 150extern int sysctl_llc2_ack_timeout;
151extern int sysctl_llc2_busy_timeout; 151extern int sysctl_llc2_busy_timeout;