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; OK Thanks -----Original Message----- From: Wes Hardaker [mailto:hardaker@users.sourceforge.net] Sent: Tuesday, April 29, 2008 11:38 AM ...


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-30-2008
Bell, Adam
 
Posts: n/a
Default RE: processing multiple varbinds as a blob

OK

Thanks

-----Original Message-----
From: Wes Hardaker [mailto:hardaker@users.sourceforge.net]
Sent: Tuesday, April 29, 2008 11:38 AM
To: Bell, Adam
Cc: Wes Hardaker; net-snmp-coders@lists.sourceforge.net
Subject: Re: processing multiple varbinds as a blob

>>>>> On Tue, 29 Apr 2008 10:56:44 -0400, "Bell, Adam"

<Adam.Bell@safenet-inc.com> said:

AB> The problem I see is that the request->processed flag applied to the

AB> loop iteration "request" and each varbaind attached to it, so I can
AB> mark the request as processed but it does not directly impact the
AB> following requests in the list or the varbinds on those requests.
AB> Thus, the other varbinds that were just handled would be handled
again.

Ahh... missed something in there. I was thinking you were talking
about GET requests.

For SETs, there is a long standing issue of needing to deal with
checking individual values, acting on individual values and checking on
all values in combination (including both new and old) and then acting
on all values at once.

One way you can handle this is to actually put the for(request = ...)
loop inside a mode check. That way you can do:

case reserve2:
for(request = ...) {
check that each individual value is legal
}
check that the group as a whole is legal

case action
for(request = ...) {
maybe act on each value individually
}
put all the values into place as a group

In fact, it's this sort of fine-grained processing that made rstory
write the whole baby-steps helper...
--
Wes Hardaker
Sparta, Inc.
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.



-------------------------------------------------------------------------
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 07:03 AM.


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