diff options
Diffstat (limited to 'net/x25/x25_subr.c')
-rw-r--r-- | net/x25/x25_subr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/x25/x25_subr.c b/net/x25/x25_subr.c index 511a5986af3e..dc20cf12f39b 100644 --- a/net/x25/x25_subr.c +++ b/net/x25/x25_subr.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * restriction on response. | 23 | * restriction on response. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/slab.h> | ||
26 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
27 | #include <linux/string.h> | 28 | #include <linux/string.h> |
28 | #include <linux/skbuff.h> | 29 | #include <linux/skbuff.h> |
@@ -225,6 +226,12 @@ void x25_write_internal(struct sock *sk, int frametype) | |||
225 | break; | 226 | break; |
226 | 227 | ||
227 | case X25_CLEAR_REQUEST: | 228 | case X25_CLEAR_REQUEST: |
229 | dptr = skb_put(skb, 3); | ||
230 | *dptr++ = frametype; | ||
231 | *dptr++ = x25->causediag.cause; | ||
232 | *dptr++ = x25->causediag.diagnostic; | ||
233 | break; | ||
234 | |||
228 | case X25_RESET_REQUEST: | 235 | case X25_RESET_REQUEST: |
229 | dptr = skb_put(skb, 3); | 236 | dptr = skb_put(skb, 3); |
230 | *dptr++ = frametype; | 237 | *dptr++ = frametype; |