Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147793994
D51361.id158632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D51361.id158632.diff
View Options
diff --git a/contrib/bsnmp/snmpd/trans_lsock.c b/contrib/bsnmp/snmpd/trans_lsock.c
--- a/contrib/bsnmp/snmpd/trans_lsock.c
+++ b/contrib/bsnmp/snmpd/trans_lsock.c
@@ -395,29 +395,10 @@
* Send something
*/
static ssize_t
-lsock_send(struct tport *tp, const u_char *buf, size_t len,
+lsock_send(struct tport *tp __unused, const u_char *buf, size_t len,
struct port_input *pi)
{
- struct lsock_port *p = __containerof(tp, struct lsock_port, tport);
- struct lsock_peer *peer;
-
- if (p->type == LOCP_DGRAM_PRIV || p->type == LOCP_DGRAM_UNPRIV) {
- peer = LIST_FIRST(&p->peers);
-
- } else {
- /* search for the peer */
- LIST_FOREACH(peer, &p->peers, link)
- if (peer->input.peerlen == pi->peerlen &&
- memcmp(peer->input.peer, pi->peer, pi->peerlen) == 0)
- break;
- if (peer == NULL) {
- errno = ENOTCONN;
- return (-1);
- }
- }
-
- return (sendto(peer->input.fd, buf, len, MSG_NOSIGNAL, pi->peer,
- pi->peerlen));
+ return (sendto(pi->fd, buf, len, MSG_NOSIGNAL, pi->peer, pi->peerlen));
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 5:17 PM (2 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29677986
Default Alt Text
D51361.id158632.diff (1 KB)
Attached To
Mode
D51361: bsnmpd: fix unix/stream socket operation
Attached
Detach File
Event Timeline
Log In to Comment