[Sipping] Re: [Sip-implementors] SIP/IPv6 torture test and possible interactionwith rfc3261 ABNF

"Jeroen van Bemmel" <jbemmel@zonnet.nl> Tue, 28 February 2006 19:55 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FEAwA-0007S2-2v; Tue, 28 Feb 2006 14:55:10 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FEAw8-0007Km-NP for sipping@ietf.org; Tue, 28 Feb 2006 14:55:08 -0500
Received: from smtp3.versatel.nl ([62.58.50.90]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1FEAw7-000877-A6 for sipping@ietf.org; Tue, 28 Feb 2006 14:55:08 -0500
Received: (qmail 30284 invoked by uid 0); 28 Feb 2006 19:55:01 -0000
Received: from ip49-113-59-81.dyndsl.versatel.nl (HELO BEMBUSTER) ([81.59.113.49]) (envelope-sender <jbemmel@zonnet.nl>) by smtp3.versatel.nl (qmail-ldap-1.03) with SMTP for < >; 28 Feb 2006 19:55:01 -0000
Message-ID: <003f01c63ca0$d84c70c0$31713b51@BEMBUSTER>
From: Jeroen van Bemmel <jbemmel@zonnet.nl>
To: "Vijay K. Gurbani" <vkg@lucent.com>, SIPPING LIST <sipping@ietf.org>
References: <44038DD1.5000704@lucent.com>
Date: Tue, 28 Feb 2006 20:54:54 +0100
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="iso-8859-1"; reply-type="original"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8b431ad66d60be2d47c7bfeb879db82c
Cc: SIP Implementors <sip-implementors@cs.columbia.edu>
Subject: [Sipping] Re: [Sip-implementors] SIP/IPv6 torture test and possible interactionwith rfc3261 ABNF
X-BeenThere: sipping@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "SIPPING Working Group \(applications of SIP\)" <sipping.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/sipping>, <mailto:sipping-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:sipping@ietf.org>
List-Help: <mailto:sipping-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/sipping>, <mailto:sipping-request@ietf.org?subject=subscribe>
Errors-To: sipping-bounces@ietf.org

Vijay,

[copy from your post ] current RFC3261 ABNF:
via-received   =  "received" EQUAL (IPv4address / IPv6address)
IPv6address    =  hexpart [ ":" IPv4address ]

IMO this is clearly a bug.

The general ABNF rules for header parameters are:
generic-param  =  token [ EQUAL gen-value ]
gen-value      =  token / host / quoted-string

The intention of the 'via-received' rule is clearly to restrict the allowed 
values of 'gen-value' by allowing only IP addresses (v4/v6). As such, its 
possible values should be a subset of those produced by the "gen-value" 
rule. However, the ":" character is not part of "token" and can therefore 
only be produced as part of "host" (i.e. between '[' ']' brackets) or as 
part of quoted-string (i.e. between '"' '"' quotes)

via-received should have been written as "host" but excluding "hostname", 
i.e.
via-received = IPv4address / IPv6reference as you stated

Historical note: RFC2543 defined it as
via-received	   = "received" "=" hostHowever, "host" was defined as
host            = hostname | IPv4addressso IPv6 addresses were not 
considered back then, and even hostnames were allowed. Considering that 
RFC3261 now defines "host" as
host             =  hostname / IPv4address / IPv6referenceit is again clear 
(and consistency mandates) that "IPv6reference" is correct

Regards,

Jeroen


----- Original Message ----- 
From: "Vijay K. Gurbani" <vkg@lucent.com>
To: "SIPPING LIST" <sipping@ietf.org>
Cc: "SIP Implementors" <sip-implementors@cs.columbia.edu>
Sent: Tuesday, February 28, 2006 12:40 AM
Subject: [Sip-implementors] SIP/IPv6 torture test and possible 
interactionwith rfc3261 ABNF


> _______________________________________________
> Sip-implementors mailing list
> Sip-implementors@cs.columbia.edu
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
> 


_______________________________________________
Sipping mailing list  https://www1.ietf.org/mailman/listinfo/sipping
This list is for NEW development of the application of SIP
Use sip-implementors@cs.columbia.edu for questions on current sip
Use sip@ietf.org for new developments of core SIP