Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 1995 20:39:55 -0800
From:      hasty@netcom.com (Amancio Hasty Jr)
To:        hackers@FreeBSD.org
Subject:   [FIX] for cmu's snmp agent
Message-ID:  <199502200439.UAA15027@netcom19.netcom.com>

next in thread | raw e-mail | index | archive | help

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 +



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502200439.UAA15027>