1. 01 Apr, 2016 20 commits
    • Thomas Haller's avatar
      merge: merge branch 'systemd' into master · 5617cd4e
      Thomas Haller authored
      After merging https://github.com/systemd/systemd/pull/2898,
      use the LLDP defines now from public systemd API.
      5617cd4e
    • Lubomir Rintel's avatar
      manager: don't the already activated devices shouldn't be considered added · ec542df4
      Lubomir Rintel authored
      The NMSettings shouldn't generate a new default wired connection for
      devices that are being deactivated.
      ec542df4
    • Thomas Haller's avatar
      systemd: update code from upstream · 2fcd9f8b
      Thomas Haller authored
      This is a direct dump from systemd git on 2016-03-31, git commit
      1db30aeab10ca716aae877b298289fe1765f14fb.
      
      ======
      
      SYSTEMD_DIR=../systemd
      COMMIT=1db30aeab10ca716aae877b298289fe1765f14fb
      
      (
        cd "$SYSTEMD_DIR"
        git checkout "$COMMIT"
        git reset --hard
        git clean -fdx
      )
      
      git ls-files :/src/systemd/src/ | xargs -d '\n' rm -f
      
      nm_copy_sd() {
          mkdir -p "./src/systemd/$(dirname "$1")"
          cp "$SYSTEMD_DIR/$1" "./src/systemd/$1"
      }
      
      nm_copy_sd "src/basic/alloc-util.c"
      nm_copy_sd "src/basic/alloc-util.h"
      nm_copy_sd "src/basic/async.h"
      nm_copy_sd "src/basic/escape.c"
      nm_copy_sd "src/basic/escape.h"
      nm_copy_sd "src/basic/ether-addr-util.c"
      nm_copy_sd "src/basic/ether-addr-util.h"
      nm_copy_sd "src/basic/fileio.c"
      nm_copy_sd "src/basic/fileio.h"
      nm_copy_sd "src/basic/fd-util.c"
      nm_copy_sd "src/basic/fd-util.h"
      nm_copy_sd "src/basic/fs-util.c"
      nm_copy_sd "src/basic/fs-util.h"
      nm_copy_sd "src/basic/hash-funcs.c"
      nm_copy_sd "src/basic/hash-funcs.h"
      nm_copy_sd "src/basic/hashmap.c"
      nm_copy_sd "src/basic/hashmap.h"
      nm_copy_sd "src/basic/hexdecoct.c"
      nm_copy_sd "src/basic/hexdecoct.h"
      nm_copy_sd "src/basic/hostname-util.c"
      nm_copy_sd "src/basic/hostname-util.h"
      nm_copy_sd "src/basic/in-addr-util.c"
      nm_copy_sd "src/basic/in-addr-util.h"
      nm_copy_sd "src/basic/io-util.c"
      nm_copy_sd "src/basic/io-util.h"
      nm_copy_sd "src/basic/list.h"
      nm_copy_sd "src/basic/log.h"
      nm_copy_sd "src/basic/macro.h"
      nm_copy_sd "src/basic/mempool.h"
      nm_copy_sd "src/basic/mempool.c"
      nm_copy_sd "src/basic/parse-util.c"
      nm_copy_sd "src/basic/parse-util.h"
      nm_copy_sd "src/basic/path-util.c"
      nm_copy_sd "src/basic/path-util.h"
      nm_copy_sd "src/basic/prioq.h"
      nm_copy_sd "src/basic/prioq.c"
      nm_copy_sd "src/basic/random-util.c"
      nm_copy_sd "src/basic/random-util.h"
      nm_copy_sd "src/basic/refcnt.h"
      nm_copy_sd "src/basic/set.h"
      nm_copy_sd "src/basic/siphash24.c"
      nm_copy_sd "src/basic/siphash24.h"
      nm_copy_sd "src/basic/socket-util.c"
      nm_copy_sd "src/basic/socket-util.h"
      nm_copy_sd "src/basic/sparse-endian.h"
      nm_copy_sd "src/basic/stdio-util.h"
      nm_copy_sd "src/basic/string-table.c"
      nm_copy_sd "src/basic/string-table.h"
      nm_copy_sd "src/basic/string-util.c"
      nm_copy_sd "src/basic/string-util.h"
      nm_copy_sd "src/basic/strv.c"
      nm_copy_sd "src/basic/strv.h"
      nm_copy_sd "src/basic/time-util.c"
      nm_copy_sd "src/basic/time-util.h"
      nm_copy_sd "src/basic/umask-util.h"
      nm_copy_sd "src/basic/unaligned.h"
      nm_copy_sd "src/basic/utf8.c"
      nm_copy_sd "src/basic/utf8.h"
      nm_copy_sd "src/basic/util.c"
      nm_copy_sd "src/basic/util.h"
      nm_copy_sd "src/libsystemd-network/arp-util.c"
      nm_copy_sd "src/libsystemd-network/arp-util.h"
      nm_copy_sd "src/libsystemd-network/dhcp6-internal.h"
      nm_copy_sd "src/libsystemd-network/dhcp6-lease-internal.h"
      nm_copy_sd "src/libsystemd-network/dhcp6-network.c"
      nm_copy_sd "src/libsystemd-network/dhcp6-option.c"
      nm_copy_sd "src/libsystemd-network/dhcp6-protocol.h"
      nm_copy_sd "src/libsystemd-network/dhcp-identifier.c"
      nm_copy_sd "src/libsystemd-network/dhcp-identifier.h"
      nm_copy_sd "src/libsystemd-network/dhcp-internal.h"
      nm_copy_sd "src/libsystemd-network/dhcp-lease-internal.h"
      nm_copy_sd "src/libsystemd-network/dhcp-network.c"
      nm_copy_sd "src/libsystemd-network/dhcp-option.c"
      nm_copy_sd "src/libsystemd-network/dhcp-packet.c"
      nm_copy_sd "src/libsystemd-network/dhcp-protocol.h"
      nm_copy_sd "src/libsystemd-network/lldp.h"
      nm_copy_sd "src/libsystemd-network/lldp-internal.h"
      nm_copy_sd "src/libsystemd-network/lldp-neighbor.c"
      nm_copy_sd "src/libsystemd-network/lldp-neighbor.h"
      nm_copy_sd "src/libsystemd-network/lldp-network.c"
      nm_copy_sd "src/libsystemd-network/lldp-network.h"
      nm_copy_sd "src/libsystemd-network/network-internal.c"
      nm_copy_sd "src/libsystemd-network/network-internal.h"
      nm_copy_sd "src/libsystemd-network/sd-dhcp6-client.c"
      nm_copy_sd "src/libsystemd-network/sd-dhcp6-lease.c"
      nm_copy_sd "src/libsystemd-network/sd-dhcp-client.c"
      nm_copy_sd "src/libsystemd-network/sd-dhcp-lease.c"
      nm_copy_sd "src/libsystemd-network/sd-ipv4ll.c"
      nm_copy_sd "src/libsystemd-network/sd-ipv4acd.c"
      nm_copy_sd "src/libsystemd-network/sd-lldp.c"
      nm_copy_sd "src/libsystemd/sd-event/sd-event.c"
      nm_copy_sd "src/libsystemd/sd-id128/sd-id128.c"
      nm_copy_sd "src/shared/dns-domain.c"
      nm_copy_sd "src/shared/dns-domain.h"
      nm_copy_sd "src/systemd/_sd-common.h"
      nm_copy_sd "src/systemd/sd-dhcp6-client.h"
      nm_copy_sd "src/systemd/sd-dhcp6-lease.h"
      nm_copy_sd "src/systemd/sd-dhcp-client.h"
      nm_copy_sd "src/systemd/sd-dhcp-lease.h"
      nm_copy_sd "src/systemd/sd-event.h"
      nm_copy_sd "src/systemd/sd-ndisc.h"
      nm_copy_sd "src/systemd/sd-id128.h"
      nm_copy_sd "src/systemd/sd-ipv4acd.h"
      nm_copy_sd "src/systemd/sd-ipv4ll.h"
      nm_copy_sd "src/systemd/sd-lldp.h"
      2fcd9f8b
    • Lubomir Rintel's avatar
      1ab89ecf
    • Lubomir Rintel's avatar
      man/nmcli-examples: no extra breaks around listings · 159c95cb
      Lubomir Rintel authored
      Looks bad in HTML.
      159c95cb
    • Lubomir Rintel's avatar
      man/nmcli-examples: mark user input in editor · f446afbf
      Lubomir Rintel authored
      For the extra viewing pleasure.
      f446afbf
    • Lubomir Rintel's avatar
      man/nmcli-examples: wrap screen output at column 75 · 529f744e
      Lubomir Rintel authored
      This ensures it doesn't generate excessively long lines and roughly corresponds to what actually be on a screen.
      Or a teletype typewriter. In 1969.
      529f744e
    • Lubomir Rintel's avatar
      man/nmcli-examples: structure the screen examples better · 14421ac4
      Lubomir Rintel authored
      The synopsis tag is not appropriate and doesn't look well in HTML and
      inserts unnecessary line breaks in roff.
      
      The <userinput> in <screen> suits this perfectly on the other hand.
      14421ac4
    • Thomas Haller's avatar
      contrib/rpm: improve build_clean.sh to explicitly set $SOURCE_FROM_GIT · 6fb80e10
      Thomas Haller authored
      Presiouvly, when there was a tarball file in the top git-tree, it would
      have been choosen and no easy way to overwrite the decision to build
      from a git-archive. Now you can safely build current HEAD by simply calling
      
        ./contrib/fedora/rpm/build_clean.sh -g
      
      Contrary to the regular build which calls `make dist`, this doesn't
      require a clean working copy and no need to purge it with git-clean.
      6fb80e10
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      exported-object: reorder includes · 603e6dc0
      Thomas Haller authored
      603e6dc0
    • Thomas Haller's avatar
      exported-object/trivial: move code · 8fd3a2b8
      Thomas Haller authored
      8fd3a2b8
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      exported-object: inline find_dbus_property_type() in nm_exported_object_notify() · d4d72e2b
      Thomas Haller authored
      nm_exported_object_notify() is not that large of a function. Having it
      all at one place makes it clearer what it does.
      d4d72e2b
    • Thomas Haller's avatar
      exported-object: allocate temporary buffer in nm_exported_object_signal_hook() using alloca · 429cc306
      Thomas Haller authored
      The size of GValue is about 24 bytes. The number of arguments
      for a signal is also small. No problem allocating the temporary buffer
      on the stack.
      429cc306
    • Thomas Haller's avatar
      exported-object: cache signal-id for "property-changed" in InterfaceData · 05d4faf3
      Thomas Haller authored
      Instead of looking up the signal-id every time, cache it.
      g_signal_lookup() requires a g_quark_try_string() and a
      lock a lock on a global mutex.
      
      Downside is that the InterfaceData structure grows.
      05d4faf3
    • Thomas Haller's avatar
      exported-object: refactor list of interfaces from GSList to an array · 6a42e18d
      Thomas Haller authored
      NMExportedObject is the center of every D-Bus exported object in
      NetworkManager's core. It makes sense to optimize it.
      
      Transform the GSList of interfaces to be a array. The array is still
      allocated via the slice allocator (as we expect that there are only few
      types in the list). This saves the overhead to allocate a GSList item
      for each entry.
      
      Another advantage is that the interfaces list is now strongly typed
      instead of an opaque data pointer.
      6a42e18d
    • Thomas Haller's avatar
      exported-object: sort fields in emitted "property-changed" data variant · efae518e
      Thomas Haller authored
      The fields of the variant should have a consistent sort order.
      efae518e
    • Thomas Haller's avatar
      exported-object: reorder fields in NMExportedObjectPrivate struct · 2b9462f1
      Thomas Haller authored
      For now, this doesn't change the overall size of the struct.
      But with the next commits this ordering allows tighter packing.
      2b9462f1
    • Jan Alexander Steffens's avatar
      docs: fix build without ifcfg-rh · 89f3f6ad
      Jan Alexander Steffens authored
      89f3f6ad
  2. 31 Mar, 2016 7 commits
  3. 30 Mar, 2016 12 commits
  4. 29 Mar, 2016 1 commit