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, Aug 13, 11:02 AM
Unknown Object (File)
Mon, Aug 10, 5:45 PM
Unknown Object (File)
Sat, Aug 8, 4:03 PM
Unknown Object (File)
Mon, Aug 3, 7:01 AM
Unknown Object (File)
Mon, Aug 3, 2:27 AM
Unknown Object (File)
Sun, Aug 2, 3:10 AM
Unknown Object (File)
Sat, Aug 1, 5:48 AM
Unknown Object (File)
Jul 23 2026, 5:31 PM
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 Not Applicable
Unit
Tests Not Applicable