
From randy_presuhn@mindspring.com  Wed Jan 13 10:49:43 2010
Return-Path: <randy_presuhn@mindspring.com>
X-Original-To: agentx@core3.amsl.com
Delivered-To: agentx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C5F2628C134; Wed, 13 Jan 2010 10:49:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mqlTnqGeU9bQ; Wed, 13 Jan 2010 10:49:42 -0800 (PST)
Received: from elasmtp-curtail.atl.sa.earthlink.net (elasmtp-curtail.atl.sa.earthlink.net [209.86.89.64]) by core3.amsl.com (Postfix) with ESMTP id 7ED2828C111; Wed, 13 Jan 2010 10:49:42 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=Yb1dk3rBnp02JbhKopAIkvCbBAvqakOxzxIEcLZ/belASbuZjTmkUc+L4PJP6P4F; h=Received:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP;
Received: from [76.254.49.211] (helo=oemcomputer) by elasmtp-curtail.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <randy_presuhn@mindspring.com>) id 1NV8Hj-0001uX-IZ; Wed, 13 Jan 2010 13:49:39 -0500
Message-ID: <008801ca9481$9a2ccdc0$6801a8c0@oemcomputer>
From: "Randy Presuhn" <randy_presuhn@mindspring.com>
To: <agentx@ietf.org>, "Disman" <disman@ietf.org>, "LTRU Working Group" <ltru@ietf.org>
Date: Wed, 13 Jan 2010 10:52:47 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-ELNK-Trace: 4488c18417c9426da92b9037bc8bcf44d4c20f6b8d69d888494b88d665f13b40f6800d4dac5defdd281aeb94907e9363350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 76.254.49.211
Subject: [Agentx] Fw: Boilerplate changes Required for TLP 4.0
X-BeenThere: agentx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SNMP Agent Extensibility <agentx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/agentx>
List-Post: <mailto:agentx@ietf.org>
List-Help: <mailto:agentx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jan 2010 18:49:43 -0000

Hi -

Forwarded for your information.

Randy

----- Original Message ----- 
> From: "Marshall Eubanks" <tme@americafree.tv>
> To: <tlp-interest@ietf.org>
> Cc: "Trustees" <trustees@ietf.org>; "Working Group Chairs" <wgchairs@ietf.org>; "Internet Research Steering Group" <irsg@isi.edu>;
"RFC Interest" <rfc-interest@rfc-editor.org>
> Sent: Wednesday, January 13, 2010 3:47 AM
> Subject: Boilerplate changes Required for TLP 4.0
>
> Colleagues,
>
> Some concerns have been raised about tooling issues and boilerplate
> changes. At present, for example, xml2rfc is not supported, and
> because of this it is not clear when it will be possible to update it
> to support the new boilerplate.  However, Alternate Stream documents
> have been blocked for some time waiting for the new Trust Legal
> Provisions (TLP), and it was decided to unblock these documents with
> TLP 4.0 even in the absence of xml2rfc support. (There is an open call
> for volunteers to support xml2rfc, and I would encourage interested
> parties to contact Russ Housley.)
>
>      The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
>      NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and
>      "OPTIONAL" in this document are to be interpreted as described in
>      RFC 2119.
>
> If for any reason the tool of your choice has not been upgraded by the
> end of the grace period on February 1 then the following two minor
> changes need to be made to Internet-Draft boilerplates before
> submission. Note that the changes are different for IETF Stream and
> for Alternate Stream Documents. The changes for the IETF stream are
> editorial (as noted by a SHOULD in the text below) and drafts produced
> by the current tools for that stream are therefore compliant with TLP
> 4.0.  The changes for the other streams are required (as noted by a
> MUST in the text below).
>
> -----
>
> For IETF Stream Documents the following changes SHOULD be made :
>
> Change 1 :
> OLD:
> This Internet-Draft is submitted to IETF in full conformance with the
> provisions of BCP 78 and
> BCP 79.
>
> NEW:
> This Internet-Draft is submitted in full conformance with the
> provisions of BCP 78 and BCP 79.
>
> EXPLANATION:
> Dropped the words "to IETF" as there is some ambiguity with respect to
> Internet drafts that are not submitted to be published as IETF Stream
> RFCs.
>
> Change 2 :
>
> Second : Different Treatment for IETF and non-IETF stream documents
> regarding potential BSD licenses for code components.
>
> OLD:
> Code Components extracted from this document must include Simplified
> BSD License text as described in Section 4.e of the Trust Legal
> Provisions and are provided without warranty as described in the BSD
> License.
>
> NEW:
> Code Components extracted from this document must include Simplified
> BSD License text as described in Section 4.e of the Trust Legal
> Provisions and are provided without warranty as described in the
> Simplified BSD License.
>
> EXPLANATION: Introduction of the word "Simplified" at the second use
> of "BSD License" for clarity.
>
> -----
>
> For Alternate Stream Documents the following changes MUST be made
>
> Change 1 :
> OLD:
> This Internet-Draft is submitted to IETF in full conformance with the
> provisions of BCP 78 and
> BCP 79.
>
> NEW:
> This Internet-Draft is submitted in full conformance with the
> provisions of BCP 78 and BCP 79.
>
> EXPLANATION:
> Dropped the words "to IETF" as there is some ambiguity with respect to
> Internet drafts that are not submitted to be published as IETF Stream
> RFCs.
>
> Change 2 :
>
> OLD:
> Code Components extracted from this document must include Simplified
> BSD License text as described in Section 4.e of the Trust Legal
> Provisions and are provided without warranty as described in the BSD
> License.
>
> NEW: This sentence must not be included (note that this text MUST NOT
> be inserted in the document).
>
> EXPLANATION: The BSD license is not available for code components from
> Alternate Stream documents.
>
> Regards
> Marshall Eubanks
>



