[Bug 1214385] [NEW] Stateless DHCPv6 not working in precise

Philipp Kern pkern at google.com
Tue Aug 20 13:17:56 UTC 2013


Public bug reported:

/sbin/dhclient-script in precise's isc-dhcp-client 4.1.ESV-R4-0ubuntu5.8
contains the following snippet:

    BOUND6|RENEW6|REBIND6)
        if [ -z "${new_ip6_address}" ] || [ -z "${new_ip6_prefixlen}" ]; then
            exit_with_hooks 2
        fi

        # set leased IP
        ip -6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
            dev ${interface} scope global

This assumes that the result of the DHCPv6 transaction is an address
with a prefix, which is the case for stateful DHCPv6. For stateless
DHCPv6, however, we only get additional information that's not directly
address-related. This is fixed in saucy and reads like this:

    BOUND6|RENEW6|REBIND6)
        if [ "${new_ip6_address}" ] && [ "${new_ip6_prefixlen}" ]; then
            # set leased IP
            ip -6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
                dev ${interface} scope global
        fi

It looks like the only change from the diff to the current saucy version
we need for it to work correctly.

** Affects: isc-dhcp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1214385

Title:
  Stateless DHCPv6 not working in precise

Status in “isc-dhcp” package in Ubuntu:
  New

Bug description:
  /sbin/dhclient-script in precise's isc-dhcp-client
  4.1.ESV-R4-0ubuntu5.8 contains the following snippet:

      BOUND6|RENEW6|REBIND6)
          if [ -z "${new_ip6_address}" ] || [ -z "${new_ip6_prefixlen}" ]; then
              exit_with_hooks 2
          fi

          # set leased IP
          ip -6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
              dev ${interface} scope global

  This assumes that the result of the DHCPv6 transaction is an address
  with a prefix, which is the case for stateful DHCPv6. For stateless
  DHCPv6, however, we only get additional information that's not
  directly address-related. This is fixed in saucy and reads like this:

      BOUND6|RENEW6|REBIND6)
          if [ "${new_ip6_address}" ] && [ "${new_ip6_prefixlen}" ]; then
              # set leased IP
              ip -6 addr add ${new_ip6_address}/${new_ip6_prefixlen} \
                  dev ${interface} scope global
          fi

  It looks like the only change from the diff to the current saucy
  version we need for it to work correctly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1214385/+subscriptions




More information about the foundations-bugs mailing list