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)
Sat, Feb 14, 11:00 PM
Unknown Object (File)
Sun, Feb 8, 11:11 AM
Unknown Object (File)
Sat, Feb 7, 7:25 PM
Unknown Object (File)
Feb 2 2026, 5:31 PM
Unknown Object (File)
Feb 2 2026, 3:07 AM
Unknown Object (File)
Feb 2 2026, 2:22 AM
Unknown Object (File)
Feb 1 2026, 11:03 PM
Unknown Object (File)
Jan 30 2026, 8:02 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