Re: [BEHAVE] STUN/TURN message type bits

Benny Prijono <bennylp@pjsip.org> Wed, 14 February 2007 23:06 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HHTCR-0007BK-JJ; Wed, 14 Feb 2007 18:06:07 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HHTCQ-0007BD-Jh for Behave@ietf.org; Wed, 14 Feb 2007 18:06:06 -0500
Received: from mxout-03.mxes.net ([216.86.168.178]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HHTCN-0002C0-9D for Behave@ietf.org; Wed, 14 Feb 2007 18:06:06 -0500
Received: from [192.168.0.66] (unknown [81.178.58.134]) by smtp.mxes.net (Postfix) with ESMTP id 215F651977; Wed, 14 Feb 2007 18:06:01 -0500 (EST)
Message-ID: <45D395D6.2060008@pjsip.org>
Date: Wed, 14 Feb 2007 23:05:58 +0000
From: Benny Prijono <bennylp@pjsip.org>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
To: Jonathan Rosenberg <jdrosen@cisco.com>
Subject: Re: [BEHAVE] STUN/TURN message type bits
References: <45C7A56B.5020705@pjsip.org> <45D33B1C.8020603@cisco.com>
In-Reply-To: <45D33B1C.8020603@cisco.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 39bd8f8cbb76cae18b7e23f7cf6b2b9f
Cc: Behave@ietf.org
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/behave>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
Errors-To: behave-bounces@ietf.org

Jonathan Rosenberg wrote:
> I think its wrong. The reason is that the class is only two of the 12 
> bits. So I think its:
> 
> #define IS_REQUEST(msg_type)       (((msg_type) & 0x0110) == 0x0000)
> #define IS_INDICATION(msg_type)    (((msg_type) & 0x0110) == 0x0010)
> #define IS_SUCCESS_RESP(msg_type)  (((msg_type) & 0x0110) == 0x0100)
> #define IS_ERR_RESP(msg_type)      (((msg_type) & 0x0110) == 0x0110)

thanks for answering my questions, Jonathan, and you're right with 
the bit-fields. Using 0x0110 mask rather than 0x0FF0 gives us 
possibility to have more than 16 STUN methods.


>>    0x0004  :  Send Indication
>>    0x0115  :  Data Indication
>>    0x0118  :  Connect Status Indication
> 
> Yes, the TURN values are wrong. I discussed this at the IETF meeting, 
> that the proposed bitfield approach worked well for existing STUN 
> attributes but would be wrong for the new indications that were recently 
> added to TURN. Those need to be changed in the revision of TURN.

So until the new revision is released, I think we can assume that 
these are the values (?):

     0x0014  :  Send Indication
     0x0015  :  Data Indication
     0x0018  :  Connect Status Indication


thanks
  -benny

-- 
Benny Prijono
http://www.pjsip.org

_______________________________________________
Behave mailing list
Behave@ietf.org
https://www1.ietf.org/mailman/listinfo/behave