Page MenuHomeFreeBSD

bsnmpd: fix unix/stream socket operation
ClosedPublic

Authored by glebius on Jul 16 2025, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 23, 5:31 PM
Unknown Object (File)
Thu, Jul 23, 10:19 AM
Unknown Object (File)
Thu, Jul 23, 2:08 AM
Unknown Object (File)
Tue, Jul 21, 7:26 AM
Unknown Object (File)
Sun, Jul 19, 6:36 AM
Unknown Object (File)
Sat, Jul 4, 1:06 PM
Unknown Object (File)
Sat, Jul 4, 11:29 AM
Unknown Object (File)
May 31 2026, 1:43 AM
Subscribers

Details

Summary

With new send method, that gives us directly port_input pointer, we know
the correct file descriptor right away, no matter are we in SOCK_DGRAM or
in SOCK_STREAM mode. Previously, the function tried to search for the
socket, and that was totally wrong. With several simultaneous connections
this end up with sending a reply to incorrect socket.

Diff Detail

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