2014-07-24 12:53:33 +00:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* Copyright 2007 - 2013 Red Hat, Inc.
|
|
|
|
* Copyright 2007 - 2008 Novell, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <glib/gi18n.h>
|
|
|
|
|
|
|
|
#include "nm-setting-ppp.h"
|
|
|
|
#include "nm-setting-private.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SECTION:nm-setting-ppp
|
|
|
|
* @short_description: Describes connection properties for devices/networks
|
|
|
|
* that require PPP to deliver IP capability
|
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* The #NMSettingPpp object is a #NMSetting subclass that describes properties
|
2014-07-24 12:53:33 +00:00
|
|
|
* necessary for connection to networks that require PPP transport, like PPPoE
|
|
|
|
* cable and DSL modems and some mobile broadband devices.
|
|
|
|
**/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_error_quark:
|
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Registers an error quark for #NMSettingPpp if necessary.
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the error quark used for #NMSettingPpp errors.
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
GQuark
|
|
|
|
nm_setting_ppp_error_quark (void)
|
|
|
|
{
|
|
|
|
static GQuark quark;
|
|
|
|
|
|
|
|
if (G_UNLIKELY (!quark))
|
|
|
|
quark = g_quark_from_static_string ("nm-setting-ppp-error-quark");
|
|
|
|
return quark;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
G_DEFINE_TYPE_WITH_CODE (NMSettingPpp, nm_setting_ppp, NM_TYPE_SETTING,
|
2014-07-24 12:53:33 +00:00
|
|
|
_nm_register_setting (NM_SETTING_PPP_SETTING_NAME,
|
|
|
|
g_define_type_id,
|
|
|
|
3,
|
|
|
|
NM_SETTING_PPP_ERROR))
|
|
|
|
NM_SETTING_REGISTER_TYPE (NM_TYPE_SETTING_PPP)
|
|
|
|
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
#define NM_SETTING_PPP_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_SETTING_PPP, NMSettingPppPrivate))
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
gboolean noauth;
|
|
|
|
gboolean refuse_eap;
|
|
|
|
gboolean refuse_pap;
|
|
|
|
gboolean refuse_chap;
|
|
|
|
gboolean refuse_mschap;
|
|
|
|
gboolean refuse_mschapv2;
|
|
|
|
gboolean nobsdcomp;
|
|
|
|
gboolean nodeflate;
|
|
|
|
gboolean no_vj_comp;
|
|
|
|
gboolean require_mppe;
|
|
|
|
gboolean require_mppe_128;
|
|
|
|
gboolean mppe_stateful;
|
|
|
|
gboolean crtscts;
|
|
|
|
guint32 baud;
|
|
|
|
guint32 mru;
|
|
|
|
guint32 mtu;
|
|
|
|
guint32 lcp_echo_failure;
|
|
|
|
guint32 lcp_echo_interval;
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
} NMSettingPppPrivate;
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
PROP_0,
|
|
|
|
PROP_NOAUTH,
|
|
|
|
PROP_REFUSE_EAP,
|
|
|
|
PROP_REFUSE_PAP,
|
|
|
|
PROP_REFUSE_CHAP,
|
|
|
|
PROP_REFUSE_MSCHAP,
|
|
|
|
PROP_REFUSE_MSCHAPV2,
|
|
|
|
PROP_NOBSDCOMP,
|
|
|
|
PROP_NODEFLATE,
|
|
|
|
PROP_NO_VJ_COMP,
|
|
|
|
PROP_REQUIRE_MPPE,
|
|
|
|
PROP_REQUIRE_MPPE_128,
|
|
|
|
PROP_MPPE_STATEFUL,
|
|
|
|
PROP_CRTSCTS,
|
|
|
|
PROP_BAUD,
|
|
|
|
PROP_MRU,
|
|
|
|
PROP_MTU,
|
|
|
|
PROP_LCP_ECHO_FAILURE,
|
|
|
|
PROP_LCP_ECHO_INTERVAL,
|
|
|
|
|
|
|
|
LAST_PROP
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_new:
|
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Creates a new #NMSettingPpp object with default values.
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: (transfer full): the new empty #NMSettingPpp object
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
NMSetting *
|
|
|
|
nm_setting_ppp_new (void)
|
|
|
|
{
|
|
|
|
return (NMSetting *) g_object_new (NM_TYPE_SETTING_PPP, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_noauth:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:noauth property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_noauth (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->noauth;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_refuse_eap:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:refuse-eap property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_refuse_eap (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_eap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_refuse_pap:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:refuse-pap property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_refuse_pap (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_pap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_refuse_chap:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:refuse-chap property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_refuse_chap (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_chap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_refuse_mschap:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:refuse-mschap property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_refuse_mschap (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_mschap;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_refuse_mschapv2:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:refuse-mschapv2 property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_refuse_mschapv2 (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->refuse_mschapv2;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_nobsdcomp:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:nobsdcomp property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_nobsdcomp (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->nobsdcomp;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_nodeflate:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:nodeflate property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_nodeflate (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->nodeflate;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_no_vj_comp:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:no-vj-comp property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_no_vj_comp (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->no_vj_comp;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_require_mppe:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:require-mppe property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_require_mppe (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->require_mppe;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_require_mppe_128:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:require-mppe-128 property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_require_mppe_128 (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->require_mppe_128;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_mppe_stateful:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:mppe-stateful property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_mppe_stateful (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->mppe_stateful;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_crtscts:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:crtscts property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
gboolean
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_crtscts (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), FALSE);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->crtscts;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_baud:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:baud property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
guint32
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_baud (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), 0);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->baud;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_mru:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:mru property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
guint32
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_mru (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), 0);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->mru;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_mtu:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:mtu property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
guint32
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_mtu (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), 0);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->mtu;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_lcp_echo_failure:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:lcp-echo-failure property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
guint32
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_lcp_echo_failure (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), 0);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->lcp_echo_failure;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* nm_setting_ppp_get_lcp_echo_interval:
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* @setting: the #NMSettingPpp
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* Returns: the #NMSettingPpp:lcp-echo-interval property of the setting
|
2014-07-24 12:53:33 +00:00
|
|
|
**/
|
|
|
|
guint32
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_get_lcp_echo_interval (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
g_return_val_if_fail (NM_IS_SETTING_PPP (setting), 0);
|
|
|
|
|
|
|
|
return NM_SETTING_PPP_GET_PRIVATE (setting)->lcp_echo_interval;
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
|
|
|
verify (NMSetting *setting, GSList *all_settings, GError **error)
|
|
|
|
{
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
NMSettingPppPrivate *priv = NM_SETTING_PPP_GET_PRIVATE (setting);
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
/* FIXME: Do we even want this or can we just let pppd evaluate the options? */
|
|
|
|
if (priv->mru > 0) {
|
|
|
|
if (priv->mru < 128 || priv->mru > 16384) {
|
|
|
|
g_set_error (error,
|
|
|
|
NM_SETTING_PPP_ERROR,
|
|
|
|
NM_SETTING_PPP_ERROR_INVALID_PROPERTY,
|
|
|
|
_("'%d' is out of valid range <128-16384>"),
|
|
|
|
priv->mru);
|
|
|
|
g_prefix_error (error, "%s.%s: ", NM_SETTING_PPP_SETTING_NAME, NM_SETTING_PPP_MRU);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (priv->lcp_echo_failure > 0) {
|
|
|
|
/* lcp_echo_interval must also be non-zero */
|
|
|
|
if (priv->lcp_echo_interval == 0) {
|
|
|
|
g_set_error (error,
|
|
|
|
NM_SETTING_PPP_ERROR,
|
|
|
|
NM_SETTING_PPP_ERROR_INVALID_PROPERTY,
|
|
|
|
_("setting this property requires non-zero '%s' property"),
|
|
|
|
NM_SETTING_PPP_LCP_ECHO_INTERVAL);
|
|
|
|
g_prefix_error (error, "%s.%s: ", NM_SETTING_PPP_SETTING_NAME, NM_SETTING_PPP_LCP_ECHO_FAILURE);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_init (NMSettingPpp *setting)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
set_property (GObject *object, guint prop_id,
|
|
|
|
const GValue *value, GParamSpec *pspec)
|
|
|
|
{
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
NMSettingPppPrivate *priv = NM_SETTING_PPP_GET_PRIVATE (object);
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_NOAUTH:
|
|
|
|
priv->noauth = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_EAP:
|
|
|
|
priv->refuse_eap = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_PAP:
|
|
|
|
priv->refuse_pap = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_CHAP:
|
|
|
|
priv->refuse_chap = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_MSCHAP:
|
|
|
|
priv->refuse_mschap = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_MSCHAPV2:
|
|
|
|
priv->refuse_mschapv2 = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_NOBSDCOMP:
|
|
|
|
priv->nobsdcomp = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_NODEFLATE:
|
|
|
|
priv->nodeflate = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_NO_VJ_COMP:
|
|
|
|
priv->no_vj_comp = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REQUIRE_MPPE:
|
|
|
|
priv->require_mppe = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_REQUIRE_MPPE_128:
|
|
|
|
priv->require_mppe_128 = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_MPPE_STATEFUL:
|
|
|
|
priv->mppe_stateful = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_CRTSCTS:
|
|
|
|
priv->crtscts = g_value_get_boolean (value);
|
|
|
|
break;
|
|
|
|
case PROP_BAUD:
|
|
|
|
priv->baud = g_value_get_uint (value);
|
|
|
|
break;
|
|
|
|
case PROP_MRU:
|
|
|
|
priv->mru = g_value_get_uint (value);
|
|
|
|
break;
|
|
|
|
case PROP_MTU:
|
|
|
|
priv->mtu = g_value_get_uint (value);
|
|
|
|
break;
|
|
|
|
case PROP_LCP_ECHO_FAILURE:
|
|
|
|
priv->lcp_echo_failure = g_value_get_uint (value);
|
|
|
|
break;
|
|
|
|
case PROP_LCP_ECHO_INTERVAL:
|
|
|
|
priv->lcp_echo_interval = g_value_get_uint (value);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
get_property (GObject *object, guint prop_id,
|
|
|
|
GValue *value, GParamSpec *pspec)
|
|
|
|
{
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
NMSettingPpp *setting = NM_SETTING_PPP (object);
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
switch (prop_id) {
|
|
|
|
case PROP_NOAUTH:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_noauth (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_EAP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_refuse_eap (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_PAP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_refuse_pap (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_CHAP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_refuse_chap (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_MSCHAP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_refuse_mschap (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REFUSE_MSCHAPV2:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_refuse_mschapv2 (setting));
|
|
|
|
break;
|
|
|
|
case PROP_NOBSDCOMP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_nobsdcomp (setting));
|
|
|
|
break;
|
|
|
|
case PROP_NODEFLATE:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_nodeflate (setting));
|
|
|
|
break;
|
|
|
|
case PROP_NO_VJ_COMP:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_no_vj_comp (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REQUIRE_MPPE:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_require_mppe (setting));
|
|
|
|
break;
|
|
|
|
case PROP_REQUIRE_MPPE_128:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_require_mppe_128 (setting));
|
|
|
|
break;
|
|
|
|
case PROP_MPPE_STATEFUL:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_mppe_stateful (setting));
|
|
|
|
break;
|
|
|
|
case PROP_CRTSCTS:
|
|
|
|
g_value_set_boolean (value, nm_setting_ppp_get_crtscts (setting));
|
|
|
|
break;
|
|
|
|
case PROP_BAUD:
|
|
|
|
g_value_set_uint (value, nm_setting_ppp_get_baud (setting));
|
|
|
|
break;
|
|
|
|
case PROP_MRU:
|
|
|
|
g_value_set_uint (value, nm_setting_ppp_get_mru (setting));
|
|
|
|
break;
|
|
|
|
case PROP_MTU:
|
|
|
|
g_value_set_uint (value, nm_setting_ppp_get_mtu (setting));
|
|
|
|
break;
|
|
|
|
case PROP_LCP_ECHO_FAILURE:
|
|
|
|
g_value_set_uint (value, nm_setting_ppp_get_lcp_echo_failure (setting));
|
|
|
|
break;
|
|
|
|
case PROP_LCP_ECHO_INTERVAL:
|
|
|
|
g_value_set_uint (value, nm_setting_ppp_get_lcp_echo_interval (setting));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
nm_setting_ppp_class_init (NMSettingPppClass *setting_class)
|
2014-07-24 12:53:33 +00:00
|
|
|
{
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (setting_class);
|
|
|
|
NMSettingClass *parent_class = NM_SETTING_CLASS (setting_class);
|
|
|
|
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
g_type_class_add_private (setting_class, sizeof (NMSettingPppPrivate));
|
2014-07-24 12:53:33 +00:00
|
|
|
|
|
|
|
/* virtual methods */
|
|
|
|
object_class->set_property = set_property;
|
|
|
|
object_class->get_property = get_property;
|
|
|
|
parent_class->verify = verify;
|
|
|
|
|
|
|
|
/* Properties */
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:noauth:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, do not require the other side (usually the PPP server) to
|
|
|
|
* authenticate itself to the client. If %FALSE, require authentication
|
|
|
|
* from the remote side. In almost all cases, this should be %TRUE.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_NOAUTH,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_NOAUTH, "", "",
|
|
|
|
TRUE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:refuse-eap:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, the EAP authentication method will not be used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REFUSE_EAP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REFUSE_EAP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:refuse-pap:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, the PAP authentication method will not be used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REFUSE_PAP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REFUSE_PAP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:refuse-chap:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, the CHAP authentication method will not be used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REFUSE_CHAP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REFUSE_CHAP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:refuse-mschap:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, the MSCHAP authentication method will not be used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REFUSE_MSCHAP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REFUSE_MSCHAP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:refuse-mschapv2:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, the MSCHAPv2 authentication method will not be used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REFUSE_MSCHAPV2,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REFUSE_MSCHAPV2, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:nobsdcomp:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, BSD compression will not be requested.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_NOBSDCOMP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_NOBSDCOMP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:nodeflate:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, "deflate" compression will not be requested.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_NODEFLATE,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_NODEFLATE, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:no-vj-comp:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, Van Jacobsen TCP header compression will not be requested.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_NO_VJ_COMP,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_NO_VJ_COMP, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:require-mppe:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, MPPE (Microsoft Point-to-Point Encrpytion) will be required for
|
|
|
|
* the PPP session. If either 64-bit or 128-bit MPPE is not available the
|
|
|
|
* session will fail. Note that MPPE is not used on mobile broadband
|
|
|
|
* connections.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REQUIRE_MPPE,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REQUIRE_MPPE, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:require-mppe-128:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, 128-bit MPPE (Microsoft Point-to-Point Encrpytion) will be
|
|
|
|
* required for the PPP session, and the "require-mppe" property must also
|
|
|
|
* be set to %TRUE. If 128-bit MPPE is not available the session will fail.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_REQUIRE_MPPE_128,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_REQUIRE_MPPE_128, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:mppe-stateful:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, stateful MPPE is used. See pppd documentation for more
|
|
|
|
* information on stateful MPPE.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_MPPE_STATEFUL,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_MPPE_STATEFUL, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:crtscts:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If %TRUE, specify that pppd should set the serial port to use hardware
|
|
|
|
* flow control with RTS and CTS signals. This value should normally be set
|
|
|
|
* to %FALSE.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_CRTSCTS,
|
|
|
|
g_param_spec_boolean (NM_SETTING_PPP_CRTSCTS, "", "",
|
|
|
|
FALSE,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:baud:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If non-zero, instruct pppd to set the serial port to the specified
|
|
|
|
* baudrate. This value should normally be left as 0 to automatically
|
|
|
|
* choose the speed.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_BAUD,
|
|
|
|
g_param_spec_uint (NM_SETTING_PPP_BAUD, "", "",
|
|
|
|
0, G_MAXUINT32, 0,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:mru:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If non-zero, instruct pppd to request that the peer send packets no
|
|
|
|
* larger than the specified size. If non-zero, the MRU should be between
|
|
|
|
* 128 and 16384.
|
|
|
|
*/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_MRU,
|
|
|
|
g_param_spec_uint (NM_SETTING_PPP_MRU, "", "",
|
|
|
|
0, 16384, 0,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:mtu:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If non-zero, instruct pppd to send packets no larger than the specified
|
|
|
|
* size.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_MTU,
|
|
|
|
g_param_spec_uint (NM_SETTING_PPP_MTU, "", "",
|
|
|
|
0, G_MAXUINT32, 0,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:lcp-echo-failure:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If non-zero, instruct pppd to presume the connection to the peer has
|
|
|
|
* failed if the specified number of LCP echo-requests go unanswered by the
|
|
|
|
* peer. The "lcp-echo-interval" property must also be set to a non-zero
|
|
|
|
* value if this property is used.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_LCP_ECHO_FAILURE,
|
|
|
|
g_param_spec_uint (NM_SETTING_PPP_LCP_ECHO_FAILURE, "", "",
|
|
|
|
0, G_MAXUINT32, 0,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
|
|
|
|
/**
|
libnm, core, cli, tui: fix the capitalization of various types
GLib/Gtk have mostly settled on the convention that two-letter
acronyms in type names remain all-caps (eg, "IO"), but longer acronyms
become initial-caps-only (eg, "Tcp").
NM was inconsistent, with most long acronyms using initial caps only
(Adsl, Cdma, Dcb, Gsm, Olpc, Vlan), but others using all caps (DHCP,
PPP, PPPOE, VPN). Fix libnm and src/ to use initial-caps only for all
three-or-more-letter-long acronyms (and update nmcli and nmtui for the
libnm changes).
2014-06-26 17:44:36 +00:00
|
|
|
* NMSettingPpp:lcp-echo-interval:
|
2014-07-24 12:53:33 +00:00
|
|
|
*
|
|
|
|
* If non-zero, instruct pppd to send an LCP echo-request frame to the peer
|
|
|
|
* every n seconds (where n is the specified value). Note that some PPP
|
|
|
|
* peers will respond to echo requests and some will not, and it is not
|
|
|
|
* possible to autodetect this.
|
|
|
|
**/
|
|
|
|
g_object_class_install_property
|
|
|
|
(object_class, PROP_LCP_ECHO_INTERVAL,
|
|
|
|
g_param_spec_uint (NM_SETTING_PPP_LCP_ECHO_INTERVAL, "", "",
|
|
|
|
0, G_MAXUINT32, 0,
|
|
|
|
G_PARAM_READWRITE |
|
|
|
|
G_PARAM_CONSTRUCT |
|
|
|
|
NM_SETTING_PARAM_FUZZY_IGNORE |
|
|
|
|
G_PARAM_STATIC_STRINGS));
|
|
|
|
}
|