Re: [Agentx] Empty context in rfc2742

Magnus Fromreide <magfr@lysator.liu.se> Sun, 30 August 2009 21:41 UTC

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 C7F053A6B93 for <agentx@core3.amsl.com>; Sun, 30 Aug 2009 14:41:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.042
X-Spam-Level:
X-Spam-Status: No, score=-1.042 tagged_above=-999 required=5 tests=[AWL=1.207, BAYES_00=-2.599, HELO_EQ_SE=0.35]
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 GZ6C0-ZAQ7UT for <agentx@core3.amsl.com>; Sun, 30 Aug 2009 14:41:13 -0700 (PDT)
Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by core3.amsl.com (Postfix) with ESMTP id 880173A6909 for <agentx@ietf.org>; Sun, 30 Aug 2009 14:41:12 -0700 (PDT)
Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id B905240028; Sun, 30 Aug 2009 23:40:42 +0200 (CEST)
Received: by mail.lysator.liu.se (Postfix, from userid 1674) id ACA704003A; Sun, 30 Aug 2009 23:40:42 +0200 (CEST)
Received: from [83.252.235.163] (c83-252-235-163.bredband.comhem.se [83.252.235.163]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTP id 567B340028; Sun, 30 Aug 2009 23:40:42 +0200 (CEST)
From: Magnus Fromreide <magfr@lysator.liu.se>
To: Mark Ellison <ellison@ieee.org>
In-Reply-To: <8a0268750908301048i2b4a477dod97e582238098bbe@mail.gmail.com>
References: <1251623843.6043.6.camel@sara.home> <8a0268750908301048i2b4a477dod97e582238098bbe@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"
Date: Sun, 30 Aug 2009 23:41:16 +0200
Message-Id: <1251668476.3736.14.camel@sara.home>
Mime-Version: 1.0
X-Mailer: Evolution 2.26.3
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
Cc: agentx@ietf.org
Subject: Re: [Agentx] Empty context in rfc2742
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: Sun, 30 Aug 2009 21:41:14 -0000

On Sun, 2009-08-30 at 13:48 -0400, Mark Ellison wrote:
> On Sun, Aug 30, 2009 at 5:17 AM, Magnus Fromreide<magfr@lysator.liu.se> wrote:
> > Hello.
> >
> > According to rfc2742 agentxRegContext (octet string) is
> >     "The context in which the session supports the objects in this
> >      region.  A zero-length context indicates the default context.
> >     "
> >
> > Now I am would like to know how a zero-length context should be
> > represented?
> >
> The default context is an OCTET STRING of zero-length.

Not according to RFC 2741 6.1.1 ยง4.

In agentxRegContext we are looking a AgentX registrations and in this
domain it is explicitly stated that NON_DEFAULT_CONTEXT "" is distinct
from DEFAULT_CONTEXT but I can see no provision for the MIB to represent
that.

> How to represent this depends upon where it is being represented.
> 
> On the wire, the tag is "OCTET STRING" the length is zero(0) and the
> value occupies no octets.  There are numerous examples of OCTET
> STRINGs that may be zero-length in IETF standard MIB modules.
> 
> For example, in the UsmUserTable, the usmUserPublic may be a
> zero-length string.  In the USM MIB module, tthe usmUserPublic object
> definition shows he zero-length string as represented by the DEFVAL
> clause:  { ''H }  -- the empty string.
> 
> A zero-length string and the empty-string are synonymous.

This is about the specific case of AgentX - we are talking about a
zero-length string and a non-existing string. 

> - Mark
> http://EllisonSoftware.com