1. 16 Mar, 2017 6 commits
  2. 15 Mar, 2017 9 commits
  3. 14 Mar, 2017 3 commits
  4. 13 Mar, 2017 2 commits
  5. 10 Mar, 2017 4 commits
    • Lubomir Rintel's avatar
      ifcfg-rh: drop an unused variable · e1ea22ca
      Lubomir Rintel authored
        nms-ifcfg-rh-reader.c:497:25: error: unused variable 'local_error' [-Werror,-Wunused-variable]
                      gs_free_error GError *local_error = NULL;
                                            ^
      
      Fixes: 40e1fd95
      e1ea22ca
    • Lubomir Rintel's avatar
      build: allow longer manual page titles · e3c87e80
      Lubomir Rintel authored
      Otherwise the docbook template chops off the "NM-SETTINGS-IFCFG-RH"
      title; even in the middle of an escape sequence.
      e3c87e80
    • Thomas Haller's avatar
      platform: implement NM_LINUX_PLATFORM_GET_PRIVATE() via _NM_GET_PRIVATE_VOID() macro · 6aa4dc19
      Thomas Haller authored
      We should implement all our private-getters with the very same pattern
      (i.e. their type structure contains a field "_priv" and nm_assert()
      with a GObject type check).
      
      NM_LINUX_PLATFORM_GET_PRIVATE() was already doing all of that. Now just
      use the _NM_GET_PRIVATE_VOID() macro which formally follows the
      intended pattern.
      6aa4dc19
    • Thomas Haller's avatar
      shared: add _NM_GET_PRIVATE_VOID() macro · 7d88bd24
      Thomas Haller authored
      _NM_GET_PRIVATE() macro is used to implement a standard private-getter, but it
      requires that "self" is a pointer of either "const type *" or "type *". That
      is great in most cases, but sometimes we have predominatly self pointers of
      different type, so it would require a lot of casts.
      
      Add a different form _NM_GET_PRIVATE_VOID() where self pointer can be any
      non-const pointer and returns a non-const private pointer after casting.
      7d88bd24
  6. 09 Mar, 2017 15 commits
    • Thomas Haller's avatar
    • Beniamino Galvani's avatar
    • Beniamino Galvani's avatar
      device: reapply proxy configuration · c4ca123a
      Beniamino Galvani authored
      In order to support a reapply of proxy configuration, remember the PAC
      URL received through DHCP and merge it again with configuration from
      proxy setting on reapply.
      c4ca123a
    • Beniamino Galvani's avatar
      device: allow reapply of MTU · ad3fdcd9
      Beniamino Galvani authored
      The MTU is reapplied together with IP configuration: modify device
      subclasses to announce they support the property in
      can_reapply_change().
      ad3fdcd9
    • Beniamino Galvani's avatar
      9cc9ce4b
    • Beniamino Galvani's avatar
    • Beniamino Galvani's avatar
      platform: tests: wait for non-tentative address before adding route · 686fea65
      Beniamino Galvani authored
      Wait that the address becomes non-tentative before adding the route
      with RTA_PREFSRC.  Dummy interfaces are NOARP and thus don't do DAD,
      but the kernel sets the address as tentative for a small amount of
      time, which prevents the immediate addition of the route with
      preferred source.
      
      Fixes: 36d9e252
      686fea65
    • Thomas Haller's avatar
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      platform: fix check in NMP_CLASS_IS_VALID · 37998746
      Thomas Haller authored
      Maybe it was not wrong before, but this looks more
      correct.
      37998746
    • Thomas Haller's avatar
      2972fd55
    • Thomas Haller's avatar
      include: use double-quotes to include our own headers · 831286df
      Thomas Haller authored
      In practice, this should only matter when there are multiple
      header files with the same name. That is something we try
      to avoid already, by giving headers a distinct name.
      
      When building NetworkManager itself, we clearly want to use
      double-quotes for including our own headers.
      But we also want to do that in our public headers. For example:
      
        ./a.c
          #include <stdio.h>
          #include <nm-1.h>
          void main() {
              printf ("INCLUDED %s/nm-2.h\n", SYMB);
          }
      
        ./1/nm-1.h
          #include <nm-2.h>
      
        ./1/nm-2.h
          #define SYMB "1"
      
        ./2/nm-2.h
          #define SYMB "2"
      
      $ cc -I./2 -I./1 ./a.c
      $ ./a.out
      INCLUDED 2/nm-2.h
      
      Exceptions to this are
        - headers in "shared/nm-utils" that include <NetworkManager.h>. These
          headers are copied into projects and hence used like headers owned by
          those projects.
        - examples/C
      831286df
    • Beniamino Galvani's avatar
      device: ip-tunnel: free strings on dispose · afd1bde3
      Beniamino Galvani authored
      Fixes: 570fdce9
      afd1bde3
    • Thomas Haller's avatar
      systemd: merge branch systemd into master · fada1da8
      Thomas Haller authored
      fada1da8
    • Thomas Haller's avatar
      systemd: update code from upstream (2017-03-08) · 41eae0d5
      Thomas Haller authored
      This is a direct dump from systemd git on 2017-03-08, git commit
      37377227ff47aa88c698c4b704d68d600d695c9f.
      
      ======
      
      SYSTEMD_DIR=../systemd
      COMMIT=37377227ff47aa88c698c4b704d68d600d695c9f
      
      (
        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/extract-word.c"
      nm_copy_sd "src/basic/extract-word.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/signal-util.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-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/id128-util.c"
      nm_copy_sd "src/libsystemd/sd-id128/id128-util.h"
      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"
      41eae0d5
  7. 08 Mar, 2017 1 commit