Commit graph

59 commits

Author SHA1 Message Date
Tambet Ingo
8f6eb995f9 2008-10-29 Tambet Ingo <tambet@gmail.com>
Half of it by Dan Williams <dcbw@redhat.com>

	* libnm-util/libnm-util.ver
	libnm-util/nm-setting-vpn.c
	libnm-util/nm-setting-vpn.h
		- Make properties private and add accessor functions.

	* src/vpn-manager/nm-vpn-connection.c
	src/vpn-manager/nm-vpn-manager.c
	system-settings/plugins/keyfile/reader.c
	vpn-daemons/openvpn/properties/auth-helpers.c
	vpn-daemons/openvpn/properties/import-export.c
	vpn-daemons/openvpn/properties/nm-openvpn.c
	vpn-daemons/openvpn/src/nm-openvpn-service.c
	vpn-daemons/pptp/auth-dialog/main.c
	vpn-daemons/pptp/properties/advanced-dialog.c
	vpn-daemons/pptp/properties/nm-pptp.c
	vpn-daemons/pptp/src/nm-pptp-service.c
	vpn-daemons/vpnc/properties/nm-vpnc.c
	vpn-daemons/vpnc/src/nm-vpnc-service.c
		- Use VPN setting accessors.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4232 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-10-29 09:13:40 +00:00
Dan Williams
ba15ee5f50 2008-09-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-vpn.c
	  libnm-util/nm-setting-vpn.h
		- Split VPN secrets from VPN data so that settings services can actually
			figure out that they are secrets and store them accordingly

	* system-settings/plugins/keyfile/nm-keyfile-connection.c
	  system-settings/plugins/keyfile/reader.c
	  system-settings/plugins/keyfile/reader.h
	  system-settings/plugins/keyfile/writer.c
		- Store VPN secrets separately from VPN data so that they can be fetched
			on demand
		- Implement the get_secrets() call so that (a) secrets don't leak out
			to unprivileged callers, and (b) secrets can be sent to privileged
			callers when needed

	* vpn-daemons/vpnc/src/nm-vpnc-service.c
		- Handle split VPN secrets



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4031 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-09-04 14:32:14 +00:00
Dan Williams
cd5c18e01f Fix warning; make output more useful
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3938 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-12 17:19:31 +00:00
Dan Williams
5753f838c2 Remove unused variable
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3929 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-11 19:19:19 +00:00
Dan Williams
3113ba4bcf 2008-08-11 Dan Williams <dcbw@redhat.com>
Update to match NM svn3924 vpn setting changes; verify options better;
	return more informative errors on VPN launch failures.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3925 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-11 17:15:42 +00:00
Dan Williams
3c51abb50c 2008-08-06 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-vpnc-helper.c
		- (get_routes): fixup for NM route metric changes

	* properties/nm-vpnc.c
		- (get_routes, export): fixup for NM route metric changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3900 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-06 22:27:16 +00:00
Dan Williams
ad5ae13d63 Add back NAT-Keepalive option so configs don't fail validation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3881 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-08-01 14:16:00 +00:00
Dan Williams
d4b3721c8d 2008-07-27 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

	* Move service to $LIBEXECDIR, remove unneeded compilation flags, move
		properties plugin to $LIBDIR/NetworkManager



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3862 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-27 20:23:51 +00:00
Dan Williams
036ac60842 2008-07-07 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-vpnc-helper.c
	  properties/nm-vpnc.c
		- Use IPv4 address prefixes rather than netmasks (requires svn3812)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3814 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-07 18:59:29 +00:00
Dan Williams
dd0109ee28 2008-06-26 Dan Williams <dcbw@redhat.com>
Patch from David Cantrell <dcantrell@redhat.com>
	
	* Use inet_ntop() and inet_pton() everwhere and check for errors



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3777 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-26 19:33:13 +00:00
Dan Williams
b0cf66eda8 2008-06-26 Dan Williams <dcbw@redhat.com>
* Update FSF address in license headers (Michael Biebl <biebl@debian.org>)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3775 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-26 18:31:52 +00:00
Dan Williams
0315481278 2008-06-17 Dan Williams <dcbw@redhat.com>
* Convert to new NM VPN UI plugin format
	* Remove vpnc 0.3.x options
	* Handle Dead Peer Detection option
	* Handle NAT Traversal option

	Requires a NetworkManager of at least the SVN revision before this commit.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3757 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-17 17:48:53 +00:00
