- 05 Apr, 2016 5 commits
-
-
Lubomir Rintel authored
-
Lubomir Rintel authored
-
Beniamino Galvani authored
-
Thomas Haller authored
Build the sources in order so that files that depend on other files are build after the files they depend on.
-
Thomas Haller authored
We know that this isn't going to fail. No need to check every time.
-
- 04 Apr, 2016 25 commits
-
-
Lubomir Rintel authored
If the manager removes the device, the IP config objects must be cleared. The reason is that NMPolicy registers to the IP config changed signal and passes these object on to NMDnsManager. If the INTERNAL_DEVICE_REMOVED signal is emited with IP configuration object pending, those objects will be leaked. This partly redoes commit f72816bf, which was reverted. Co-Authored-By:
Thomas Haller <thaller@redhat.com> https://bugzilla.gnome.org/show_bug.cgi?id=764483
-
-
Thomas Haller authored
Free the error via gs_free_error and create separate instances.
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
We want to unregister the signals at cleanup time via g_signal_handlers_disconnect_by_data(). This saves us from storing the signal handler id or by naming the function explicitly via g_signal_handlers_disconnect_by_func(). However, the registered user-data @self is a public pointer. That is ugly, because potentially another component could register a signal with passing the public @self pointer as user-data. Although that doesn't currently happen, it is more correct to register with a private pointer to avoid this case altogether.
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
Instead of a G_TYPE_INSTANCE_GET_PRIVATE() call every time, fetching the private data becomes a pointer dereference. As only one instance of NMPolicy exists, this costs us only one additional pointer of memory.
-
Thomas Haller authored
No need to track the signal id of the device. We unsubscribe all devices together, hence we can just use g_signal_handlers_disconnect_by_data().
-
Thomas Haller authored
-
Thomas Haller authored
-
Beniamino Galvani authored
Software devices created by NM should be kept up when quitting so that they can be assumed upon restart. But now we consider devices created by NM (those with the @is_nm_owned flag) not capable of assuming connections and therefore we tear them down and deconfigure when quitting. Change this and ignore @is_nm_owned when deciding if a device can be re-assumed.
-
Thomas Haller authored
-
Thomas Haller authored
-
Lubomir Rintel authored
This doesn't unexport the connection on disconnect (as opposed to device removal). This reverts commit f72816bf.
-
Lubomir Rintel authored
First let the device know it's being removed soon so that it has a chance to clean up the IP configuration early. If the manager removes the device fist, the policy never learns of config removal and doesn't unhook it from the DNS manager resulting in a IPConfig leak and possible wrong DNS configuration in effect. Also adjust the route manager to skip over devices without IP configuration when determining the best connection; it is perhaps just due to being removed. https://bugzilla.gnome.org/show_bug.cgi?id=764483
-
Thomas Haller authored
Later in NMDevice's rdisc_config_changed(), we already reject routes with plen==0. Just do it earlier. We would however not reject bogus routes with a prefix larger then 128. That would later lead to an error when trying to add such a route to the kernel.
-
Thomas Haller authored
Don't use memset() and set the fields afterwards. Instead use designated initializers. Also, move the temporary variables closer to where they are used.
-
- 03 Apr, 2016 3 commits
-
-
Beniamino Galvani authored
The option forces the use of TCP for DNS resolutions.
-
Thomas Haller authored
-
Thomas Haller authored
Fixes: f76aa4f7
-
- 01 Apr, 2016 7 commits
-
-
Thomas Haller authored
-
Thomas Haller authored
Use NM_GOBJECT_PROPERTIES_DEFINE() and _notify() function.
-
Thomas Haller authored
When the user neither specifies SOURCE or SOURCE_FROM_GIT, we first want to detect a tarball in the current directory, and as second fallback to SOURCE_FROM_GIT=1. If either SOURCE or SOURCE_FROM_GIT is set, we want to do that and not detect anything. The logic was wrong.
-
Thomas Haller authored
After merging https://github.com/systemd/systemd/pull/2898, use the LLDP defines now from public systemd API.
-
Lubomir Rintel authored
The NMSettings shouldn't generate a new default wired connection for devices that are being deactivated.
-
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"
-
Lubomir Rintel authored
-