Received: from localhost by CS.UTK.EDU with SMTP (cf v2.9s-UTK) id QAA00782; Mon, 5 Jun 1995 16:26:57 -0400 X-Resent-To: drums@CS.UTK.EDU ; Mon, 5 Jun 1995 16:26:56 EDT Errors-to: owner-drums@CS.UTK.EDU Received: from munnari.oz.au by CS.UTK.EDU with SMTP (cf v2.9s-UTK) id QAA00764; Mon, 5 Jun 1995 16:26:54 -0400 Received: from mundamutti.cs.mu.OZ.AU by munnari.oz.au with SMTP (5.83--+1.3.1+0.50) id AA04124; Tue, 6 Jun 1995 06:26:44 +1000 (from kre@munnari.OZ.AU) To: John Gardiner Myers Cc: drums@CS.UTK.EDU Subject: Re: address syntax In-Reply-To: Your message of "Mon, 05 Jun 1995 10:34:07 -0400." Date: Tue, 06 Jun 1995 06:26:39 +1000 Message-Id: <2205.802383999@munnari.OZ.AU> From: Robert Elz Date: Mon, 5 Jun 1995 10:34:07 -0400 (EDT) From: John Gardiner Myers Message-ID: Robert Elz writes: > The example you gave is what was intended by "heuristic" I > suspect, that is, shortcut parsing, not looking at the syntax > in detail There is nothing heuristic about such parsers. I think I'll need to find a dictionary, but I didn't think heuristic meant non-deterministic. Take a modification of Harald's example: <@[ip:v:6]:user@final.host.com> This is syntactically illegal, so one can parse it as one wishes. Ignoring the trivia that none of 'i', 'p', or 'v' are hex digits, so that one in particuilar will probably never be legal ... You're right, it is syntactically illegal now, and you can I suppose parse it however you like, but generating an "address error" message would be much more intelligent. However, the IPng group will write a new RFC (when they get around to going through all of the RFCs - or at least all of the standards RFCs, and making changes to anything that refers to "IP address" or its syntax, anywhere). When that happens that address (modulo the bogus characters) will be legal, and you'll have to parse it the way it is obviously intended. As I said last time, there are three things you could do about this.. Alter your parser now (no correct addresses will be broken) Convince the IPng group to adopt some character other than ':' Eliminate address literals from 821 & 822 so the problem goes away Perhaps there are more, but simply saying "it is illegal" will get you nowhere. kre