Page MenuHomeFreeBSD

tests/netlink: add netlink socket buffer test
ClosedPublic

Authored by glebius on Nov 9 2023, 6:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 3:50 AM
Unknown Object (File)
Tue, Nov 12, 8:31 AM
Unknown Object (File)
Tue, Nov 12, 5:26 AM
Unknown Object (File)
Thu, Nov 7, 4:41 PM
Unknown Object (File)
Mon, Oct 21, 3:35 AM
Unknown Object (File)
Oct 16 2024, 7:26 PM
Unknown Object (File)
Oct 13 2024, 11:21 AM
Unknown Object (File)
Oct 12 2024, 8:28 PM

Details

Summary

With upcoming protocol specific socket buffer for Netlink we need some
additional tests that cover basic socket operations, w/o much of actual
Netlink knowledge. Following tests are performed:

  1. Overflow. If an application keeps sending messages to the kernel,

but doesn't read out the replies, then first the receive buffer shall
fill and after that further messages from applications will be queued
on the send buffer until it is filled. After that socket operations
should block. However, reading from the receive buffer some data should
wake up the taskqueue and the send buffer should start draining again.

  1. Peek & trunc. Check that socket correctly reports amount of readable

data with MSG_PEEK & MSG_TRUNC. This typical pattern of Netlink apps.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 54648
Build 51537: arc lint + arc unit

Event Timeline

Add CMSG testing to the size test.

This revision is now accepted and ready to land.Dec 26 2023, 7:40 PM