[DTrace-devel] [oracle/dtrace-utils] 386c73: Implement the ip provider

Kris Van Hees noreply at github.com
Mon Sep 4 19:51:09 UTC 2023


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

  Changed paths:
    M libdtrace/Build
    M libdtrace/dt_open.c
    A libdtrace/dt_prov_ip.c
    M libdtrace/dt_provider.h
    M libdtrace/ip.d
    M test/demo/ip/ipproto.d
    M test/unittest/funcs/tst.inet_ntoa.d

  Log Message:
  -----------
  Implement the ip provider

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>


  Commit: ceb1585db6e968c2ec9b55b6c44cba7851c77100
      https://github.com/oracle/dtrace-utils/commit/ceb1585db6e968c2ec9b55b6c44cba7851c77100
  Author: Kris Van Hees <kris.van.hees at oracle.com>
  Date:   2023-09-04 (Mon, 04 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

  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>


Compare: https://github.com/oracle/dtrace-utils/compare/f24cd1c7d49f...ceb1585db6e9



More information about the DTrace-devel mailing list