lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #58473] Trailing dot in hostname results in extraneous


From: Mate Varga
Subject: [lwip-devel] [bug #58473] Trailing dot in hostname results in extraneous label (and corrupt packet)
Date: Mon, 8 Jun 2020 05:17:13 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.30 Safari/537.36 Edg/84.0.522.11

Follow-up Comment #3, bug #58473 (project lwip):

And yes, my original comment was incorrect. It should have been like (see the
extra zero-markers):

For example, an A query for foo.barbaz. should result in an UDP packet
fragment like
3foo6barbaz00101
(3 char long label: foo, 6 char long label: barbaz, type: 1, class 1)
Actual behavior
---------------
LWIP considers the trailing dot as a separate label with zero length.
Therefore the above example will result in the following packet fragment:
3foo6barbaz000101

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58473>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]