1. 27 Jun, 2018 3 commits
  2. 25 Jun, 2018 1 commit
  3. 23 Jun, 2018 3 commits
    • Beniamino Galvani's avatar
      device: rework mtu priority handling · b445c59f
      Beniamino Galvani authored
      If commit_mtu() is called multiple times and dev->get_configured_mtu()
      returns @is_user_config=FALSE, only the first call changes the
      MTU. So, for example, when the parent MTU of a VLAN changes, we apply
      the new MTU only the first time.
      
      Rework the handling of MTU in NMDevice, and store the source of the
      configured MTU. When commit_mtu() is called again, we ask the subclass
      a MTU to configure and apply it only if the source has higher
      priority, or when the parent MTU changed.
      
      (cherry picked from commit 2f891723)
      b445c59f
    • Beniamino Galvani's avatar
      device: introduce mtu source · ccecc6db
      Beniamino Galvani authored
      Instead of returning a boolean @is_user_config value from
      get_configured_mtu(), return an mtu-source enum with possible values
      NONE,CONNECTION. This enum will be expanded later; for now there is no
      change in behavior.
      
      (cherry picked from commit 9f8b0697)
      ccecc6db
    • Beniamino Galvani's avatar
      device: introduce nm_device_get_configured_mtu_from_connection() · ef0b76a0
      Beniamino Galvani authored
      Deduplicate similar code from devices.
      
      (cherry picked from commit d9df1f1d)
      ef0b76a0
  4. 22 Jun, 2018 11 commits
  5. 20 Jun, 2018 8 commits
  6. 15 Jun, 2018 14 commits
    • Lubomir Rintel's avatar
      wifi: expose LastScan as milliseconds not seconds · 07fd0502
      Lubomir Rintel authored
      This doesn't wrap around in 68 years of uptime and is consistent with
      o.fd.NM.Checkpoint.Created.
      07fd0502
    • Thomas Haller's avatar
      systemd: update code from upstream (2018-06-15) · 353810cc
      Thomas Haller authored
      This is a direct dump from systemd git.
      
      ======
      
      SYSTEMD_DIR=../systemd
      COMMIT=88f375b8c28806633d22ed99f6a5f1194c78ed73
      
      (
        cd "$SYSTEMD_DIR"
        git checkout "$COMMIT"
        git reset --hard
        git clean -fdx
      )
      
      git ls-files :/src/systemd/src/ \
                   :/shared/nm-utils/siphash24.h \
                   :/shared/nm-utils/unaligned.h | \
        xargs -d '\n' rm -f
      
      nm_copy_sd() {
          mkdir -p "./src/systemd/$(dirname "$1")"
          cp "$SYSTEMD_DIR/$1" "./src/systemd/$1"
      }
      
      nm_copy_sd_shared() {
          mkdir -p "./shared/nm-utils/"
          cp "$SYSTEMD_DIR/$1" "./shared/nm-utils/${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/process-util.h"
      nm_copy_sd "src/basic/process-util.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.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/stat-util.c"
      nm_copy_sd "src/basic/stat-util.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_shared "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"
      353810cc
    • Francesco Giudici's avatar
    • Francesco Giudici's avatar
    • Francesco Giudici's avatar
      platform: allow to force the advertised auto-negotiation link value · 356addb9
      Francesco Giudici authored
      This will only work for network devices supporting the BASE-T specification.
      356addb9
    • Francesco Giudici's avatar
      platform: move link_duplex_to_string function to platform · 45170bad
      Francesco Giudici authored
      Expose it as a regular platform function: change its name
      to nm_platform_link_duplex_type_to_string().
      45170bad
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      device/wifi: use _LOGD() macros in wake_on_wlan_enable() · 8cba4d95
      Thomas Haller authored
      _LOGD() is preferred, because it includes a common prefix depending
      on the device. This macro requires, that we have a suitable @self
      variable in the local scope.
      8cba4d95
    • Alfonso Sánchez-Beato's avatar
      core: don't shutdown interfaces if they have wowlan enabled · ca3bbede
      Alfonso Sánchez-Beato authored
      This is to support the S5 case, where usually the NM process is
      stopped. If we are stopping and WoWLAN is set for the interface,
      we do not deconfigure it and keep the connection alive so we
      can receive packages that will potentially wake up the system.
      
      Note that for this work, wpa_supplicant needs to be modified too
      so it does not deconfigure the wireless interface either when
      stopped. The needed patches for wpa_supplicant can be found in
      http://lists.infradead.org/pipermail/hostap/2018-June/038644.html
      ca3bbede
    • Simon Fels's avatar
    • Simon Fels's avatar
    • Lubomir Rintel's avatar
    • Thomas Haller's avatar
      device: simplify nm_device_hash_check_invalid_keys() · 6e12e18c
      Thomas Haller authored
      Rather trivial change. Return-early, to completely handle the simpler
      case (the success case) first. In the failure case, we only need
      extra effort to generate a nice error message.
      6e12e18c
    • Thomas Haller's avatar