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)
Sun, Sep 20, 8:01 AM
Unknown Object (File)
Sun, Sep 20, 8:01 AM
Unknown Object (File)
Sun, Sep 13, 11:26 AM
Unknown Object (File)
Mon, Sep 7, 8:45 PM
Unknown Object (File)
Sat, Sep 5, 8:01 PM
Unknown Object (File)
Fri, Sep 4, 3:59 PM
Unknown Object (File)
Tue, Sep 1, 9:45 PM
Unknown Object (File)
Aug 13 2026, 11:02 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