fixing ipNetToMediaNetAddress to show IP address Resolves: #432780

This commit is contained in:
Jan Šafránek 2008-02-14 11:56:20 +00:00
parent 78c775e3c7
commit e48083ef9a
2 changed files with 7 additions and 3 deletions

View File

@ -83,9 +83,10 @@
return (u_char *) LowPhysAddr; return (u_char *) LowPhysAddr;
case IPMEDIANETADDRESS: /* also ATNETADDRESS */ case IPMEDIANETADDRESS: /* also ATNETADDRESS */
- *var_len = sizeof(uint32_t); - *var_len = sizeof(uint32_t);
+ *var_len = sizeof addr_ret; - long_return = LowAddr;
long_return = LowAddr;
- return (u_char *) & long_return; - return (u_char *) & long_return;
+ *var_len = sizeof addr_ret;
+ addr_ret = LowAddr;
+ return (u_char *) & addr_ret; + return (u_char *) & addr_ret;
case IPMEDIATYPE: case IPMEDIATYPE:
*var_len = sizeof long_return; *var_len = sizeof long_return;

View File

@ -7,7 +7,7 @@
Summary: A collection of SNMP protocol tools and libraries Summary: A collection of SNMP protocol tools and libraries
Name: net-snmp Name: net-snmp
Version: %{major_ver} Version: %{major_ver}
Release: 9%{?dist} Release: 10%{?dist}
Epoch: 1 Epoch: 1
License: BSD and CMU License: BSD and CMU
@ -384,6 +384,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%changelog %changelog
* Thu Feb 14 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-10
- fixing ipNetToMediaNetAddress to show IP address (#432780)
* Tue Feb 12 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-9 * Tue Feb 12 2008 Jan Safranek <jsafranek@redhat.com> 5.4.1-9
- introduce /etc/sysconfig/snmpd. Use it to specify snmpd command line options. - introduce /etc/sysconfig/snmpd. Use it to specify snmpd command line options.
/etc/snmp/snmpd.options is not used anymore (#431391) /etc/snmp/snmpd.options is not used anymore (#431391)