[DTrace-devel] [oracle/dtrace-utils] 3383d2: Do not use :: in IPv6 addresses without zero-colla...

Kris Van Hees noreply at github.com
Tue Sep 5 19:46:08 UTC 2023


  Branch: refs/heads/kvh/2.0-branch-dev-ip
  Home:   https://github.com/oracle/dtrace-utils
  Commit: 3383d2bdbd7940480b1f1ac44ca57e8c976077a4
      https://github.com/oracle/dtrace-utils/commit/3383d2bdbd7940480b1f1ac44ca57e8c976077a4
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-09-05 (Tue, 05 Sep 2023)

  Changed paths:
    M bpf/inet_ntoa6.S
    M test/unittest/funcs/inet_ntoa6/tst.inet_ntoa6.d
    M test/unittest/funcs/inet_ntoa6/tst.inet_ntoa6.r
    M test/unittest/funcs/inet_ntoa6/tst.inet_ntoa6.strsize_40.r

  Log Message:
  -----------
  Do not use :: in IPv6 addresses without zero-collapsing

Addresses that do not contain a sequence of two or more zero-words should
not contain the zero-collapse marker (::).  Rather than adding a special
case in the output generation code for this, this patch adds a branch to
a code block that simply outputs 8 words, separated by ':'.

The testcase has been expanded to contain at least one of each possible
case: leading collapsible zero-words, collapsible zero-words in the middle,
trailing collapsible zero-words, addresses without zero-words.

Reported-by: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>





More information about the DTrace-devel mailing list