1. 09 Jan, 2018 1 commit
    • Ismo Puustinen's avatar
      dns: add mechanism for propagating mDNS setting. · 25906eda
      Ismo Puustinen authored
      Update nm-policy.c and nm-dns-manager.c so that the connection-specific
      settings get propagated to DNS manger. Currently the only such value is
      the mDNS status.
      
      Add update_mdns() function to DNS plugin interface. If a DNS plugin
      supports mDNS, it can set an interface with a given index to support
      mDNS resolving or also register the current hostname.
      
      The mDNS support is currently added only to systemd-resolved DNS plugin.
      25906eda
  2. 19 Jun, 2017 2 commits
  3. 21 Nov, 2016 1 commit
  4. 04 Oct, 2016 1 commit
    • Thomas Haller's avatar
      core: refactor private data in "src" · 4d37f7a1
      Thomas Haller authored
      - use _NM_GET_PRIVATE() and _NM_GET_PRIVATE_PTR() everywhere.
      
      - reorder statements, to have GObject related functions (init, dispose,
        constructed) at the bottom of each file and in a consistent order w.r.t.
        each other.
      
      - unify whitespaces in signal and properties declarations.
      
      - use NM_GOBJECT_PROPERTIES_DEFINE() and _notify()
      
      - drop unused signal slots in class structures
      
      - drop unused header files for device factories
      4d37f7a1
  5. 17 Aug, 2016 2 commits
    • Thomas Haller's avatar
      all: cleanup includes in header files · 0bdcab10
      Thomas Haller authored
      - don't include "nm-default.h" in header files. Every source file must
        include as first header "nm-default.h", thus our headers get the
        default include already implicitly.
      
      - we don't support compiling NetworkManager itself with a C++ compiler. Remove
        G_BEGIN_DECLS/G_END_DECLS from internal headers. We do however support
        users of libnm to use C++, thus they stay in public headers.
      
      (cherry picked from commit f19aff89)
      0bdcab10
    • Thomas Haller's avatar
      all: cleanup includes in header files · f19aff89
      Thomas Haller authored
      - don't include "nm-default.h" in header files. Every source file must
        include as first header "nm-default.h", thus our headers get the
        default include already implicitly.
      
      - we don't support compiling NetworkManager itself with a C++ compiler. Remove
        G_BEGIN_DECLS/G_END_DECLS from internal headers. We do however support
        users of libnm to use C++, thus they stay in public headers.
      f19aff89
  6. 01 Jun, 2016 2 commits
    • Thomas Haller's avatar
      dns: explicitly stop DNS plugin in manager · e1d5b27c
      Thomas Haller authored
      _clear_plugin() should explicitly stop the DNS plugin, instead of just
      unreferencing it. Unreferencing does not necessarily mean, that the
      plugin will be destroyed right away.
      e1d5b27c
    • Thomas Haller's avatar
      dnsmasq: properly handling respawning of dnsmask · 2e7f4aeb
      Thomas Haller authored
      Otherwise, when killing dnsmasq it does not get respawned:
      
          dnsmasq[0x560dd7e43cf0]: dnsmasq exited normally
          dns-mgr: plugin dnsmasq child quit unexpectedly
          dns-mgr: update-dns: updating resolv.conf
          dns-mgr: config:      100 best    v4 enp0s25
          dns-mgr: config:      100 best    v6 enp0s25
          dns-mgr: config:      100 default v6 lo
          dns-mgr: config:      100 default v4 lo
          dns-mgr: update-dns: updating plugin dnsmasq
          dnsmasq[0x560dd7e43cf0]: adding nameserver '192.168.0.2@enp0s25'
          dnsmasq[0x560dd7e43cf0]: trying to update dnsmasq nameservers
          dns-mgr: update-resolv-conf: write internal file /var/run/NetworkManager/resolv.conf succeeded but don't update /etc/resolv.conf as it points to resolv.conf.nm
          dnsmasq[0x560dd7e43cf0]: dnsmasq disappeared
      
      Previously, we would create priv->dnsmasq proxy only once,
      and not respawn the process at all.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=766996
      2e7f4aeb
  7. 12 May, 2016 1 commit
  8. 21 Apr, 2016 2 commits
  9. 01 Oct, 2015 1 commit
  10. 05 Aug, 2015 1 commit
  11. 24 Jul, 2015 1 commit
    • Dan Winship's avatar
      all: rename nm-glib-compat.h to nm-glib.h, use everywhere · 3452ee2a
      Dan Winship authored
      Rather than randomly including one or more of <glib.h>,
      <glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include
      "nm-glib-compat.h" most of the time), rename nm-glib-compat.h to
      nm-glib.h, include <gio/gio.h> from there, and then change all .c
      files in NM to include "nm-glib.h" rather than including the glib
      headers directly.
      
      (Public headers files still have to include the real glib headers,
      since nm-glib.h isn't installed...)
      
      Also, remove glib includes from header files that are already
      including a base object header file (which must itself already include
      the glib headers).
      3452ee2a
  12. 16 Aug, 2014 1 commit
    • Dan Winship's avatar
      all: fix up multiple-include-guard defines · c81fb49a
      Dan Winship authored
      Previously, src/nm-ip4-config.h, libnm/nm-ip4-config.h, and
      libnm-glib/nm-ip4-config.h all used "NM_IP4_CONFIG_H" as an include
      guard, which meant that nm-test-utils.h could not tell which of them
      was being included (and so, eg, if you tried to include
      nm-ip4-config.h in a libnm test, it would fail to compile because
      nm-test-utils.h was referring to symbols in src/nm-ip4-config.h).
      
      Fix this by changing the include guards in the non-API-stable parts of
      the tree:
      
        - libnm-glib/nm-ip4-config.h remains   NM_IP4_CONFIG_H
        - libnm/nm-ip4-config.h now uses     __NM_IP4_CONFIG_H__
        - src/nm-ip4-config.h now uses       __NETWORKMANAGER_IP4_CONFIG_H__
      
      And likewise for all other headers.
      
      The two non-"nm"-prefixed headers, libnm/NetworkManager.h and
      src/NetworkManagerUtils.h are now __NETWORKMANAGER_H__ and
      __NETWORKMANAGER_UTILS_H__ respectively, which, while not entirely
      consistent with the general scheme, do still mostly make sense in
      isolation.
      c81fb49a
  13. 03 Apr, 2013 1 commit
    • Dan Winship's avatar
      dns-manager: minor cleanups · a15558da
      Dan Winship authored
      Remove the unused NMDnsPlugin::init method, some unused #includes, and
      an out-of-date comment.
      
      Use the correct macro for the default "/etc/resolv.conf" path.
      
      Simplify NMDnsManager::dispose() a bit.
      
      Make nm_dns_dnsmasq_new() return an NMDnsPlugin* rather than
      NMDnsDnsmasq*.
      a15558da
  14. 07 Feb, 2013 1 commit
    • Dan Williams's avatar
      core: track which interface an IP config came from · 778d1cf2
      Dan Williams authored
      Various bits of code want the network interface which an IP config
      came from, for example when distinguishing which interface to
      send DNS requests to when the DNS servers are link-local.  DNS
      plugins may also want this data for various reasons.
      
      So it makes sense to attach the interface name to the IP config
      object when the DNS manager gets it, so that later DNS updates
      that don't have any interface information (hostname changes, etc)
      can still generate correct DNS information.
      
      This also eliminates the "last_iface" hack, which was often
      inaccurate.
      
      It also now sends "NetworkManager" to SUSE netconfig as the
      interface name, because the DNS information being sent is already
      merged/prioritized and not specific to a network interface, so
      it's time to stop lying about where it came from.
      778d1cf2
  15. 27 Jul, 2012 1 commit
  16. 25 Aug, 2011 1 commit
  17. 13 Sep, 2010 1 commit
  18. 10 Sep, 2010 1 commit