Dan Williams
b4b52daeb0 2008-06-06 Dan Williams <dcbw@redhat.com>
Patch from Tambet Ingo  <tambet@gmail.com>

	* src/nm-vpnc-service-vpnc-helper.c
		- (main, get_routes): send routes too



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3729 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-06-06 16:07:47 +00:00
Tambet Ingo
3fd52df04f 2008-05-22 Tambet Ingo <tambet@gmail.com>
* src/nm-vpnc-service.c (real_disconnect): If sending SIGTERM succeeds,
	add a timeout to make sure it gets killed. If it fails, send SIGKILL
	immediately.

	* src/nm-openvpn-service.c (real_disconnect): If sending SIGTERM
	succeeds, add a timeout to make sure it gets killed. If it fails,
	send SIGKILL immediately.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3682 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-05-22 14:32:44 +00:00
Dan Williams
f9535e1140 2008-05-01 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (validate_one_property): allow the 'name' property



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3626 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-05-02 03:03:38 +00:00
Dan Williams
e97fc3c8f8 2008-03-06 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-vpnc-helper.c
		- (main): pass the MTU in the returned option hash table



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3376 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-06 18:24:40 +00:00
Christopher Aillon
60cebd2de6 2007-12-31 Christopher Aillon <caillon@redhat.com>
* src/nm-vpnc-service.h:
	* src/nm-vpnc-service.c:
		- Support Cisco UDP Encapsulation in vpnc >= 0.4 (#420925)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3200 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-31 15:30:02 +00:00
Dan Williams
df921e74c5 2007-11-07 Dan Williams <dcbw@redhat.com>
* auth-dialog/main.c
	  properties/nm-vpnc.c
	  src/nm-vpnc-service.c
		- Fix for new NMSetting API changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3071 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-11-07 18:22:04 +00:00
Dan Williams
7ccae0048b 2007-10-10 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (validate_one_property): print message about what properties fail
			validation
		- (real_connect, nm_vpnc_config_write): use default username from VPN
			setting if no Xauth username is provided in custom properties



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2968 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-10-10 20:26:13 +00:00
Dan Williams
592f4cc94d Fix typo
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2909 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 03:43:08 +00:00
Dan Williams
78d654f387 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (nm_vpnc_config_write): turn back on various options that the vpnc
			plugin had before that are used with vpnc 0.3.x



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2906 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 02:03:02 +00:00
Dan Williams
be5c97e72f 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-vpnc-helper.c
		- (addr_list_to_gvalue): list should contain straight guint32s, not
			GValues containing guint32s
		- (main): For Cisco/vpnc, the IP4 PTP address needs to be the same as
			the internal IP4 address



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2904 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-28 01:36:27 +00:00
Dan Williams
1b245ad655 Don't leak secrets
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2902 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 23:56:29 +00:00
Dan Williams
eac62e5b67 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (real_connect): close vpnc's stdin so it can actually go ahead and
			connect



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2901 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 23:53:50 +00:00
Dan Williams
790c3844a1 2007-09-27 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service-helper.c
		- (str_to_gvalue, addr_to_gvalue): ensure the GValues are zeroed when
			allocated so that they can be assigned a type later
		- (addr_list_to_gvalue): use a GArray rather than a GSList, dbus-glib
			seems ignorant of GSLists with G_TYPE_UINT elements



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2900 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 14:30:19 +00:00
Dan Williams
98fb1e171c 2007-09-26 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (real_need_secrets, nm_vpnc_plugin_class_init): implement need_secrets



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2893 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-27 02:22:40 +00:00
Tambet Ingo
571812b40c 2007-09-26 Tambet Ingo <tambet@gmail.com>
* libnm-glib/nm-vpn-plugin.c (nm_vpn_plugin_connect): Update the
        * plugin activation
        method.
        (impl_vpn_plugin_connect): Convert properties hash to
NMConnection, activate, and
        unreference the connection.

        * introspection/nm-vpn-plugin.xml: Modify the 'Connect' method
        * arguments: instead of
        passing properties hash and routes string list, pass
NMConnection (in hashed form).

        * src/vpn-manager/nm-vpn-connection.c
        * (nm_vpn_connection_get_routes): Return routes
        as GSList, no need to copy stuff around anymore.
        (nm_vpn_connection_activate): Update the plugin activation
method.

        * src/NetworkManagerSystem.c
        * (nm_system_vpn_device_set_from_ip4_config): Convert
        routes argument to GSList.

        * vpn-daemons/vpnc/src/nm-vpnc-service.c (real_connect):
        The arguments have changed, update.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2890 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-26 15:42:09 +00:00
Dan Williams
ccbc1df785 Fix uninitialized variable
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2853 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-22 04:05:20 +00:00
Tambet Ingo
be3a380b08 2007-09-12 Tambet Ingo <tambet@gmail.com>
* src/nm-vpnc-service.[ch]: Rewrite. Derive from NMVPNPlugin.

        * src/nm-vpnc-service-vpnc-helper.c: Rewrite using dbus-glib.

        * auth-dialog/main.c: Populate the properties hash with the
        * passwords.

        * properties/nm-vpnc.c: The VPN connection properties are all
        * hash tables now.

        * src/nm-utils.[ch]: Remove. Use the same things from
        * libnm-util.

        * configure.in: Check libnm_glib module as well now that we use
        * NMVPNPlugin.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2797 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-09-12 16:18:15 +00:00
Tambet Ingo
fc433a76a5 2007-08-15 Tambet Ingo <tambet@gmail.com>
* nm-vpnc-service.name.in: Use upper-case macro names as that's
        * what the
        sed script from Makefile is trying to replace.

        * src/Makefile.am: Link to $NM_UTILS_LIBS.

        * configure.in: Update required NetworkManager version to 0.7.0.
        Clean up the double-check to NetworkManager.pc.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2693 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-08-15 12:01:05 +00:00
Dan Williams
fec13b0ee1 2007-08-14 Dan Williams <dcbw@redhat.com>
* src/nm-openvpn-service.c
		- Handle NM_VPN_STATE_* -> NM_VPN_SERVICE_STATE_* and NMVPNState -> 
			NMVPNServiceState renames



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2680 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-08-14 18:19:57 +00:00
Dan Williams
75611d4b30 2007-04-04 Dan Williams <dcbw@redhat.com>
Patch from Denis Leroy <denis@poolshark.org>
	* src/nm-vpnc-service.c
	  properties/nm-vpnc.c
	  properties/nm-vpnc-dialog.glade
		- Add config options for NAT keepalive, NAT Traversal, and Weak DES



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2525 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-04-04 14:44:07 +00:00
Dan Williams
5c9573e115 2007-02-23 Dan Williams <dcbw@redhat.com>
Patch from Olaf Telshörner <olaf.tsc7@yahoo.de>

	* src/nm-vpnc-service.c
		- Add /usr/local/sbin/vpnc to the search list



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2360 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-02-23 16:12:23 +00:00
Dan Williams
c33d6e868f 2007-01-30 Dan Williams <dcbw@redhat.com>
* configure.in
	  src/Makefile.am
		- Add configure bits to pick up libnm-util

	* src/nm-vpnc-service.c
		- Convert to new dict-based IP4Config signal format



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2256 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-30 22:36:26 +00:00
Dan Williams
e8cc4d2527 2006-12-04 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- (nm_vpnc_config_options_validate): allow the
			"NAT-Keepalive packet interval" option to pass validation


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2166 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-12-04 21:01:39 +00:00
Tambet Ingo
d5d84393ab 2006-10-30 Tambet Ingo <tambet@ximian.com>
vpnc/:

	* properties/Makefile.am: Include new files pcf-file.[ch] in build.
	Add NetworkManager to CFLAGS and LDADD.

	* properties/pcf-file.c: Implement.

	* properties/pcf-file.h: Ditto.

	* properties/nm-vpnc.c (import_from_file): Rewrite using new Cisco PCF
	file parser instead of using GKeyFile (which has slightly different
	semantics).

	* src/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* src/nm-vpnc-service.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* src/nm-vpnc-service-vpnc-helper.c: Ditto.


	openvpn/:

	* properties/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* src/Makefile.am: Ditto.

	* properties/nm-openvpn.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* src/nm-openvpn-service-openvpn-helper.c: Ditto.

	* src/nm-openvpn-service.c: Ditto.


	pptp/:

	* src/nm-pppd-plugin.c: Remove the leading NetworkManager directory
	from NM includes since the NM pkg-config file already adds that.

	* properties/vpnui_impl.c: Ditto.

	* properties/vpnui_impl.h: Ditto.

	* src/nm-ppp-starter.c: Ditto.

	* src/Makefile.am: Add NetworkManager to CFLAGS and LDADD.

	* properties/Makefile.am: Add NetworkManager to CFLAGS and LDADD.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2093 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-10-30 11:23:28 +00:00
Dan Williams
6b8371c73e 2006-05-21 Dan Williams <dcbw@redhat.com>
* src/nm-vpnc-service.c
		- Better rekey patch; honor user-specified interval but default
			to 2 hours if unspecified


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1754 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-21 20:28:25 +00:00
Peter Jones
2579c9ef82 - allow vpnc rekeying
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1715 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-02 21:26:48 +00:00
Robert Love
e79ccc1a10 2006-03-29 Robert Love <rml@novell.com>
Patch by Vinay R <rvinay@novell.com> and Robert Love <rml@novell.com>,
	to add support for per-route MSS and improve support for per-interface
	MTU:
	* src/NetworkManagerSystem.c: Modify nm_system_device_set_ip4_route to
	  optionally take an MSS parameter and set it for the given route.
	  Remove nm_system_device_set_ip4_route_with_iface.  Pass in the
	  NMIP4Config's stored MSS, if any.
	* src/nm-ip4-config.c: Add 'mtu' and 'mss' to NMIP4Config, representing
	  the interface's MTU and the route's MSS, respectively.  Add functions
	  nm_ip4_config_get_mtu, nm_ip4_config_set_mtu, nm_ip4_config_get_mss,
	  and nm_ip4_config_set_mss for retrieving and setting the MTU and the
	  MSS.
	* src/nm-ip4-config.h: Add prototypes for nm_ip4_config_get_mtu,
	  nm_ip4_config_set_mtu, nm_ip4_config_get_mss, and
	  nm_ip4_config_set_mss.
	* src/vpn-manager/nm-vpn-service.c: Modify to receive the MSS from the
	  VPN daemon.
	* src/backends/NetworkManager{Arch,Debian,Gentoo,RedHat,Slackware,SUSE}.c:
	  Change the retval of nm_system_get_mtu to guint32.
	* src/dhcp-manager/nm-dhcp-manager.c: Set the MTU on the new DHCP-given
	  NMIP4Config to the MTU provided by the system, if any.  TODO: If DHCP
	  servers can specify MTU's, we should set it here if the MTU was not
	  provided.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1660 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-29 19:26:53 +00:00
Vinay A R
ecc005aa03 2006-02-09 Dan Williams <dcbw@redhat.com>
Patch from: Vinay A R <rvinay@novell.com>
	* src/vpn-manager/nm-vpn-act-request.[ch]
		- Added 'routes' and 'routes_count' to struct NMVPNActRequest since
			IPSec VPNs require them for std gateway.
		- (nm_vpn_act_request_new): takes arguments for 'user_routes'
			and 'user_routes_count'
		- (nm_vpn_act_request_get_user_routes): new function; gets user
			defined routes	from NMVPNActRequest object, returns the string
			array of routes.

	* src/vpn-manager/nm-vpn-manager.[ch]
		- (nm_vpn_manager_activate_vpn_connection): take additional arguments
			for 'user_routes' and 'user_routes_count'

	* src/vpn-manager/nm-dbus-vpn.c
		- (nm_dbus_vpn_activate_connection): gets 'user_routes' from
			nm_dbus_vpn_get_routes() to pass to nm_vpn_manager_activate_vpn_connection()

	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_stage3_connect): pass user routes over dbus to
			the vpn daemon

	Modifications by Dan:
	* src/vpn-manager/nm-vpn-service.c
		- (nm_vpn_service_stage3_connect): ensure that we don't pass NULL string
			arrays into dbus

	* vpn-daemons/vpnc/src/nm-vpnc-service.c
	* vpn-daemons/pptp/src/nm-pptp-service.c
	* vpn-daemons/openvpn/src/nm-openvpn-service.c
		- Grab user routes from dbus message
		- Free all string arrays we got from dbus


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1463 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-13 02:01:44 +00:00
Dan Williams
db7403d3f4 2006-01-16 Dan Williams <dcbw@redhat.com>
Apply the PtP Address bits of a patch from Tim Niemueller

	* src/nm-ip4-config.[ch]
		- Add ip4_ptp_address member to object
		- (nm_ip4_config_copy): copy ptp address too
		- (nm_ip4_config_get_ptp_address, nm_ip4_config_set_ptp_address):
			new functions
		- (nm_ip4_config_to_rtnl_addr): use ptp address when asked to,
			rather than local tunnel ip address

	* src/vpn-manager/nm-vpn-service.c
		- (print_vpn_config): update for PtP address
		- (nm_vpn_service_stage4_ip_config_get): switch parsing to
			DBusMessageIters in preparation for getting routes from the VPN
			service daemons too

	* vpn-daemons/openvpn/src/nm-openvpn-service-openvpn-helper.c
		- (send_config_info): update for PtP address, clean up code
		- (main): update for PtP address, clean up code, fix typo

	* vpn-daemons/openvpn/src/nm-openvpn-service.c
		- (nm_openvpn_dbus_process_helper_ip4_config): update for PtP address

	* vpn-daemons/pptp/src/nm-pptp-service-pppd-plugin.c
		- (pptp_ip_up): update for PtP address

	* vpn-daemons/pptp/src/nm-pptp-service.c
		- (nm_pptp_dbus_process_helper_ip4_config): update for PtP address

	* vpn-daemons/vpnc/src/nm-vpnc-service.c
		- (print_vpn_config): update for PtP address
		- (nm_vpnc_dbus_process_helper_ip4_config): update for PtP address


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1346 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 22:58:13 +00:00
Dan Williams
6b8b163de1 G_GNU_PRETTY_FUNCTION -> G_STRFUNC
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1345 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 22:26:18 +00:00
Robert Love
923b6fab33 misc compile fixes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1264 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-04 18:07:14 +00:00
Dan Williams
6bcf90acf2 2005-12-06 Dan Williams <dcbw@redhat.com>
* Move NetworkManager.h -> include/NetworkManager.h
	* Split out VPN stuff to include/NetworkManagerVPN.h
	* Fix up makefiles to include new location
	* Fix up sources to include NetworkManagerVPN.h


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1130 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-06 23:37:09 +00:00
Christopher Aillon
0aa2f997e4 2005-10-27 Christopher Aillon <caillon@redhat.com>
* src/nm-vpn-service.c: Only signal the bus that state
	changed	if old_state != new_state


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1083 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-28 06:16:31 +00:00
Robert Love
8a0de324cf remove unused variables, labels, and a function.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1021 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-10-12 19:11:21 +00:00
Dan Williams
a326781e61 Fix debug info printout compile error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@975 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-26 14:53:22 +00:00
Dan Williams
5c46be7149 2005-09-07 Dan Williams <dcbw@redhat.com>
* The great VPN Manager rewrite of 2005


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@946 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-07 19:12:52 +00:00
Christopher Aillon
31027d4d42 2005-09-07 Christopher Aillon <caillon@redhat.com>
* gnome/applet/menu-items.c:
	* gnome/applet/nm-device.c:
	* gnome/applet/wireless-network.c:
	* gnome/libnm_glib/libnm_glib.c:
	* src/NetworkManagerDbusUtils.c:
	* vpn-daemons/vpnc/src/nm-vpnc-service.c:
	g_malloc0 doesn't return NULL


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@944 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-09-07 06:44:42 +00:00
Christopher Aillon
2ea235020b 2005-08-26 Christopher Aillon <caillon@redhat.com>
* Fix up VPN state handling between the applet and NetworkManager,
		so that the applet doesn't show a VPN as connected when one
		really is not
			- The applet no longer has a pointer to the active VPN's
				name, but tracks each VPNs state individually
			- NM no longer has a "getActiveVPNConnection" method
			- NM no longer broadcasts the "VPNConnectionChange" signal
			- NM now broadcasts a "VPNConnectionStateChange" signal
				whenever the state of a VPN changes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@902 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-08-26 23:36:35 +00:00