[LTP] [PATCH v2] pty: Test data transmission with SLIP line discipline
Jiri Slaby
jslaby@suse.cz
Fri Mar 6 08:58:32 CET 2020
On 05. 03. 20, 12:01, Richard Palethorpe wrote:
> Basic transmission test and try to trigger a possible race between receiving
> and hangup (it appears there is none from my testing).
>
> This only includes SLIP for now, but more disciplines can be added. Probably
> at least CAN. However the packet generation will be different for each.
>
> Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
...
> --- /dev/null
> +++ b/testcases/kernel/pty/pty04.c
> @@ -0,0 +1,278 @@
...
> +struct ldisc_info {
> + int n;
> + char *name;
> + int max_mtu;
> +};
> +
> +static struct ldisc_info ldiscs[] = {
> + {1, "N_SLIP", 8192},
I meant using N_SLIP instead of magic "1", not in the string :).
thanks,
--
js
suse labs
More information about the ltp
mailing list