1. 05 Jun, 2019 1 commit
  2. 04 Jun, 2019 3 commits
    • Tom Gundersen's avatar
      shared/n-dhcp4: avoid c_min() macro to work with old GCC · 6c20e802
      Tom Gundersen authored
      This is required for the CI to pass, as CentOS has a too old version
      of GCC. Ideally this patch should be dropped.
    • Tom Gundersen's avatar
      dhcp: add nettools dhcp4 client · 5596a5c6
      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.
    • Tom Gundersen's avatar
      dhcp: support notifying the client of the result of DAD · 398f3241
      Tom Gundersen authored
      The DHCP client is not meant to use the assigned address before DAD
      has completed successfully, if enabled. And if DAD fails, the server
      should be notified with a DECLINE, in order to potentially blacklist
      the address.
      Currently, none of the clients support this, but add the required
      callbacks, and allow clients to opt in if they want.
  3. 02 Jun, 2019 1 commit
  4. 31 May, 2019 1 commit
  5. 30 May, 2019 1 commit
  6. 29 May, 2019 12 commits
  7. 28 May, 2019 21 commits