Ethereal-dev: Re: [ethereal-dev] Re: Ethereal 0.8.5 and earlier fail with ucd-snmp 4.0.1-4

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: Thu, 6 Apr 2000 21:45:10 -0700
> You should be able to do both. Add the function again so it's in the
> library, but leave the marco there. New compiles should use the macro
> and after a few version, remove the function again.

...as long as you make sure that everybody who builds a shared library
without the function bumps the major version numbers, so that any
program built with the old library won't use the new library.  (It'd be
even better if there were some way to arrange that only programs built
with the old library that don't depend on interfaces deleted or changed
in a binary-incompatible fashion in the new library; I don't know if
anybody has any library "signature" mechanism that supports that.)

I'm not sure the function, which would just be

	void
	snmp_set_full_objid(int x)
	{
		ds_set_boolean(DS_LIBRARY_ID, DS_LIB_PRINT_FULL_OID, x);
	}

would take much extra memory, though; calls to the routine itself would
probably take less memory, as they'd pass two fewer arguments.