diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-07-02 22:35:19 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-09 01:05:26 +0000 |
| commit | e0f60ba041a0088a48a5064583e8c36306a8f7e3 (patch) | |
| tree | a7408f5361ad08f71f135cfe0fb1bc21f3351422 /net/unix/af_unix.c | |
| parent | af_unix: Introduce SO_INQ. (diff) | |
| download | kernel-e0f60ba041a0088a48a5064583e8c36306a8f7e3.tar.gz kernel-e0f60ba041a0088a48a5064583e8c36306a8f7e3.zip | |
selftest: af_unix: Add test for SO_INQ.
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 <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
