- Show IPv4 port number as unsigned instead of signed in /var/log/snmpd.log. - Treat physmem as u_long, not int. This fixes hrMmemorySize over 4GB. Submitted by: ume (1) Pointy hat to: kuriyama (1)
13 lines
488 B
C
13 lines
488 B
C
Index: agent/snmp_agent.c
|
|
diff -u -p agent/snmp_agent.c.orig agent/snmp_agent.c
|
|
--- agent/snmp_agent.c.orig Thu Aug 16 22:31:40 2007
|
|
+++ agent/snmp_agent.c Fri Jan 11 13:06:27 2008
|
|
@@ -819,7 +819,7 @@ netsnmp_agent_check_packet(netsnmp_sessi
|
|
}
|
|
#ifdef USE_LIBWRAP
|
|
/* Catch udp,udp6,tcp,tcp6 transports using "[" */
|
|
- tcpudpaddr = strstr(addr_string, "[");
|
|
+ tcpudpaddr = strrchr(addr_string, '[');
|
|
if ( tcpudpaddr != 0 ) {
|
|
char sbuf[64];
|
|
char *xp;
|