From solyn123@gmail.com  Tue Jan 26 20:28:22 2010
Return-Path: <solyn123@gmail.com>
X-Original-To: agentx@core3.amsl.com
Delivered-To: agentx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1E0893A6881 for <agentx@core3.amsl.com>; Tue, 26 Jan 2010 20:28:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.991
X-Spam-Level: **
X-Spam-Status: No, score=2.991 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, CHARSET_FARAWAY_HEADER=3.2, HTML_MESSAGE=0.001,  J_CHICKENPOX_83=0.6, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FV-yNsz5ltyB for <agentx@core3.amsl.com>; Tue, 26 Jan 2010 20:28:20 -0800 (PST)
Received: from mail-pz0-f178.google.com (mail-pz0-f178.google.com [209.85.222.178]) by core3.amsl.com (Postfix) with ESMTP id C3CC23A659B for <agentx@ietf.org>; Tue, 26 Jan 2010 20:28:20 -0800 (PST)
Received: by pzk8 with SMTP id 8so2184428pzk.29 for <agentx@ietf.org>; Tue, 26 Jan 2010 20:28:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=K/LRzG90x9s8SDDwYjiJozf7VqBQdycAFnraZ3o1Bok=; b=wWG/CZiCueIsC3ikX4Ee2eEMhOVJQI0GD2BCDtXms1a1Uaz0zt2iLvnup5fK49c7qK r9i610b3VET6pjdbLoG276SO6SJD6CMqivdkPsGtbYqZcwob7cpiq/aSrLRFHlOxGqM/ 0S+JjekUjRGzVcI1/tqsdu9qfni1V6kloXGyU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k6wt995xPkhYYfaJ/rxLghxBodg+eBx91xZbvm1wD8D6WkTslvnOQC4fM4Sfun4pgs s/KYR6YfnwnSFIxqiC7IZso9rl0qhvbAwPqI9unAtIp14cZqo5HQaLR9+vt5QUtUxX0/ fFSod7bO6HC9nWuwgthVSAm9RpuOnIlsdjCBg=
MIME-Version: 1.0
Received: by 10.142.61.33 with SMTP id j33mr1606692wfa.61.1264566513399; Tue,  26 Jan 2010 20:28:33 -0800 (PST)
Date: Wed, 27 Jan 2010 12:28:33 +0800
Message-ID: <8148211e1001262028p6d46e1a3p23eddb7e2a4288f7@mail.gmail.com>
From: =?GB2312?B?wdbWvsa9?= <solyn123@gmail.com>
To: agentx@ietf.org, linzhiping_zhiqi@126.com
Content-Type: multipart/alternative; boundary=001636e1f93dd379ec047e1dd510
Subject: [Agentx] How can I get the variable passed by the set command?
X-BeenThere: agentx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SNMP Agent Extensibility <agentx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/agentx>
List-Post: <mailto:agentx@ietf.org>
List-Help: <mailto:agentx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Jan 2010 04:28:22 -0000

