From owner-freebsd-hackers Sun Feb 19 20:40:19 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id UAA28597 for hackers-outgoing; Sun, 19 Feb 1995 20:40:19 -0800 Received: from netcom19.netcom.com (hasty@netcom19.netcom.com [192.100.81.132]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id UAA28591 for ; Sun, 19 Feb 1995 20:40:18 -0800 Received: by netcom19.netcom.com (8.6.9/Netcom) id UAA15027; Sun, 19 Feb 1995 20:39:55 -0800 Date: Sun, 19 Feb 1995 20:39:55 -0800 From: hasty@netcom.com (Amancio Hasty Jr) Message-Id: <199502200439.UAA15027@netcom19.netcom.com> To: hackers@FreeBSD.org Subject: [FIX] for cmu's snmp agent Sender: hackers-owner@FreeBSD.org Precedence: bulk This patch allows the snmp agent to return the correct values for the udp values. *** snmp_vars.c Fri Jan 6 11:50:20 1995 --- snmp_vars.c.new Mon Feb 20 04:20:25 1995 *************** *** 1850,1858 **** switch (vp->magic){ case UDPINDATAGRAMS: case UDPNOPORTS: case UDPOUTDATAGRAMS: ! long_return = 0; return (u_char *) &long_return; case UDPINERRORS: long_return = udpstat.udps_hdrops + udpstat.udps_badsum + --- 1850,1863 ---- switch (vp->magic){ case UDPINDATAGRAMS: + long_return = udpstat.udps_ipackets; + return (u_char *) &long_return; case UDPNOPORTS: + + long_return = udpstat.udps_noport; + return (u_char *) &long_return; case UDPOUTDATAGRAMS: ! long_return = udpstat.udps_opackets; return (u_char *) &long_return; case UDPINERRORS: long_return = udpstat.udps_hdrops + udpstat.udps_badsum +