FreeBSD Bugzilla – Attachment 203291 Details for
Bug 236930
contrib/bsnmp/snmpd: snmp_target wrong port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
more correct patch
bsnmpd_trap_port.diff (text/plain), 634 bytes, created by
Tatiana
on 2019-04-01 11:21:54 UTC
(
hide
)
Description:
more correct patch
Filename:
MIME Type:
Creator:
Tatiana
Created:
2019-04-01 11:21:54 UTC
Size:
634 bytes
patch
obsolete
>Index: snmpd/trap.c >=================================================================== >--- snmpd/trap.c 2019-04-01 12:48:13.409550000 +0300 >+++ snmpd/trap.c 2019-04-01 12:49:41.832380000 +0300 >@@ -724,8 +724,7 @@ > sa.sin_addr.s_addr = htonl((addrs->address[0] << 24) | > (addrs->address[1] << 16) | (addrs->address[2] << 8) | > (addrs->address[3] << 0)); >- sa.sin_port = htons(addrs->address[4]) << 8 | >- htons(addrs->address[5]) << 0; >+ sa.sin_port = htons(addrs->address[4] << 8 | addrs->address[5]); > > if (connect(addrs->socket, (struct sockaddr *)&sa, sa.sin_len) == -1) { > syslog(LOG_ERR, "connect(%s,%u): %m",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236930
:
203290
| 203291