I made the following bug report on 2009-01-08, but didn't get a PR
number back. Did I botch this report, or does the bugs@ address
require hands-on that this report simply hasn't gotten yet?

Thanks for the clarification.

-HKS

On Thu, Jan 8, 2009 at 3:52 PM, (private) HKS <hks.priv...@gmail.com> wrote:
> snmpd on OpenBSD 4.4 Stable, i386 architecture.
>
> This bug was found by the OpenNMS team [1]. They've invited you to
> contact them for more
> details if I'm unable to provide enough info. The snmpget and
> snmpgetnext commands used
> in examples below are from the Net SNMP 5.4.2.1 package on FreeBSD 7.
>
> Essentially, snmpd seems to regard OIDs without an instance identifier
> as equivalent to
> OIDs with an instance identifier of 0.
>
> SNMP GET requests against a scalar OID with no instance identifier
> results in the agent
> apparently interpolating the .0 instance identifier:
>
> # snmpget -On -v1 -c public openbsd-host .1.3.6.1.2.1.1.2
> .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.30155.23.1
>
>
> The expected behavior (RFC 1157, 4.1.2, rule 1) is a noSuchName error
> since .1.3.6.1.2.1.1.2
> has no exact match.
>
> In a similar vein, GETNEXT requests against a single-instance scalar
> OID without an instance
> identifier return the next OID as if the .0 identifier were originally
> requested. An example of
> OpenBSD's behavior:
>
> # snmpgetnext -On -v1 -c public openbsd-host .1.3.6.1.2.1.1.1
> .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.30155.23.1
> # snmpgetnext -On -v1 -c public openbsd-host .1.3.6.1.2.1.1.1.0
> .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.30155.23.1
>
>
> Lexically, however, .1.3.6.1.2.1.1.1 is followed by .1.3.6.1.2.1.1.1.0
> - not .1.3.6.1.2.1.1.2.0. So the
> first request should have returned .1.3.6.1.2.1.1.1.0. The second was correct.
>
> An example of Net SNMP's lexically correct response:
>
> # snmpgetnext -On -v1 -c public netsnmp-host .1.3.6.1.2.1.1.1
> .1.3.6.1.2.1.1.1.0 = STRING: FreeBSD netsnmp-host 7.0-RELEASE FreeBSD
> 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
> r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
> # snmpgetnext -On -v1 -c public netsnmp-host .1.3.6.1.2.1.1.1.0
> .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.8072.3.2.8
>
>
> I hope that's clear. Please let me know if I can provide any further
> information.
>
> -HKS
>
>
> [1] - http://bugzilla.opennms.org/show_bug.cgi?id=2962
>
> dmesg follows:
> --
> OpenBSD 4.4-stable (GENERIC) #0: Wed Nov 19 12:00:19 EST 2008
>    r...@localhost:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel(R) Xeon(R) CPU 5110 @ 1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
> real mem  = 2142142464 (2042MB)
> avail mem = 2062938112 (1967MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 02/05/08, BIOS32 rev. 0 @
> 0xffe90, SMBIOS rev. 2.5 @ 0x7fb9c000 (66 entries)
> bios0: vendor Dell Inc. version "2.2.6" date 02/05/2008
> bios0: Dell Inc. PowerEdge 2950
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST BERT EINJ TCPA
> acpi0: wakeup devices PCI0(S5)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 4 (PEX2)
> acpiprt2 at acpi0: bus 5 (UPST)
> acpiprt3 at acpi0: bus 6 (DWN1)
> acpiprt4 at acpi0: bus 8 (DWN2)
> acpiprt5 at acpi0: bus 1 (PEX3)
> acpiprt6 at acpi0: bus 0 (PE2P)
> acpiprt7 at acpi0: bus 10 (PEX4)
> acpiprt8 at acpi0: bus 12 (PEX6)
> acpiprt9 at acpi0: bus 2 (SBEX)
> acpiprt10 at acpi0: bus 14 (COMP)
> acpicpu0 at acpi0: C3
> bios0: ROM list: 0xc0000/0x9000! 0xc9000/0x1000 0xca000/0x1e00
> 0xcc000/0x5e00 0xec000/0x4000!
> ipmi at mainbus0 not configured
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 5000X Host" rev 0x12
> ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0x12
> pci1 at ppb0 bus 4
> ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
> pci2 at ppb1 bus 5
> ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
> pci3 at ppb2 bus 6
> ppb3 at pci3 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
> pci4 at ppb3 bus 7
> bnx0 at pci4 dev 0 function 0 "Broadcom BCM5708" rev 0x12: irq 5
> ppb4 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01: irq 5
> pci5 at ppb4 bus 8
> ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
> pci6 at ppb5 bus 9
> ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0x12
> pci7 at ppb6 bus 1
> mfi0 at pci7 dev 0 function 0 "Symbios Logic SAS1078" rev 0x04: irq 5,
> Dell PERC 6/i integrated
> mfi0: logical drives 1, version 6.0.1-0080, 256MB RAM
> scsibus0 at mfi0: 1 targets, initiator 64
> sd0 at scsibus0 targ 0 lun 0: <DELL, PERC 6/i, 1.11> SCSI3 0/direct fixed
> sd0: 2859520MB, 44942 cyl, 511 head, 255 sec, 512 bytes/sec,
> 5856296960 sec total
> ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE x8" rev 0x12
> pci8 at ppb7 bus 10
> ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0x12
> pci9 at ppb8 bus 11
> ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0x12
> pci10 at ppb9 bus 12
> ppb10 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0x12
> pci11 at ppb10 bus 13
> pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0x12
> pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0x12
> pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0x12
> pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0x12
> pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0x12
> pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0x12
> pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0x12
> ppb11 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
> pci12 at ppb11 bus 2
> ppb12 at pci12 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
> pci13 at ppb12 bus 3
> bnx1 at pci13 dev 0 function 0 "Broadcom BCM5708" rev 0x12: irq 5
> uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: irq 11
> uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: irq 10
> uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: irq 11
> uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: irq 10
> ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: irq 11
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb13 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
> pci14 at ppb13 bus 14
> vga1 at pci14 dev 13 function 0 "ATI ES1000" rev 0x02
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> drm at vga1 unsupported
> ichpcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09: PM disabled
> pciide0 at pci0 dev 31 function 1 "Intel 6321ESB IDE" rev 0x09: DMA,
> channel 0 configured to compatibility, channel 1 configured to
> compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets, initiator 7
> cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, CD-ROM GCR-8240N, 1.10> ATAPI
> 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> pciide0: channel 1 ignored (disabled)
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> biomask fde5 netmask fde5 ttymask ffff
> mtrr: Pentium Pro MTRR support
> uhub5 at uhub0 port 1 "Dell product 0xa001" rev 2.00/0.00 addr 2
> uhidev0 at uhub5 port 1 configuration 1 interface 0 "Dell DRAC5" rev
> 1.10/0.00 addr 3
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev1 at uhub5 port 1 configuration 1 interface 1 "Dell DRAC5" rev
> 1.10/0.00 addr 3
> uhidev1: iclass 3/1
> ums0 at uhidev1
> ums0: X report 0x0002 not supported
> uhub6 at uhub0 port 5 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b addr 4
> softraid0 at root
> root on sd0a swap on sd0b dump on sd0b
> bnx1: address 00:1c:23:d5:be:16
> brgphy0 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
> bnx0: address 00:1c:23:d5:be:18
> brgphy1 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
> uhidev2 at uhub6 port 1 configuration 1 interface 0 "ATEN ATEN
> Composite" rev 1.10/1.00 addr 5
> uhidev2: iclass 3/1
> ukbd1 at uhidev2: 8 modifier keys, 6 key codes, country code 3
> wskbd2 at ukbd1 mux 1
> wskbd2: connecting to wsdisplay0
> uhidev3 at uhub6 port 1 configuration 1 interface 1 "ATEN ATEN
> Composite" rev 1.10/1.00 addr 5
> uhidev3: iclass 3/1
> ums1 at uhidev3: 5 buttons, Z dir
> wsmouse0 at ums1 mux 0
> wskbd2: disconnecting from wsdisplay0
> wskbd2 detached
> ukbd1 detached
> uhidev2 detached
> wsmouse0 detached
> ums1 detached
> uhidev3 detached
> uid 0 on /: file system full

Reply via email to