attachment-0001
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff
style="FONT: 10pt Arial; MARGIN-LEFT: 2px; MARGIN-TOP: 2px">
<DIV>Thank you Michael. I had forgotten about tag ranges. Following
the established guidelines would certainly address my concerns.</DIV>
<DIV> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">-Hugo</FONT></DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"></FONT> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff">P.S. - I apologize for the
HTML format of my messages. I didn't realize the tool I'm using is doing
it without informing me. I'll look into disabling this *feature* in my
tool.</FONT><BR><BR>>>> Michael Sweet <<A
href="mailto:mike@easysw.com">mike@easysw.com</A>> 03/15/00 11:12AM
>>><BR>[Hugo - please don't post HTML messages..]<BR><BR>Hugo Parra
wrote:<BR>> ...<BR>> assumes it's a new attribute group. But if we
allow the flexibility<BR>> that I think you're proposing, parsing an IPP
packet becomes much<BR>> more complex and dangerous. When I run into an
"unknown tag", am I<BR>> looking at ..<BR>> ...<BR><BR>But the
current specs partition the tag space clearly; all tags<BR>between 0x10 and 0xff
are *value* tags, which means they will consist<BR>of:<BR><BR>
tag<BR> name-length<BR>
[name]<BR> value-length<BR>
[value]<BR><BR>The tag 0x7f is used to introduce a 32-bit value tag.<BR><BR>For
tags below 0x10, the specs show:<BR><BR>
0x01 = operation
group<BR> 0x02
= job group<BR>
0x03 = end
group<BR> 0x04
= printer group<BR>
0x05 = unsupported
group<BR> 0x06 to 0x0f = reserved for future extension
groups<BR><BR>Based on this information a program can easily check for
valid<BR>input.<BR><BR> 1. 0x00 is
invalid<BR> 2. 0x01, 0x02, and 0x04 to 0x0f start a
group<BR> 3. 0x03 ends the IPP data
stream<BR> 4. 0x10 to 0x7e and 0x80 to 0xff start a
value<BR> 5. "0x7f aa bb cc dd" starts a value; the
actual tag number<BR> is in the next 4
bytes.<BR><BR>Anything that doesn't follow this format can be thrown
away<BR>immediately as a bad request/response.<BR><BR>--
<BR>______________________________________________________________________<BR>Michael
Sweet, Easy Software
Products
mike@easysw.com<BR>Printing Software for
UNIX
<A
href="http://www.easysw.com/">http://www.easysw.com</A><BR></DIV></BODY></HTML>