X25: Enable setting of cause and diagnostic fields
Adds SIOCX25SCAUSEDIAG, allowing X.25 programs to set the cause and diagnostic fields. Normally used to indicate status upon closing connections. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0e4817470b
commit
386e50cc7d
@@ -225,6 +225,12 @@ void x25_write_internal(struct sock *sk, int frametype)
|
||||
break;
|
||||
|
||||
case X25_CLEAR_REQUEST:
|
||||
dptr = skb_put(skb, 3);
|
||||
*dptr++ = frametype;
|
||||
*dptr++ = x25->causediag.cause;
|
||||
*dptr++ = x25->causediag.diagnostic;
|
||||
break;
|
||||
|
||||
case X25_RESET_REQUEST:
|
||||
dptr = skb_put(skb, 3);
|
||||
*dptr++ = frametype;
|
||||
|
Reference in New Issue
Block a user