summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-ip6-config.c
Commit message (Collapse)AuthorAgeFilesLines
* libnm-util: add *_remove_*_by_value() functions for 'ipv4' and 'ipv6' settingsJiří Klimeš2014-02-281-1/+130
| | | | | | | | | | | | nm_setting_ip4_config_remove_dns_by_value() nm_setting_ip4_config_remove_dns_search_by_value() nm_setting_ip4_config_remove_address_by_value() nm_setting_ip4_config_remove_route_by_value() nm_setting_ip6_config_remove_dns_by_value() nm_setting_ip6_config_remove_dns_search_by_value() nm_setting_ip6_config_remove_address_by_value() nm_setting_ip6_config_remove_route_by_value()
* libnm-util: fix trivial GOI copy & paste issueDan Williams2014-01-211-1/+0
|
* libnm-glib; fix introspection annotations so that <ipv6>.get_address() workedJiří Klimeš2014-01-161-4/+9
| | | | | Without the correct annotation, the functions didn't work correctly in Python (causing segmentation fault).
* trivial: fix erroneous copy&paste value in libnm-glibJiří Klimeš2013-12-181-1/+1
|
* libnm-util: refactor NMSetting name and register_settingsThomas Haller2013-12-121-1/+0
| | | | | | | | | | | | | | | | - refactor register_settings to allow lookup by GType and add the settings name to SettingInfo. - setting NM_SETTING_NAME is deprecated and should not be set anymore. Indeed it has always be a bug, to reset the name to a different value. The only valid place to set the name was in the _init() function of the derived class itself. This is now no longer needed/possible. Instead the name get's detected based on the registered setting types. This makes use of the registered metadata that is available anyway since every usable setting has to register itself. Signed-off-by: Thomas Haller <thaller@redhat.com>
* libnm-util: add INFERRABLE flag and remove CANDIDATEDan Williams2013-12-051-4/+4
| | | | | | INFERRABLE means the opposite of CANDIDATE; a property which NetworkManager can read ("infer") from the system or the kernel when generating connections. CANDIDATE isn't a great name and thus dies.
* libnm-util: remove usage of NM_SETTING_PARAM_SERIALIZEDan Williams2013-12-021-12/+11
| | | | | The only property that is not serializes is each settings' 'name' property, so the flag serves no purpose.
* libnm-util: fix a leak in NMSettingIP6ConfigDan Winship2013-10-241-2/+1
|
* trivial: fix a typo in description of ipv6.method in libnm-utilJiří Klimeš2013-09-041-3/+3
|
* ifcfg-rh: reader: allow device to not have ipv4 setting.Jiri Pirko2013-08-221-27/+0
| | | | | | | | | | If BOOTPROTO is set to "none", user states that no ipv4 setting should be set. So respect that. Introduce helper is_any_ip4_address_defined() along the way to make the code more readable. Signed-off-by: Jiri Pirko <jiri@resnulli.us>
* libnm-util: fix possible crash when IP method is NULLJiří Klimeš2013-07-031-1/+1
|
* libnm-util: verify() - can't set both IPv4 'disabled' and IPv6 'ignore' methodJiří Klimeš2013-06-251-0/+27
|
* libnm-util: prefix errors with 'setting.property' instead of 'property' onlyJiří Klimeš2013-06-131-7/+7
|
* libnm-util: deprecate nm_utils_slist_free(), use g_slist_free_full()Dan Winship2013-05-291-11/+11
|
* libnm-util: implement connection changed signalDan Williams2013-05-281-0/+12
| | | | | Emitted whenever settings are added or removed from the connection, and whenever any property of any setting in the connection is changed.
* libnm-util: fix doc bug in NMSettingIP6ConfigDan Winship2013-04-191-2/+2
|
* libnm-util: fix memory leaks of dhcp_hostname and dhcp_client_idDan Williams2013-04-011-0/+2
|
* libnm-util: make property verification errors more descriptiveJiří Klimeš2013-03-131-21/+33
| | | | | | - fix g_set_error()/g_set_error_literal() usage - make the error messages translatable - use g_prefix_error() to prepend property name
* libnm-util: add Since tags to new functions and propertiesDan Williams2013-02-221-0/+4
|
* dhcp: fix DHCPv6 to support server-side dynamic DNS (bgo #684242)Gene Czarcinski2012-11-161-0/+48
| | | | | | | | This patch makes DHCPv6 support more or less equivalent to that one of IPv4 DHCP. (dcbw: fix some formatting, rearrange code so it's less convoluted, fix up writing hostname to ifcfg files)
* libnm-util: clean up setting registrationDan Williams2012-10-291-1/+7
| | | | | | | | | | | | Make setting type registration less icky; instead of having the connection register all the settings, have the settings themselves register that information at library load time. Putting this sort of thing in G_DEFINE_TYPE_WITH_CODE is apparently more standard than the home-rolled stuff we had before. Also document the priority stuff so when adding new settings, people know what priority to use. (cleanups by jklimes)
* libnm-util: ensure address/route types are boxed on glib < 2.26Dan Williams2012-07-021-2/+1
|
* libnm-util: fix return values in g_return_val_if_fail()Jiří Klimeš2012-06-071-10/+10
|
* libnm-util: add a property for IPv6 Privacy Extensions to NMSettingIP6ConfigJiří Klimeš2012-02-271-1/+55
| | | | ip6-privacy
* Use glib-mkenums to generate enum typesDan Winship2012-02-151-25/+0
| | | | | | | | | | | | | | | | | | | Rather than generating enum classes by hand (and complaining in each file that "this should really be standard"), use glib-mkenums. Unfortunately, we need a very new version of glib-mkenums in order to deal with NM's naming conventions and to fix a few other bugs, so just import that into the source tree temporarily. Also, to simplify the use of glib-mkenums, import Makefile.glib from https://bugzilla.gnome.org/654395. To avoid having to run glib-mkenums for every subdirectory of src/, add a new "generated" directory, and put the generated enums files there. Finally, use Makefile.glib for marshallers too, and generate separate ones for libnm-glib and NetworkManager.
* libnm-util: default to allowing IPv6 connections to failMathieu Trudel-Lapierre2011-07-201-1/+1
| | | | | | | | | | Allow IPv6 connections to fail by changing the default value of the may-fail property for ipv6 settings to TRUE. This makes sure connections created manually using nm-connection-editor will default to having the "Require ..." checkbox unchecked; in other words, IPv6 timing out will still allow the interface to be configured if IPv4 succeeds.
* docs: document the IP6Config settingDan Williams2011-07-051-3/+402
|
* trivial: let g_free and g_strdup handle NULL (bgo #644763)Kjartan Maraas2011-03-151-3/+1
|
* libnm-util: conditionalize code that requires glib 2.26 or laterDan Williams2011-03-071-0/+2
|
* introspection: add GObject introspection support (bgo #637032)Giovanni Campagna2011-01-211-0/+2
| | | | | | | Add the necessary annotations (the mininum required, that is those on return values. NULL parameters or container types may require more), and the Autotools stuff to get a NetworkManager GIR for libnm-util and a NMClient for libnm-glib.
* Revert "ip6: remove standalone DHCP method since DHCPv6 can't provide ↵Dan Williams2010-07-271-33/+38
| | | | | | | | gateways" (rh #612445) This reverts commit a729d2f649fefc77fcff7ad250c5c403a4dd59b7. Turns out this is a valid IP config method that some sites use.
* ip6: remove standalone DHCP method since DHCPv6 can't provide gatewaysDan Williams2010-05-201-38/+33
| | | | | | All IPv6 enabled sites are expected to provide router advertisement support apparently. If standalone DHCP is really used in the wild then we can clearly re-enable it later.
* libnm-util: clarify may-fail behaviorDan Williams2010-05-031-3/+3
|
* libnm-util: add 'may-fail' for IPv4 and IPv6Dan Williams2010-05-021-0/+40
| | | | | | | | | | | | | | | | | | | | | | When this property is TRUE, IP configuration can continue as long as at least on IP configuration type succeeds. This allows connections to networks where the user does not necessarily know whether the network supports IPv4 or IPv6 and does not require that both complete succesfully. Since most of the time the user doesn't really care what type of connectivity they have, as long as they have *some* connectivity, this allows better "Just Works" behavior as long as the system settings plugins and connection editors/applets use the right defaults. Suggested defaults for may-fail are: IPv4: no (ie, require IPv4 connectivity) IPv6: yes (ie, do not require IPv6 connectivity) Users who require a specific type of connectivity are probably knowlegable enough to check the box as needed for their network.
* libnm-util: more IPv6 address gateway fixesDan Williams2010-05-021-1/+3
|
* libnm-util: update IPv6 address property descriptionDan Williams2010-04-191-11/+18
|
* libnm-util: add gateway member to IPv6 addressesDan Williams2010-04-171-0/+24
|
* libnm-util: fix a typoJiří Klimeš2010-03-291-2/+2
|
* libnm-util: add IPv6 method 'dhcp'Dan Williams2010-01-081-46/+50
|
* doc: document NMSettingIP6ConfigDan Williams2009-11-161-8/+142
|
* libnm-util: fix verifying METHOD_IGNORE in NMSettingIP6ConfigDan Winship2009-08-121-0/+1
|
* Install and fix up libnm-util IPv6 config stuffDan Winship2009-07-291-139/+60
|
* libnm-util: flag properties with G_PARAM_CONSTRUCT so default values get setDan Williams2009-02-011-2/+2
| | | | | | | This caused the 'autoconnect' property of NMSettingConnection to not get updated in some cases (as when a system setting plugin noticed a change to autoconnect=true and emitted the Updated signal, which wouldn't contain the new value). Add a testcase for setting default values too.
* 2008-10-30 Dan Williams <dcbw@redhat.com>Dan Williams2008-10-301-58/+709
| | | | | | | | | | | | | | | | | | * libnm-util/libnm-util.ver libnm-util/nm-setting-ip6-config.c libnm-util/nm-setting-ip6-config.h libnm-util/Makefile.am - Make properties private and add accessor functions - Hide IPv6 stuff from public API, it's incomplete and completely unused * libnm-util/nm-connection.c libnm-util/nm-utils.c libnm-util/nm-utils.h - Ignore IPv6 stuff for now git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-10-27 Dan Williams <dcbw@redhat.com>Dan Williams2008-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch from Tambet Ingo <tambet@gmail.com> * libnm-util/nm-setting.h libnm-util/nm-setting.c - Make properties private and add accessor functions * libnm-util/nm-connection.c libnm-util/nm-setting-8021x.c libnm-util/nm-setting-cdma.c libnm-util/nm-setting-connection.c libnm-util/nm-setting-gsm.c libnm-util/nm-setting-ip4-config.c libnm-util/nm-setting-ip6-config.c libnm-util/nm-setting-ppp.c libnm-util/nm-setting-pppoe.c libnm-util/nm-setting-serial.c libnm-util/nm-setting-template.c libnm-util/nm-setting-vpn.c libnm-util/nm-setting-wired.c libnm-util/nm-setting-wireless-security.c libnm-util/nm-setting-wireless.c system-settings/plugins/keyfile/reader.c system-settings/plugins/keyfile/writer.c - Use setting accessors git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Rename private nm_* functions to _nm_*Michael Biebl2008-08-261-4/+4
| | | | git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4012 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-07-27 Dan Williams <dcbw@redhat.com>Dan Williams2008-07-271-0/+1
| | | | | | | | | | | | | | | | * libnm-util/nm-setting-ip6-config.c - (set_property): add missing break that caused routes to be overwritten with addresses * libnm-util/nm-setting-ip6-config.c - (verify): validate routes and return GError everywhere on invalid setting - (finalize): don't leak routes - (set_property): add missing break that caused routes to be overwritten with addresses git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3865 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-07-27 Dan Williams <dcbw@redhat.com>Dan Williams2008-07-271-1/+23
| | | | | | | | | * libnm-util/* - Relicense to LGPLv2+ git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3859 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* 2008-06-26 Dan Williams <dcbw@redhat.com>Dan Williams2008-06-261-0/+318
Patch from David Cantrell <dcantrell@redhat.com> and me * include/nm-dbus-glib-types.h - Add IP6 address types * libnm-util/Makefile.am libnm-util/nm-setting-ip6-config.c libnm-util/nm-setting-ip6-config.h - Add IP6 settings object * libnm-util/nm-connection.c - (register_default_settings): register ip6 settings object * libnm-util/nm-utils.c libnm-util/nm-utils.h - (nm_utils_ip6_addresses_from_gvalue, nm_utils_ip6_addresses_to_gvalue, nm_utils_ip6_dns_from_gvalue, nm_utils_ip6_dns_to_gvalue): add ip6 address conversion functions git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3778 4912f4e0-d625-0410-9fb7-b9a5a253dbdc