"Vijay K. Gurbani" <[EMAIL PROTECTED]> wrote: > Frank Shearar wrote: > > > The RNID stack doesn't allow IPv6 stuff yet because of a limit of the > > socket library it uses, but it does support IPv6 addresses. > > Does it parse the received with the brackets as well as without?
*cough* It does now. Prior, it'd reject such messages with a useful Reason-Phrase in the response. (The stack's not very "liberal in what you accept".) > > It's not onerous to the developer to use IPv6 addresses in the > > received param (i.e., to leave out the []s), and as Adam Roach > > pointed out, the grammar's unambiguous. > > Adam correctly points out that not having the port number in the > received parameter makes this problem a little easier to deal with. > However, there have been a couple of posts on the list that > point out a bug in the 3261 ABNF. Please see > > http://www1.ietf.org/mail-archive/web/sipping/current/msg10788.html > http://www1.ietf.org/mail-archive/web/sipping/current/msg10373.html Yes, and when I wrote my Via parsing routines it struck me that this is one of the few (maybe even the only) place where IPv6 ADDRESSES are used instead of REFERENCES. But as Jeroen points out (in the latter link) we'd want to quote the reference, so we'd have ';received="[::1]"'. I guess it's cleaner from an implementation point of view, but it is uglier from an aesthetic point of view. As Pekka Pessi points out though, RFC 3261 is written, so any SIP stack that implements it will have to accept IPv6 addresses anyway. > It would be nice if we could reconcile this minor issue. As you say, at the least it'd be good to see a torture test showing that a stack can handle a reference in the "received" parameter. Something that says 'treat an IPv6 reference in a "received" parameter as though it was an IPv6 address, i.e., strip the []s from the gen-value before you parse it.' frank _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
