NetworkManager/libnm-util
Thomas Haller 2f67105a91 libnm-util: remove assert to nm_utils_ip4_netmask_to_prefix
Commit 240c92ddb5 added an assert
to check that the input netmask is valid. Revert that commit for
the most part, some changes to the test function are not reverted.

We don't want to assert for a valid netmask, because it's
common to read the netmask from (untrusted) user input, so we
don't want to assert against it.

The caller *could* validate the netmask from untrusted sources, but
with the assert in place it cannot validate it in the most obvious way:

    prefix = nm_utils_ip4_netmask_to_prefix (netmask);
    if (netmask != nm_utils_ip4_prefix_to_netmask (prefix))
        goto fail;

Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-03-14 16:55:51 +01:00
..
tests libnm-util: remove assert to nm_utils_ip4_netmask_to_prefix 2014-03-14 16:55:51 +01:00
COPYING doc: fix FSF address (bgo #575625) 2009-09-10 21:03:30 -04:00
crypto.c libnm-util: free temporary decoded base64 data when parsing OpenSSL key files 2013-03-08 09:27:51 -06:00
crypto.h libnm-util: recognize PKCS#8 private keys and check passwords (bgo #649326) 2011-05-13 14:22:06 -05:00
crypto_gnutls.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05:00
crypto_nss.c all: remove pointless NULL checks 2013-02-13 13:38:13 -05:00
libnm-util.pc.in libnm-glib,libnm-util: -glib requires -util, -util requires NetworkManager 2013-03-14 10:23:19 -05:00
libnm-util.ver test: fix failure in make check due to invalid sorting of libnm-util/libnm-util.ver 2014-03-06 20:09:45 +01:00
Makefile.am libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-connection.c core: add 'type' and 'id' property for NMActiveConnection (rh #1061822) 2014-03-05 16:17:13 +01:00
nm-connection.h core: add 'type' and 'id' property for NMActiveConnection (rh #1061822) 2014-03-05 16:17:13 +01:00
nm-param-spec-specialized.c trivial: whitespace fix 2013-11-07 21:32:08 +01:00
nm-param-spec-specialized.h Rename private nm_* functions to _nm_* 2008-08-26 09:34:31 +00:00
nm-setting-8021x.c libnm-util: add *_remove_*_by_value() functions for '802-1x' setting 2014-02-28 10:38:53 +01:00
nm-setting-8021x.h libnm-util: add *_remove_*_by_value() functions for '802-1x' setting 2014-02-28 10:38:53 +01:00
nm-setting-adsl.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-adsl.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bluetooth.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-bluetooth.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-bond.c docs: use %TRUE, %FALSE macros instead of plain TRUE, FALSE values for gtkdoc 2014-02-24 17:00:39 +01:00
nm-setting-bond.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-bridge-port.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-bridge-port.h libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting-bridge.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-bridge.h libnm-util: add Since tags to new functions and properties 2013-02-22 08:34:06 -06:00
nm-setting-cdma.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-cdma.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-connection.c libnm-util: add *_remove_*_by_value() functions for 'connection' setting 2014-02-28 10:39:09 +01:00
nm-setting-connection.h libnm-util: add *_remove_*_by_value() functions for 'connection' setting 2014-02-28 10:39:09 +01:00
nm-setting-dcb.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-dcb.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-generic.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-generic.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-gsm.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-gsm.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-infiniband.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-infiniband.h libnm-util: add P_Key support to NMSettingInfiniband 2013-06-13 15:52:51 -03:00
nm-setting-ip4-config.c libnm-util: more specific error for missing ipv[46].adddress when method=manual 2014-03-03 12:42:05 +01:00
nm-setting-ip4-config.h libnm-util: add *_remove_*_by_value() functions for 'ipv4' and 'ipv6' settings 2014-02-28 10:31:41 +01:00
nm-setting-ip6-config.c libnm-util: more specific error for missing ipv[46].adddress when method=manual 2014-03-03 12:42:05 +01:00
nm-setting-ip6-config.h libnm-util: add *_remove_*_by_value() functions for 'ipv4' and 'ipv6' settings 2014-02-28 10:31:41 +01:00
nm-setting-olpc-mesh.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-olpc-mesh.h docs: document OLPC Mesh setting errors 2012-08-06 19:51:23 -05:00
nm-setting-ppp.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-ppp.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-pppoe.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-pppoe.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-private.h libnm-util: add nm_utils_check_virtual_device_compatibility() 2014-03-06 09:37:20 -05:00
nm-setting-serial.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-serial.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-team-port.c libnm-util, libnm-glib: add some missing "Since: 0.9.10" tags 2014-02-13 11:24:37 -05:00
nm-setting-team-port.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-team.c libnm-util, libnm-glib: add some missing "Since: 0.9.10" tags 2014-02-13 11:24:37 -05:00
nm-setting-team.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-setting-template.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-template.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-vlan.c libnm-util: fix minor bugs in nm_setting_vlan_remove_priority_str_by_value() 2014-03-05 11:20:54 -05:00
nm-setting-vlan.h libnm-util: add *_remove_*_by_value() functions for 'vlan' setting 2014-02-28 10:39:09 +01:00
nm-setting-vpn.c libnm-util: raise CHANGED signal in nm_connection_update_secrets only on change 2014-01-15 17:01:53 +01:00
nm-setting-vpn.h libnm-util: make nm_setting_vpn_remove_*() return gboolean instead of void 2013-04-03 08:35:47 +02:00
nm-setting-wimax.c libnm-util: refactor NMSetting name and register_settings 2013-12-12 21:47:13 +01:00
nm-setting-wimax.h core: fix NM_IS_*_CLASS(klass) macros 2012-07-27 13:15:54 +02:00
nm-setting-wired.c libnm-util: add *_remove_*_by_value() functions for '802-3-ethernet' setting 2014-02-28 10:39:09 +01:00
nm-setting-wired.h libnm-util: add *_remove_*_by_value() functions for '802-3-ethernet' setting 2014-02-28 10:39:09 +01:00
nm-setting-wireless-security.c libnm-util: add *_remove_*_by_value() functions for '802-11-wireless-security' setting 2014-02-28 10:39:09 +01:00
nm-setting-wireless-security.h libnm-util: fix some parameter names to kill gtk-doc warnings 2014-02-28 16:12:49 -05:00
nm-setting-wireless.c libnm-util: add *_remove_*_by_value() functions for '802-11-wireless' setting 2014-02-28 10:39:09 +01:00
nm-setting-wireless.h libnm-util: add *_remove_*_by_value() functions for '802-11-wireless' setting 2014-02-28 10:39:09 +01:00
nm-setting.c libnm-util: add nm_utils_check_virtual_device_compatibility() 2014-03-06 09:37:20 -05:00
nm-setting.h libnm-util, libnm-glib: add versioned deprecation/availability macros 2014-02-13 11:24:37 -05:00
nm-utils-private.h Revert :carrier-detect properties and associated code 2013-04-03 10:23:49 -04:00
nm-utils.c libnm-util: remove assert to nm_utils_ip4_netmask_to_prefix 2014-03-14 16:55:51 +01:00
nm-utils.h libnm-util: add nm_utils_check_virtual_device_compatibility() 2014-03-06 09:37:20 -05:00
nm-value-transforms.c libnm-util: add a missing GValue transform needed by nmtui 2014-01-16 09:19:06 -05:00