Re: processing multiple varbinds as a blob

This is a discussion on Re: processing multiple varbinds as a blob within the SNMP Coders forums, part of the Networking and Network Related category; >>>>> On Mon, 28 Apr 2008 08:21:15 -0400, "Bell, Adam" <Adam....


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2008
Wes Hardaker
 
Posts: n/a
Default Re: processing multiple varbinds as a blob

>>>>> On Mon, 28 Apr 2008 08:21:15 -0400, "Bell, Adam" <Adam.Bell@safenet-inc.com> said:

AB> The request data structure is all the incoming data given to the
AB> processing handler. It seems to be a list of requests, each with
AB> different lists of varbinds (although mostly common to each other).

It is a list of requests, and it's normally labeled "requests"
actually.

You should actually loop through them all and they should all be
specifically targeted to that functions registered OID space.

Thus, you should be able to do what you want: collect information and
then loop through the requests and assign the values to the appropriate
varbinds in the requests list.

AB> I first thought the request->processed flag would do the trick but
AB> subsequent requests in the list could contain the vbs I need to look
AB> at.

You're actually supposed to check the processed flag and not work on the
duplicates.

--
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0