1. 17 Dec, 2019 1 commit
  2. 18 Nov, 2019 1 commit
  3. 18 Sep, 2019 1 commit
  4. 29 Aug, 2019 1 commit
  5. 25 Jul, 2019 2 commits
  6. 05 Jul, 2019 6 commits
    • Beniamino Galvani's avatar
      dhcp: pass broadcast address to clients · 40babe1c
      Beniamino Galvani authored
      Read the broadcast address from platform and pass it to
      clients. Currently only the nettool backends uses it.
    • Beniamino Galvani's avatar
      dhcp: nettools: improve error messages · 36348c7d
      Beniamino Galvani authored
      Add the reason to error messages to make debugging easier.
      Note that n_dhcp4_client_new() also returns positive internal error
      values, so we can't use nm_utils_error_set_errno().
    • Beniamino Galvani's avatar
      dhcp: nettools: decrease initial delay · 7332c734
      Beniamino Galvani authored
      I think that artificially slowing down DHCP is not going to make users
      happier, so let's decrease it to the minimum allowed value (1 ms).
      Note that also dhclient and the internal client have it disabled. From
      the dhclient.conf man page:
       *initial-delay* parameter sets the maximum time client can wait after
       start before commencing first transmission.  According to RFC2131
       Section 4.4.1, client should wait a random time between startup and
       the actual first trans‐ mission. Previous versions of ISC DHCP client
       used to wait random time up to 5 seconds, but that was unwanted due
       to impact on startup time. As such, new versions have the default
       initial delay set to 0. To restore old behavior, please set
       initial-delay to 5.
    • Beniamino Galvani's avatar
      dhcp: nettools: support the FQDN option · 584298b7
      Beniamino Galvani authored
      Add option 81 (FQDN) when the ipv4.dhcp-fqdn property is set. We don't
      support changing the FQDN flags yet.
    • Beniamino Galvani's avatar
      dhcp: nettools: relicense as LGPL · 92a717e7
      Beniamino Galvani authored
      Acked-by: Tom Gundersen's avatarTom Gundersen <teg@jklm.no>
    • Tom Gundersen's avatar
      dhcp: add nettools dhcp4 client · 6adade6f
      Tom Gundersen authored
      This is inspired by the existing systemd integration, with a few differences:
      * This parses the WPAD option, which systemd requested, but did not use.
      * We hook into the DAD handling, only making use of the configured address
        once DAD has completed successfully, and declining the lease if it fails.
      There are still many areas of possible improvement. In particular, we need
      to ensure the parsing of all options are compliant, as n-dhcp4 treats all
      options as opaque, unlike sd-dhcp4. We probably also need to look at how
      to handle failures and retries (in particular if we decline a lease).
      We need to query the current MTU at client startu, as well as the hardware
      broadcast address. Both these are provided by the kernel over netlink, so
      it should simply be a matter of hooking that up with NM's netlink layer.
      Contribution under LGPL2.0+, in addition to stated licenses.