--001636e1f93dd379ec047e1dd510
Content-Type: text/plain; charset=ISO-8859-1

Hi,all
I am using netsnmp5.5, and I get a MIB file ,using the mib2c tool I got some
.c and .h files.
Now, I want to set the variable,but I donot how netsnmp passes it.
Does the variable setted passed in reqinfo or reginfo structure?
thanks
Part of the code:
*int
handle_mySysResetNo(netsnmp_mib_handler *handler,
                          netsnmp_handler_registration *reginfo,
                          netsnmp_agent_request_info   *reqinfo,
                          netsnmp_request_info         *requests)
{
    int ret;
    int ResetNo=16;
    /* We are never called for a GETNEXT if it's registered as a
       "instance", as it's "magically" handled for us.  */

    /* a instance handler also only hands us one request at a time, so
       we don't need to loop over a list of requests; we'll only get one. */

    switch(reqinfo->mode) {

        case MODE_GET:
            snmp_set_var_typed_value(requests->requestvb, ASN_INTEGER,
                                     (u_char *)&ResetNo /* XXX: a pointer to
the scalar's data */,
                                     strlen(&ResetNo)/* XXX: the length of
the data in bytes */);
            break;

        /*
         * SET REQUEST
         *
         * multiple states in the transaction.  See:
         *
http://www.net-snmp.org/tutorial-5/toolkit/mib_module/set-actions.jpg
         */
        case MODE_SET_RESERVE1:
                /* or you could use netsnmp_check_vb_type_and_size instead
*/
            ret = netsnmp_check_vb_type(requests->requestvb, ASN_INTEGER);
            if ( ret != SNMP_ERR_NOERROR ) {
                netsnmp_set_request_error(reqinfo, requests, ret );
            }
            break;

        case MODE_SET_RESERVE2:
            /* XXX malloc "undo" storage buffer */
            if (0/* XXX if malloc, or whatever, failed: */) {
                netsnmp_set_request_error(reqinfo, requests,
SNMP_ERR_RESOURCEUNAVAILABLE);
            }
            break;

        case MODE_SET_FREE:
            /* XXX: free resources allocated in RESERVE1 and/or
               RESERVE2.  Something failed somewhere, and the states
               below won't be called. */
            break;

        case MODE_SET_ACTION:
            /* XXX: perform the value change here */
            if (0/* XXX: error? */) {
                netsnmp_set_request_error(reqinfo, requests, 0/* some error
*/);
            }
            break;

        case MODE_SET_COMMIT:
            /* XXX: delete temporary storage */
            if (/* XXX: error? */0) {
                /* try _really_really_ hard to never get to this point */
                netsnmp_set_request_error(reqinfo, requests,
SNMP_ERR_COMMITFAILED);
            }
            break;

        case MODE_SET_UNDO:
            /* XXX: UNDO and return to previous value for the object */
            if (/* XXX: error? */0) {
                /* try _really_really_ hard to never get to this point */
                netsnmp_set_request_error(reqinfo, requests,
SNMP_ERR_UNDOFAILED);
            }
            break;

        default:
            /* we should never get here, so this is a really bad error */
            snmp_log(LOG_ERR, "unknown mode (%d) in handle_mySysResetNo\n",
reqinfo->mode );
            return SNMP_ERR_GENERR;
    }

    return SNMP_ERR_NOERROR;
}*

--001636e1f93dd379ec047e1dd510
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,all<br>I am using netsnmp5.5, and I get a MIB file ,using the mib2c tool=
 I got some .c and .h files.<br>Now, I want to set the variable,but I donot=
 how netsnmp passes it.<br>Does the variable setted passed in reqinfo or re=
