public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 0/2] pty: use correct protocol in pty04 based on line discipline
@ 2026-02-06 12:51 Vasileios Almpanis via ltp
  2026-02-06 12:51 ` [LTP] [PATCH 1/2] add ETH_P_CAN compat macro to LAPI headers Vasileios Almpanis via ltp
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Vasileios Almpanis via ltp @ 2026-02-06 12:51 UTC (permalink / raw)
  To: ltp

Hi,

during testing of the LTP pty test pty04, we observed intermittent
failures caused by unexpected IPv6 packets being received.

The test currently filters packets using ETH_P_ALL. As a result,
packets with protocols other than the expected one (e.g. IPv6) may be
received, leading to data corruption reports such as:

TFAIL: Corrupt data (max 64 of 8191 bytes shown): data[0..64] =
TFAIL: 60 00 00 00 00 24 00 01 00 00 00 00 00 00 00 00
TFAIL: 00 00 00 00 00 00 00 00 ff 02 00 00 00 00 00 00
TFAIL: 00 00 00 00 00 00 00 16 3a 00 05 02 00 00 01 00
TFAIL: 8f 00 6e 8a 00 00 00 01 04 00 00 00 ff 02 00 00

This patch series addresses the issue by selecting the protocol based
on the configured line discipline.

Patch 1 adds a compatibility definition for ETH_P_CAN to the LAPI
headers. Patch 2 updates pty04 to choose the appropriate protocol,
avoiding reception of unrelated packets.

Signed-off-by: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>

Vasileios Almpanis (2):
  add ETH_P_CAN compat macro to LAPI headers
  pty04: use the correct protocol per line discipline to avoid extra
    packets

 include/lapi/if_ether.h      |  4 ++++
 testcases/kernel/pty/pty04.c | 15 ++++++++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

-- 
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-11 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 12:51 [LTP] [PATCH 0/2] pty: use correct protocol in pty04 based on line discipline Vasileios Almpanis via ltp
2026-02-06 12:51 ` [LTP] [PATCH 1/2] add ETH_P_CAN compat macro to LAPI headers Vasileios Almpanis via ltp
2026-02-06 14:34   ` Petr Vorel
2026-02-06 12:51 ` [LTP] [PATCH 2/2] pty04: use the correct protocol per line discipline to avoid extra packets Vasileios Almpanis via ltp
2026-02-06 14:39   ` Petr Vorel
2026-02-11 16:44   ` Martin Doucha
2026-02-06 14:36 ` [LTP] [PATCH 0/2] pty: use correct protocol in pty04 based on line discipline Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox