ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [ethereal-dev] faking dissect_snmp...

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 4 Dec 1999 23:45:38 -0800
> In what state is your ASN.1 code?

It's based on the GXSNMP code (as that's GPLed), and you can:

	"open" an ASN.1 "socket" (the terms come from the GXSNMP code),
	which means handing it a buffer pointer and length, and getting
	back a "socket" corresponding to a stream from which the
	subsequent routines read data;

	read an octet from the stream, and get back either "no error" or
	"you ran out of data";

	decode some basic types.

It's enough to decode SNMP, although it doesn't handle 64-bit integral
data types.

I'll check it in now, even though nothing yet uses it.

> You might consider changing the code to use your code to do the SNMP
> dissection, and then just use the SNMP libraries to do any MIB
> extraction/parsing. That way, even without the SNMP libs, users will
> still have a useful SNMP dissector.

I was thinking the same thing.