ginfo structure?<br>
thanks<br>Part of the code:<br><b style=3D"color: rgb(0, 0, 0);">int<br>han=
dle_mySysResetNo(netsnmp_mib_handler *handler,<br>=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 netsnmp_handler_registr=
ation *reginfo,<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 netsnmp_agent_request_info=A0=A0 *reqinfo,<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 netsnmp_request_info=A0=A0=A0=A0=A0=A0=A0=A0 *requests)<br>{<br>=A0=A0=A0 =
int ret;<br>=A0=A0=A0 int ResetNo=3D16;<br><span style=3D"color: rgb(51, 10=
2, 255);">=A0=A0=A0 /* We are never called for a GETNEXT if it&#39;s regist=
ered as a</span><br style=3D"color: rgb(51, 102, 255);">
<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0 &quot;instance=
&quot;, as it&#39;s &quot;magically&quot; handled for us.=A0 */</span><br s=
tyle=3D"color: rgb(51, 102, 255);"><br style=3D"color: rgb(51, 102, 255);">=
<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0 /* a instance handler a=
lso only hands us one request at a time, so</span><br style=3D"color: rgb(5=
1, 102, 255);">
<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0 we don&#39;t n=
eed to loop over a list of requests; we&#39;ll only get one. */</span><br>=
=A0=A0=A0 <br>=A0=A0=A0 switch(reqinfo-&gt;mode) {<br><br>=A0=A0=A0=A0=A0=
=A0=A0 case MODE_GET:<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 snmp_set_var_typ=
ed_value(requests-&gt;requestvb, ASN_INTEGER,<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 (u_char *)&amp;ResetNo /* XXX: a pointer =
to the scalar&#39;s data */,<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 strlen(&=
amp;ResetNo)/* XXX: the length of the data in bytes */);<br>=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 break;<br>
<br>=A0=A0=A0=A0<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0 /*</spa=
n><br style=3D"color: rgb(51, 102, 255);"><span style=3D"color: rgb(51, 102=
, 255);">=A0=A0=A0=A0=A0=A0=A0=A0 * SET REQUEST</span><br style=3D"color: r=
gb(51, 102, 255);"><span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=
=A0=A0=A0=A0 *</span><br style=3D"color: rgb(51, 102, 255);">
<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0=A0=A0 * multip=
le states in the transaction.=A0 See:</span><br style=3D"color: rgb(51, 102=
, 255);"><span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0=A0=A0=
 * <a href=3D"http://www.net-snmp.org/tutorial-5/toolkit/mib_module/set-act=
ions.jpg">http://www.net-snmp.org/tutorial-5/toolkit/mib_module/set-actions=
.jpg</a></span><br style=3D"color: rgb(51, 102, 255);">
<span style=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0=A0=A0 */</span=
><br>=A0=A0=A0=A0=A0=A0=A0 case MODE_SET_RESERVE1:<br>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0<span style=3D"color: rgb(51, 102, 255);">=A0 /* or yo=
u could use netsnmp_check_vb_type_and_size instead */</span><br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ret =3D netsnmp_check_vb_type(requests-&g=
t;requestvb, ASN_INTEGER);<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if ( ret !=
=3D SNMP_ERR_NOERROR ) {<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 n=
etsnmp_set_request_error(reqinfo, requests, ret );<br>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 }<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;<br>
<br>=A0=A0=A0=A0=A0=A0=A0 case MODE_SET_RESERVE2:<br>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0<span style=3D"color: rgb(51, 102, 255);"> /* XXX malloc &quot;=
undo&quot; storage buffer */</span><br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if=
 (0/* XXX if malloc, or whatever, failed: */) {<br>=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 netsnmp_set_request_error(reqinfo, requests, SNMP_ERR=
_RESOURCEUNAVAILABLE);<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 }<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 br=
eak;<br><br>=A0=A0=A0=A0=A0=A0=A0 case MODE_SET_FREE:<br>=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0<span style=3D"color: rgb(51, 102, 255);"> /* XXX: free reso=
urces allocated in RESERVE1 and/or</span><br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 RESERVE2.=A0 Something failed somewhere, and the states<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 below won&#39;t be called. */<br=
>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;<br><br>=A0=A0=A0=A0=A0=A0=A0 case=
 MODE_SET_ACTION:<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<span style=3D"color: rg=
b(51, 102, 255);">=A0 /* XXX: perform the value change here */</span><br>=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (0/* XXX: error? */) {<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 netsnmp_set_request_error(req=
info, requests, 0/* some error */);<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 }<=
br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;<br><br>=A0=A0=A0=A0=A0=A0=A0 ca=
se MODE_SET_COMMIT:<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 /<span style=3D"co=
lor: rgb(51, 102, 255);">* XXX: delete temporary storage */</span><br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (/* XXX: error? */0) {<br>=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <span style=3D"color: rgb(51, 102, 255);"=
>/* try _really_really_ hard to never get to this point */</span><br>=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 netsnmp_set_request_error(reqinfo, =
requests, SNMP_ERR_COMMITFAILED);<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 }<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 br=
eak;<br><br>=A0=A0=A0=A0=A0=A0=A0 case MODE_SET_UNDO:<br>=A0=A0=A0<span sty=
le=3D"color: rgb(51, 102, 255);">=A0=A0=A0=A0=A0=A0=A0=A0 /* XXX: UNDO and =
return to previous value for the object */</span><br>=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 if (/* XXX: error? */0) {<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<span style=3D"color: rgb(51, =
102, 255);"> /* try _really_really_ hard to never get to this point */</spa=
n><br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 netsnmp_set_request_err=
or(reqinfo, requests, SNMP_ERR_UNDOFAILED);<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 }<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 break;<br><br>=A0=A0=A0=A0=A0=A0=A0 defau=
lt:<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<span style=3D"color: rgb(51, 102, 255=
);">=A0 /* we should never get here, so this is a really bad error */</span=
><br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 snmp_log(LOG_ERR, &quot;unknown mode=
 (%d) in handle_mySysResetNo\n&quot;, reqinfo-&gt;mode );<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return SNMP_ERR_GENERR;<br>=A0=A0=A0 }<br=
