This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--===============1828693409==
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C75C23.BF203F70"

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C75C23.BF203F70
Content-Type: text/plain

I have started using mib2c to generate the stub code for my access routines.



I see much commonality in the bulk of the code but I have a couple
questions, if anyone could I would appreciate it.



1. Using mib2c -c mib2c.scalar.conf : works
like a champ, I have get and set working.



2. Using mib2c -c mib2c.table.conf :

Basic code is there, there are a few incorrect pointer
dereferences, but not a huge problem, I have get and set working

What is missing are the get first and next support routines
found under the next two options. (for GET_NEXT operations)

The files mib2c created we on the order of 25Kbytes of code





2. Using mib2c -c mib2c.iterate_access.conf :



3. Using mib2c -c mib2c.mfd.conf :


These worked, with the same problems described above but the amount of code
generated is on the order of 200K (yikes)





I am building a small application and with 40 tables and 100 scalars, I can
not afford the MFD approach or iterate approach. Debug is still on but the
relative size of the files compared to each other will still be dramatic.



Question 1: Can I simply lift the first and next routines from the other 2
mib2c runs and use them in the table style code? MFD seems to have done
away with the huge switch statement in the generated code.



Question 2: The code comments around the table and iterate styles have
MODE_GET: and state these handle GET_NEXT and GET_BULK when in fact they do
not.

The MODE_GET_NEXT and MODE_GET_BULK are not handled, maybe
that is why the get_first and get_next handlers for the row search are
missing too?

What to do here?



Thanks,



Adam J. Bell







The information contained in this electronic mail transmission may be privileged and confidential, and therefore, protected from disclosure. If you have received this communication in error, please notify us immediately by replying to this message and deleting it from your computer without copying or disclosing it.
------_=_NextPart_001_01C75C23.BF203F70
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

=3D"urn:schemas-microsoft-comfficeffice"=20xmlns:w=3D"u=
rn:schemas-microsoft-comffice:word"=20xmlns=3D"http://www.w3.org/TR/REC-=
html40">


-ASCII">


medium)">








nt-size:10.0pt;
font-family:Arial'>I=20have=20started=20using=20mib2c=20to=20generate =20th=
e=20stub=20code=20for=20my
access=20routines.>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>I=20see=20much=20commonality=20in=20the=20bulk=20o f=20t=
he=20code=20but=20I=20have=20a
couple=20questions,=20if=20anyone=20could=20I=20wo uld=20appreciate=20it. >>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>1.=20Using=20mib2c=20–c=20mib2c.scalar.conf=20&lt=
;MIBNAME>:<Scalar
Name>          =20wor=
ks=20like
a=20champ,=20I=20have=20get=20and=20set=20working.>>
>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>2.=20Using=20mib2c=20–c=20mib2c.table.conf=20<=
MIBNAME>:<Table
Name>  =20>>



nt-size:10.0pt;
font-family:Arial'>         &=
nbsp; =20Basic
code=20is=20there,=20there=20are=20a=20few=20incor rect=20pointer=20derefer=
ences,=20but=20not=20a=20huge
problem,=20I=20have=20get=20and=20set=20working>> p>

nt-size:10.0pt;
font-family:Arial'>         &=
nbsp; =20What
is=20missing=20are=20the=20get=20first=20and=20nex t=20support=20routines=20=
found=20under=20the=20next=20two
options.=20(for=20GET_NEXT=20operations)>>



nt-size:10.0pt;
font-family:Arial'>         &=
nbsp; =20The
files=20mib2c=20created=20we=20on=20the=20order=20 of=2025Kbytes=20of=20cod=
e>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>2.=20Using=20mib2c=20–c=20mib2c.iterate_access.co=
nf=20<MIBNAME>:<Table
Name>           =
=20>>



nt-size:10.0pt;
font-family:Arial'>3.=20Using=20mib2c=20–c=20mib2c.mfd.conf=20<MI=
BNAME>:<Table
Name>   =20>>



nt-size:10.0pt;
font-family:Arial'>These=20worked,=20with=20the=20same=20problems=20d escri=
bed=20above=20but=20the
amount=20of=20code=20generated=20is=20on=20the=20o rder=20of=20200K=20(yike=
s)>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>I=20am=20building=20a=20small=20application=20and= 20wit=
h=2040=20tables=20and=20100
scalars,=20I=20can=20not=20afford=20the=20MFD=20ap proach=20or=20iterate=20=
approach. =20Debug=20is
still=20on=20but=20the=20relative=20size=20of=20th e=20files=20compared=20t=
o=20each=20other=20will=20still
be=20dramatic.>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>Question=201:=20Can=20I=20simply=20lift=20the=20fi rst=20=
and=20next=20routines
from=20the=20other=202=20mib2c=20runs=20and=20use= 20them=20in=20the=20tabl=
e=20style=20code? =20MFD
seems=20to=20have=20done=20away=20with=20the=20hug e=20switch=20statement=20=
in=20the=20generated=20code.>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>Question=202:=20The=20code=20comments=20around=20t he=20=
table=20and=20iterate
styles=20have=20MODE_GET:=20and=20state=20these=20 handle=20GET_NEXT=20and=20=
GET_BULK=20when=20in=20fact
they=20do=20not.>>



nt-size:10.0pt;
font-family:Arial'>         &=
nbsp; =20     
The=20MODE_GET_NEXT=20and=20MODE_GET_BULK=20are=20 not=20handled,=20maybe=20=
that=20is=20why=20the
get_first=20and=20get_next=20handlers=20for=20the= 20row=20search=20are=20m=
issing=20too?>>



nt-size:10.0pt;
font-family:Arial'>         &=
nbsp;           &nb=
sp; =20What
to=20do=20here?         &nbsp=
;=20           =20<=
o>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>Thanks,>>



nt-size:10.0pt;
font-family:Arial'>>



nt-size:10.0pt;
font-family:Arial'>Adam=20J.=20Bell



>>



an=20style=3D'font-size:
12.0pt'>>








The=20information=20contained=20in=20this=20electr onic=20mail=20transmissi=
on=20may=20be=20privileged=20and=20confidential,=2 0and=20therefore,=20prot=
ected=20from=20disclosure.=20If=20you=20have=20rec eived=20this=20communica=
tion=20in=20error,=20please=20notify=20us=20immedi ately=20by=20replying=20=
to=20this=20message=20and=20deleting=20it=20from=2 0your=20computer=20witho=
ut=20copying=20or=20disclosing=20it.





------_=_NextPart_001_01C75C23.BF203F70--


--===============1828693409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============1828693409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1828693409==--