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)
Wed, Jan 21, 1:07 AM
Unknown Object (File)
Dec 24 2025, 3:48 PM
Unknown Object (File)
Dec 20 2025, 2:49 AM
Unknown Object (File)
Dec 18 2025, 3:53 PM
Unknown Object (File)
Dec 11 2025, 4:45 PM
Unknown Object (File)
Dec 9 2025, 1:15 PM
Unknown Object (File)
Nov 29 2025, 2:18 PM
Unknown Object (File)
Nov 26 2025, 7:20 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 Not Applicable
Unit
Tests Not Applicable