Ethereal-dev: [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: "Neulinger, Nathan R." <nneul@xxxxxxx>
Date: Fri, 3 Dec 1999 16:03:18 -0600
It might be worthwhile to have a fake SNMP dissector enabled when the SNMP
libraries are not included. This would allow all of the other protocols that
call dissect_snmp to not have to worry about whether the SNMP library is
included in the code.

Something as simple as:

#if have_snmp
normal snmp decoder
#else
dissect_snmp
	add SNMP item to tree
	dissect_data
#endif

Additionally, would be good to have a WITH_SNMP define, so that the other
protocols don't have to check for multiple header defines.

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  nneul@xxxxxxx
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216