FreeBSD Bugzilla – Attachment 209245 Details for
Bug 242056
bsnmpd: ipv4 addresses in begemotSnmpdTransInetStatus table are reversed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
bsnmpd.diff (text/plain), 828 bytes, created by
Andrey V. Elsukov
on 2019-11-19 09:44:57 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2019-11-19 09:44:57 UTC
Size:
828 bytes
patch
obsolete
>Index: contrib/bsnmp/snmpd/trans_inet.c >=================================================================== >--- contrib/bsnmp/snmpd/trans_inet.c (revision 354678) >+++ contrib/bsnmp/snmpd/trans_inet.c (working copy) >@@ -463,7 +463,7 @@ ipv4_create(struct inet_port *port, struct inet_po > if (params->addr_len != 4) > return (SNMP_ERR_INCONS_VALUE); > >- memcpy(&ip, params->addr, 4); >+ memcpy(&ip, params->addr, 4); /* network byte order */ > struct port_sock *sock = calloc(1, sizeof(struct port_sock)); > if (sock == NULL) > return (SNMP_ERR_GENERR); >@@ -477,7 +477,7 @@ ipv4_create(struct inet_port *port, struct inet_po > > sin->sin_len = sizeof(struct sockaddr_in); > sin->sin_family = AF_INET; >- sin->sin_addr.s_addr = htonl(ip); >+ sin->sin_addr.s_addr = ip; > sin->sin_port = htons(params->port); > > sock->port = port;
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 242056
: 209245