[PATCH] Small X25 IOCTL Fix

Paul Cook (paul@anville.co.uk)
Tue, 4 Dec 2001 18:17:46 +0000


--------------Boundary-00=_M50UCS184FYRLSIV3W2C
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: 8bit

Hi,

without the following small patch, it is impossible, using the ioctl
interface, to disable the throughput facility without patching /include/x25.h
and re-compiling.

This is made against a 2.2.19, but looks equally relevant for 2.4.x

--------------Boundary-00=_M50UCS184FYRLSIV3W2C
Content-Type: text/x-diff;
charset="iso-8859-15";
name="x25_ioctl.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="x25_ioctl.diff"

LS0tIG5ldC94MjUvb2xkX2FmX3gyNS5jCVdlZCBOb3YgMjggMTg6Mzc6MTUgMjAwMQorKysgbmV0
L3gyNS9hZl94MjUuYwlUaHUgTm92IDI5IDEyOjMzOjUwIDIwMDEKQEAgLTExNTAsNyArMTE1MCw3
IEBACiAJCQkJcmV0dXJuIC1FSU5WQUw7CiAJCQlpZiAoZmFjaWxpdGllcy53aW5zaXplX2luIDwg
MSB8fCBmYWNpbGl0aWVzLndpbnNpemVfaW4gPiAxMjcpCiAJCQkJcmV0dXJuIC1FSU5WQUw7Ci0J
CQlpZiAoZmFjaWxpdGllcy50aHJvdWdocHV0IDwgMHgwMyB8fCBmYWNpbGl0aWVzLnRocm91Z2hw
dXQgPiAweDJDKQorCQkJaWYgKGZhY2lsaXRpZXMudGhyb3VnaHB1dCAmJiAoZmFjaWxpdGllcy50
aHJvdWdocHV0IDwgMHgwMyB8fCBmYWNpbGl0aWVzLnRocm91Z2hwdXQgPiAweDJDKSkKIAkJCQly
ZXR1cm4gLUVJTlZBTDsKIAkJCWlmIChmYWNpbGl0aWVzLnJldmVyc2UgIT0gMCAmJiBmYWNpbGl0
aWVzLnJldmVyc2UgIT0gMSkKIAkJCQlyZXR1cm4gLUVJTlZBTDsK

--------------Boundary-00=_M50UCS184FYRLSIV3W2C--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/