1. 12 Nov, 2018 1 commit
    • Thomas Haller's avatar
      build: avoid header conflict for <linux/if.h> and <net/if.h> with "nm-platform.h" · 37e47fbd
      Thomas Haller authored
      In the past, the headers "linux/if.h" and "net/if.h" were incompatible.
      That means, we can either include one or the other, but not both.
      This is fixed in the meantime, however the issue still exists when
      building against older kernel/glibc.
      That means, including one of these headers from a header file
      is problematic. In particular if it's a header like "nm-platform.h",
      which itself is dragged in by many other headers.
      Avoid that by not including these headers from "platform.h", but instead
      from the source files where needed (or possibly from less popular header
      Currently there is no problem. However, this allows an unknowing user to
      include <net/if.h> at the same time with "nm-platform.h", which is easy
      to get wrong.
  2. 07 Sep, 2018 1 commit
    • Thomas Haller's avatar
      all: avoid g_memdup() · 085a3694
      Thomas Haller authored
      By using nm_memdup().
      Except in shared/nm-utils/nm-compat.c, which may not include
  3. 30 Apr, 2018 1 commit
  4. 08 Jan, 2018 1 commit
  5. 06 Dec, 2017 1 commit
  6. 03 Aug, 2017 1 commit
  7. 05 Jul, 2017 2 commits
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      core: pass NMDedupMultiIndex instance to NMIP4Config and other · 89385bd9
      Thomas Haller authored
      NMIP4Config, NMIP6Config, and NMPlatform shall share one
      NMDedupMultiIndex instance.
      For that, pass an NMDedupMultiIndex instance to NMPlatform and NMNetns.
      NMNetns than passes it on to NMDevice, NMDhcpClient, NMIP4Config and NMIP6Config.
      So currently NMNetns is the access point to the shared NMDedupMultiIndex
      instance, and it gets it from it's NMPlatform instance.
      The NMDedupMultiIndex instance is really a singleton, we don't want
      multiple instances of it. However, for testing, instead of adding a
      singleton instance, pass the instance explicitly around.
  8. 14 Mar, 2017 1 commit
  9. 06 Mar, 2017 1 commit
  10. 23 Feb, 2017 1 commit
  11. 16 Jun, 2016 1 commit
    • Thomas Haller's avatar
      shared: move shared files to subdirectory "shared/nm-utils/" · 4b288136
      Thomas Haller authored
      The "shared" directory contains files that are possibly used by all components
      of NetworkManager repository.
      Some of these files are even copied as-is to other projects (VPN plugins, nm-applet)
      and used there without modification. Move those files to a separate directory.
      By moving them to a common directory, it is clearer that they belong
      together. Also, you can easier compare the copied versions to their
      original via
        $ diff -r ./shared/nm-utils/ /path/to/nm-vpn-plugin/shared/nm-utils/
  12. 17 May, 2016 1 commit