Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5822

DHCPv6 server doesn't encode domain separator properly in search list

    • None
    • None
    • rhel-sst-virtualization-networking
    • ssg_virtualization
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • All
    • None

      What were you trying to do that didn't work?

      "If at least two domains, each consisting of multiple labels, are sourced from /etc/resolv.conf, the DHCPv6 server gets the encoding of Option 24 wrong: we get a spurious byte instead of the 0x00 separator before the next domain name."

      Please provide the package NVR for which bug is seen:

      passt-0^20230818.g0af928e-4.el9.s390x

      How reproducible:

      100%

      Steps to reproduce

      1. Host with two interfaces
      2. Set up passt interface on second interface 
            <interface type='user'>
              <mac address='52:54:00:c2:b9:67'/>
              <source dev='enc2'/>
              <ip address='172.17.2.4' family='ipv4' prefix='24'/>
              <ip address='2001:db8:ac10:fd01::20' family='ipv6'/>
              <portForward proto='tcp'>
                <range start='31339' to='41339'/>
              </portForward>
              <portForward proto='udp'>
                <range start='2025'/>
              </portForward>
              <portForward proto='tcp' address='192.168.126.48'>
                <range start='9000'/>
              </portForward>
              <model type='virtio'/>
              <backend type='passt'/>
              <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0001'/>
            </interface> 
      1. Start VM and check /etc/resolv.conf in it

      Expected results

      A 'search' line with several hosts listed, separated by space

      Actual results

      Some hosts are separated by ".\003"

       

      Upstream bug: https://bugs.passt.top/show_bug.cgi?id=75

              sbrivio@redhat.com Stefano Brivio
              smitterl@redhat.com Sebastian Mitterle
              Stefano Brivio Stefano Brivio
              Leo Fu Leo Fu
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: