.. | .. |
---|
123 | 123 | return ((y >= x) || (y < z)) ? true : false; |
---|
124 | 124 | } |
---|
125 | 125 | |
---|
126 | | -static struct sk_buff *llc_shdlc_alloc_skb(struct llc_shdlc *shdlc, |
---|
| 126 | +static struct sk_buff *llc_shdlc_alloc_skb(const struct llc_shdlc *shdlc, |
---|
127 | 127 | int payload_len) |
---|
128 | 128 | { |
---|
129 | 129 | struct sk_buff *skb; |
---|
.. | .. |
---|
137 | 137 | } |
---|
138 | 138 | |
---|
139 | 139 | /* immediately sends an S frame. */ |
---|
140 | | -static int llc_shdlc_send_s_frame(struct llc_shdlc *shdlc, |
---|
| 140 | +static int llc_shdlc_send_s_frame(const struct llc_shdlc *shdlc, |
---|
141 | 141 | enum sframe_type sframe_type, int nr) |
---|
142 | 142 | { |
---|
143 | 143 | int r; |
---|
.. | .. |
---|
159 | 159 | } |
---|
160 | 160 | |
---|
161 | 161 | /* immediately sends an U frame. skb may contain optional payload */ |
---|
162 | | -static int llc_shdlc_send_u_frame(struct llc_shdlc *shdlc, |
---|
| 162 | +static int llc_shdlc_send_u_frame(const struct llc_shdlc *shdlc, |
---|
163 | 163 | struct sk_buff *skb, |
---|
164 | 164 | enum uframe_modifier uframe_modifier) |
---|
165 | 165 | { |
---|
.. | .. |
---|
361 | 361 | wake_up(shdlc->connect_wq); |
---|
362 | 362 | } |
---|
363 | 363 | |
---|
364 | | -static int llc_shdlc_connect_initiate(struct llc_shdlc *shdlc) |
---|
| 364 | +static int llc_shdlc_connect_initiate(const struct llc_shdlc *shdlc) |
---|
365 | 365 | { |
---|
366 | 366 | struct sk_buff *skb; |
---|
367 | 367 | |
---|
.. | .. |
---|
377 | 377 | return llc_shdlc_send_u_frame(shdlc, skb, U_FRAME_RSET); |
---|
378 | 378 | } |
---|
379 | 379 | |
---|
380 | | -static int llc_shdlc_connect_send_ua(struct llc_shdlc *shdlc) |
---|
| 380 | +static int llc_shdlc_connect_send_ua(const struct llc_shdlc *shdlc) |
---|
381 | 381 | { |
---|
382 | 382 | struct sk_buff *skb; |
---|
383 | 383 | |
---|