1. 28 May, 2013 2 commits
    • Dan Williams's avatar
      ifnet: track connections by UUID not conf.d net connection name · 689dadaf
      Dan Williams authored
      We'll need this for later with unsaved connections.  The ifnet
      plugin previously tracked connections by the "conn_name" which
      was derived from keys in the /etc/conf.d/net file.  These keys
      take two forms:
      
      1) interface name
      
      config_eth0=(
      "192.168.4.121/24"
      "dhcp6"
      )
      
      2) wifi SSID, either text or hex-encoded:
      
      config_myssid=("dhcp")
      config_0xab3ace=("dhcp")
      
      The conf.d net connection name is apparently usually an interface
      name, so when writing to /etc/conf.d/net the NM connection name is
      changed from eg "Ethernet connection 1" to the next available
      interface name based on the type of connection, eg "eth0".
      
      The ifnet plugin actively removed connections that were not present
      in /etc/conf.d/net during the reload_connections() call, but in the
      future we'll want to allow unsaved connections which in the case of
      ifnet clearly won't yet be written to the file.  Since only
      connections written to the file have a "conn_name", tracking
      connections by conn_name no longer works.
      689dadaf
    • Dan Williams's avatar
      settings: track whether connection is saved to disk or not · cd5d9270
      Dan Williams authored
      Use the new NMConnection 'changed' signal to mark connections
      as dirty/unsaved, and reset that when they get flushed to disk.
      Previously, the 'Updated' signal was emitted only when the
      connection was changed and flushed to disk, but now we have
      more granular needs, and the signal is emitted whenever the
      connection actually *is* changed, regardless of whether its
      flushed to disk or not.
      cd5d9270
  2. 18 May, 2013 1 commit
  3. 08 May, 2013 1 commit
    • Dan Winship's avatar
      core: use non-recursive build · c4417c71
      Dan Winship authored
      Although having different parts of NM in different subdirectories
      keeps the source tree neat, it has made the build messy, particularly
      because of cross-dependencies between the subdirs.
      
      Reorganize to build all of the pieces of the NetworkManager binary
      from src/Makefile, and only use recursive make for test programs,
      helper binaries, and plugins.
      
      As part of this, get rid of all the per-directory convenience
      libraries, and switch to building a single top-level
      libNetworkManager.la, containing everything except main.c, which all
      of the test programs can then link against.
      c4417c71
  4. 03 Apr, 2013 2 commits
  5. 28 Mar, 2013 1 commit
  6. 13 Mar, 2013 2 commits
  7. 19 Feb, 2013 1 commit
  8. 13 Feb, 2013 1 commit
    • Dan Winship's avatar
      all: remove more pointless NULL checks · 08f04466
      Dan Winship authored
      GObject creation cannot normally fail, except for types that implement
      GInitable and take a GError in their _new() method. Some NM types
      override constructor() and return NULL in some cases, but these
      generally only happen in the case of programmer error (eg, failing to
      set a mandatory property), and so crashing is reasonable (and most
      likely inevitable anyway).
      
      So, remove all NULL checks after calls to g_object_new() and its
      myriad wrappers.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=693678
      08f04466
  9. 30 Nov, 2012 5 commits
  10. 21 Nov, 2012 1 commit
  11. 14 Nov, 2012 1 commit
  12. 13 Nov, 2012 1 commit
    • Pavel Šimerda's avatar
      build: improve documentation and test configure options · faa1bcb5
      Pavel Šimerda authored
      Use --enable-doc and --enable-tests instead of --with-docs and
      --with-tests. This is consistent with other features and with
      --enable-gtk-doc option. Support current variants as fallback.
      
      Don't build tests unless --enable-tests is specified.
      faa1bcb5
  13. 05 Nov, 2012 1 commit
    • Pavel Šimerda's avatar
      build: unify NetworkManager path handling (some paths are changed) · d82669d3
      Pavel Šimerda authored
      Use autoconf/automake variables for NetworkManager paths. Use
      NetworkManager subdirectory where appropriate.
      
      Files in /var/run (or /run on some distros) are moved into a separate
      directory as is usual with other daemons. It makes the filesystem
      more readable and file prefixing unnecessary.
      
      /var/run/NetworkManager.pid -> /var/run/NetworkManager/NetworkManager.pid
      /var/run/nm-dns-dnsmasq.pid -> /var/run/NetworkManager/dnsmasq.pid
      /var/run/nm-dns-dnsmasq.conf -> /var/run/NetworkManager/dnsmasq.conf
      
      The /var/run/NetworkManager directory is created at runtime, if it doesn't
      exist.
      
      Note: Path-based security policies like SELinux and AppArmor may need to
      be adapted.
      d82669d3
  14. 31 Oct, 2012 2 commits
    • Colin Walters's avatar
      build: clean up GLib-related pkg-config usage (bgo #687218) · 1977fb6c
      Colin Walters authored
      We had separate checks for glib-2.0, gobject-2.0, gmodule-2.0, and
      gio-unix-2.0.  It doesn't make sense to link a binary against all 4
      because gio-unix-2.0 depends on glib-2.0 and gobject-2.0.  Doing this
      actually breaks things in unusual circumstances.
      
      Generally, few bits of NM actually just use glib, and not gio.  We
      might as well coalesce those requirements together, even if it means
      in some cases we "overlink".  Additionally, I chose for now to fold
      gmodule-2.0 in as well, even though many fewer programs need it.  The
      cost of overlinking is quite small.
      
      The benefit of this is less repeated junk in Makefile.am, as well as
      more centralized control over GLib.  A followup patch will allow us to
      set -DGLIB_VERSION_MIN_REQUIRED in just one place, rather than having
      to replicate it 4 times.
      
      The NM configure is still suboptimal - for example, libpolkit-1
      depends on gio-2.0, so really we should determine the compiler flags
      all in one pass.  But it doesn't matter too much for now.
      1977fb6c
    • Colin Walters's avatar
      build: remove G_DISABLE_DEPRECATED · 59f2cd0f
      Colin Walters authored
      This functionality is (mostly) obsoleted by the newer
      GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED defines.  With
      this, your build doesn't all of a sudden blow up if we deprecate
      something in GLib - you have to explicitly opt-in to the newer
      version.
      
      G_DISABLE_DEPRECATED does still apply for macros and things that can't
      take __attribute__((deprecated)), but it's not really worth the pain
      and cargo culting around just for that.
      59f2cd0f
  15. 26 Sep, 2012 1 commit
    • Dan Winship's avatar
      all: Don't use ctype.h macros · 6878d20a
      Dan Winship authored
      The ctype macros (eg, isalnum(), tolower()) are locale-dependent. Use
      glib's ASCII-only versions instead.
      
      Also, replace isascii() with g_ascii_isprint(), since isascii()
      accepts control characters, which isn't what the code wanted in any of
      the places where it was using it.
      6878d20a
  16. 15 Aug, 2012 1 commit
  17. 27 Jul, 2012 1 commit
  18. 18 May, 2012 1 commit
  19. 12 Apr, 2012 2 commits
  20. 13 Mar, 2012 1 commit
  21. 09 Mar, 2012 2 commits
    • Mu Qiao's avatar
      ifnet: remove system prefix · e7380561
      Mu Qiao authored
      As all connections are system connection so the prefix is meaningless.
      Drop it now.
      e7380561
    • Mu Qiao's avatar
      ifnet: ignore per-user connections · e3a1b6e0
      Mu Qiao authored
      Ifnet currently does not deal with user agent service. Any connection
      that comes with flagged secrets or is not system connection will be
      ignored by the plugin. Thanks to David Narvaez for his great help on
      this problem.
      e3a1b6e0
  22. 26 Feb, 2012 6 commits
  23. 13 Feb, 2012 1 commit
  24. 13 Dec, 2011 2 commits