Re: [PATCH v1 net-next 7/7] selftest: af_unix: Add test for SO_INQ.

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2025-07-06 14:04:20
Reply to
Kuniyuki Iwashima, 2025-07-02
Kuniyuki Iwashima wrote:
Let's add a simple test to check the basic functionality of SO_INQ.

The test does the following:

  1. Create socketpair in self->fd[]
  2. Enable SO_INQ
  3. Send data via self->fd[0]
  4. Receive data from self->fd[1]
  5. Compare the SCM_INQ cmsg with ioctl(SIOCINQ)

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>

Thanks for adding test coverage
Thread (15 messages) 15 messages, 3 authors, last reply 2025-07-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help