Bug 42153

Summary: SNMP walk of mib-2 does not finish successfully with ucd-snmp-4.2-14 (IA64)
Product: [Retired] Red Hat Linux Reporter: Matt Domsch <matt_domsch>
Component: ucd-snmpAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: john_hull, notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-07-11 16:30:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ipAddr.c
none
tcpTable.c
none
hr_swinst.c
none
doug-snmpwalk.patch none

Description Matt Domsch 2001-05-24 15:48:00 UTC
Description of Problem:
When you ust snmpwalk to walk mib-2, the walk does not finish 
successfully.  The walk successfully returns all instances of 
ipAdEntNetMask, but it stops and does not return any instances of 
ipAdEntBcastAddr.


How Reproducible:
Always

Steps to Reproduce: 
On IA64 machine running ucd-snmp-2.4-14, do the following:
1. Make sure ucd-snmp-utils-4.2-14 is installed.
2. Make sure public has read access to mib-2 branch of the MIB tree.
3. Run the following command:
snmpwalk localhost public mib-2
4. The walk will not go past ipAdEntNetMask when it should.


Actual Results:
The walk will not go past ipAdEntNetMask when it should.

Expected Results:


Additional Information:

Comment 1 Phil Knirsch 2001-06-05 19:43:11 UTC
Fixed version should be available via Rawhide.

Read ya, Phil

Comment 2 Matt Domsch 2001-06-06 15:56:21 UTC
> From: Warzecha, Douglas 
> Sent: Wednesday, June 06, 2001 10:28 AM
>
> It looks like it fixes the 8-byte IP address issues but not 
> the SNMP walk issue.

I'm re-opening this issue.


Comment 3 Matt Domsch 2001-06-08 15:03:55 UTC
> From: Warzecha, Douglas 
> Sent: Friday, June 08, 2001 9:47 AM
>
> I found 2 more problems with SNMP walk of MIB-II on IA64.  
> I've updated DFCT33570 with 3 source files to fix the 3 
> problems I found with SNMP walk.  If Red Hat can verify the 
> fixes and add it to their ia64 patch for ucd-snmp, I'm ready 
> to test a new ucd-snmp package whenever it's ready.

I'll attach Doug's updated files.

Comment 4 Matt Domsch 2001-06-08 15:05:42 UTC
Created attachment 20615 [details]
ipAddr.c

Comment 5 Matt Domsch 2001-06-08 15:06:12 UTC
Created attachment 20616 [details]
tcpTable.c

Comment 6 Matt Domsch 2001-06-08 15:06:52 UTC
Created attachment 20617 [details]
hr_swinst.c

Comment 7 Bill Nottingham 2001-06-08 15:43:52 UTC
Um, the first patch *removes* fixes we added at their request in the last version.


Comment 8 Matt Domsch 2001-06-08 18:01:37 UTC
> From: Warzecha, Douglas 
> Sent: Friday, June 08, 2001 11:54 AM
> 
> That part of the ipAddr.c fix was wrong and caused the 
> original walk problem reported.  My original fix for ipAddr.c 
> was lost when someone reused the hard drive that had the fix. 
>  I hastily did the fix again for Ed Blazek to give to Red 
> Hat.  The second time I erroneously made a change for 
> ipAdEntBcastAddr which is not of type IpAddress and didn't 
> need a change.

Matt D asked:
> With these in place, does it all work for you now, or 
> are there still issues?

Doug responded:
> I don't know of any other issues right now.  Knock on wood.

Looks like, with the three files attached in the build, it all works properly 
now.


Comment 9 Matt Domsch 2001-07-11 16:19:25 UTC
Created attachment 23311 [details]
doug-snmpwalk.patch

Comment 10 Matt Domsch 2001-07-11 16:24:20 UTC
doug-snmpwalk.patch applies as patch 5 (after the IA-64 patch) to 4.2-16, and 
solves this issue (and fixes a mistake in ipAddr.c made in the IA-64 patch).

It also applies cleanly to 4.2.1-2.  (as written, apply with patch -p0).

-----Original Message-----
From: Warzecha, Douglas 
Sent: Wednesday, July 11, 2001 10:59 AM

As best as I can tell, the patch looks correct.  If this patch is applied as-
is, it needs to be applied after the current "ia64" patch.  If not, two of the 
fixes for 8-byte IP addresses will be lost in ipAddr.c.  This patch undoes one 
erroneous fix done to ipAddr.c by a previous patch, but this patch does not do 
the two other fixes done for 8-byte IP addresses in ipAddr.c.

Doug



Comment 11 Phil Knirsch 2001-07-19 13:43:36 UTC
OK, i have checked the patch and it looked ok, included it in the current
version and it seems to fix this and several other snmpwalk related problems.

Thanks for the patch, Doug, and thanks for reporting and tracking the state of
this problem, Matt!

Rawhide should have an updated version included real soon now. :)

Read ya, Phil

Comment 12 Matt Domsch 2001-07-19 14:43:31 UTC
Phil, can you push this and any other patches upstream?
Thanks,
Matt