><br>=A0=A0=A0 return SNMP_ERR_NOERROR;<br>}</b><br><br>

--001636e1f93dd379ec047e1dd510--

From magfr@lysator.liu.se  Tue Jan 26 22:09:50 2010
Return-Path: <magfr@lysator.liu.se>
X-Original-To: agentx@core3.amsl.com
Delivered-To: agentx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DF8633A69B9 for <agentx@core3.amsl.com>; Tue, 26 Jan 2010 22:09:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.349
X-Spam-Level: 
X-Spam-Status: No, score=-1.349 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_SE=0.35, J_CHICKENPOX_23=0.6, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w3A-aEMFwm1E for <agentx@core3.amsl.com>; Tue, 26 Jan 2010 22:09:48 -0800 (PST)
Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by core3.amsl.com (Postfix) with ESMTP id EEDEA3A690C for <agentx@ietf.org>; Tue, 26 Jan 2010 22:09:47 -0800 (PST)
Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 581A240004; Wed, 27 Jan 2010 07:08:17 +0100 (CET)
Received: by mail.lysator.liu.se (Postfix, from userid 1674) id 4DA4E4000A; Wed, 27 Jan 2010 07:08:17 +0100 (CET)
Received: from [83.252.226.202] (c83-252-226-202.bredband.comhem.se [83.252.226.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTP id D159B40004; Wed, 27 Jan 2010 07:08:16 +0100 (CET)
From: Magnus Fromreide <magfr@lysator.liu.se>
To: =?UTF-8?Q?=E6=9E=97=E5=BF=97=E5=B9=B3?= <solyn123@gmail.com>
In-Reply-To: <8148211e1001262028p6d46e1a3p23eddb7e2a4288f7@mail.gmail.com>
References: <8148211e1001262028p6d46e1a3p23eddb7e2a4288f7@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Date: Wed, 27 Jan 2010 07:09:57 +0100
Message-ID: <1264572597.3303.3.camel@sara.home>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.2 
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
Cc: agentx@ietf.org, linzhiping_zhiqi@126.com
Subject: Re: [Agentx] How can I get the variable passed by the set command?
X-BeenThere: agentx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SNMP Agent Extensibility <agentx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/agentx>
List-Post: <mailto:agentx@ietf.org>
List-Help: <mailto:agentx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/agentx>, <mailto:agentx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 27 Jan 2010 06:09:50 -0000

This list is for discussion of the AgentX protocol.

Your question is about net-snmp usage.

Please take this question to a net-snmp list.

/MF

On Wed, 2010-01-27 at 12:28 +0800, 林志平 wrote:
> Hi,all
> I am using netsnmp5.5, and I get a MIB file ,using the mib2c tool I
> got some .c and .h files
> ...

