Page MenuHomeFreeBSD

tests/unix_seqpacket: provide function that returns bound & listening sock
ClosedPublic

Authored by glebius on Feb 12 2024, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 3:12 AM
Unknown Object (File)
Wed, Oct 15, 3:12 AM
Unknown Object (File)
Wed, Oct 15, 3:12 AM
Unknown Object (File)
Wed, Oct 15, 3:12 AM
Unknown Object (File)
Tue, Oct 14, 6:06 PM
Unknown Object (File)
Sun, Oct 12, 5:45 AM
Unknown Object (File)
Sat, Oct 4, 7:06 PM
Unknown Object (File)
Mon, Sep 22, 2:37 PM
Subscribers

Details

Summary

Use the function in mk_pair_of_sockets(), and in two tests -
'listen_bound' and 'connect'. While here make mk_pair_of_sockets() return
pointer to sockaddr_un instead of path. This also fixes bug of returning
pointer to stack memory of returning function. However, the only caller
that cares about this return is temporarily ifdefed out. No functional
changes intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable