Commit graph

37 commits

Author SHA1 Message Date
Antony Mee
a7f1b4a195 * Make the DBUS dict interface the default (use configure option to select
the old interface)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2225 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 18:24:40 +00:00
Antony Mee
f77c55c763 * Updates cvs ignore
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2218 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 18:20:21 +00:00
Antony Mee
7c66269c9d Patch from Helmut Schaa <hschaa suse de>
* Let nm-ppp-starter die gracefully even if
    pppd exits badly


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2214 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-01-07 17:17:44 +00:00
Dan Williams
8e541d71cf 2006-12-03 Dan Williams <dcbw@redhat.com>
Patch from Nathaniel McCallum <nathaniel@natemccallum.com>

	* properties/nm-ppp-dialog.glade
	  properties/nm-ppp-properties.c
	  src/nm-ppp-starter.c
		- Add option for Stateful MPPE


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2156 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-12-04 03:48:12 +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
Antony Mee
21ef5bdb21 * Finally re-committing changes to allow the plugin to use the new
NetworkManager DBUS dict based VPN interface. (This allows the MTU
    of a VPN connection to be passed back to NetworkManager)
     - Currently disabled by default, need to add --enable-nm-vpn-dbus-dict
       to configure.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2032 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-09-20 15:04:27 +00:00
Antony Mee
fe5aa56240 * Added some ifdef magic to handle VERSION or PPPD_VERSION being defined
* Changed -DVERSION to -DNM_VERSION in the CPPFLAGS
  * Moved 2.4.4 headers to the correct location


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1946 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-10 10:10:17 +00:00
Dan Williams
a277f7884d update .cvsignore files
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1943 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-07 18:14:05 +00:00
Antony Mee
66e2f92407 * Commented some more unused bits and pieces
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1933 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-06 00:45:44 +00:00
Antony Mee
919715eb41 * Commented unused nm_ppp_dbus_handle_chap_check
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1932 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-06 00:17:19 +00:00
Antony Mee
0a0faf830e * Added 2.4.4 headers in source
* Tidied the directory structure to make the autoconf stuff
    a bit easier.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1930 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 21:57:03 +00:00
Antony Mee
6d5ec61465 * Added 2.4.4b1 version of the headers to the source tree
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1929 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:32:08 +00:00
Antony Mee
5bf591af74 * Moved the pppd headers to a directory based on the pppd version
and included some automake stuff to give a -I option for
    the correct directory.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1927 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:25:36 +00:00
Antony Mee
d15e9d690e * Added DBUS dict routines from NetworkManager/libnm-util that are
necessary for the new dict based VPN interface. (Until a better
    way without this repetition can be found)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1926 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-05 10:24:00 +00:00
Antony Mee
89b081181b * Tidied some indenting
* Removed spurious "dbus_message_unref" calls


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1919 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 12:17:04 +00:00
Antony Mee
a2f637c712 * Add handling of refuse-eap,refuse-chap,refuse-mschap and require-mppe-128
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1918 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 11:05:57 +00:00
Antony Mee
8da8ab101f * Replace a couple of NULL error messages with something useful
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1916 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-04 10:34:06 +00:00
Antony Mee
62c65522e0 * Use options from the ppp-extra option having checked
they are in the allowed list.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1915 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 12:44:45 +00:00
Antony Mee
3a6964a6a6 * Backed out the dict patch change (till it has been accepted in NM)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1911 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 11:14:48 +00:00
Antony Mee
5f753f1417 * Remove duplicate require-mppe lines
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1910 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-03 10:55:36 +00:00
Antony Mee
8456fb551f * improve the handling of auth_items to
prevent possible double g_free (Fixed bug #344970)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1829 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-15 11:36:14 +00:00
Antony Mee
4fe27a22b2 * Add better error messages on connection failure
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1819 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-12 10:59:53 +00:00
Antony Mee
90228d41f6 * GPRS over Bluetooth working (with T610 and Vodafone)
- connect scripts is hard coded as it is at present clear
        to what extent it must be parameterised.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1809 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 12:34:48 +00:00
Antony Mee
4099bf2704 * Support for GPRS over Bluetooth 97% complete
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1808 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 03:08:38 +00:00
Antony Mee
4dda72e66a * Generalised pppd oriented implementation.
* General configuration.
 * Runs pppd async. (allows pppd to fork a child)
 * Fixed missing files at compile.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1805 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-06 19:58:25 +00:00
Antony Mee
87a039a1c2 Missing header file (mistakenly not chacked in already)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1797 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-03 03:39:21 +00:00
Antony Mee
771b93a674 * DBUS revamp is complete possible to have various
authentication methods, ptys etc.
  * version bumped to 0.6.9 to bring closer in line with NM
  * nm-pptp-service-pppd-plugin.c -> nm-pppd-plugin.c:
    The pppd plugin has now been generalised to work with
    any ppp protocol. (Options do not exist in the config
    dialog yet however)
  * src/Makefile.am: fixed to install pppd plugin correctly
    (unsure about -fPIC usage!)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1790 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-02 07:10:01 +00:00
Antony Mee
8e193af7d6 * fixed segfault on acquiring IP4Config info
* use "require-mppe" option instead of "mppe required"
   which was associated with the mppe-mppc patch rather
   than the mppe included in pppd >= 2.4.3 and kernel >= 2.6.15


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1789 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-31 02:57:13 +00:00
Antony Mee
676c699036 * free dbus error object in plugin initialization
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1788 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-31 02:54:27 +00:00
Dan Williams
a567dca2ad 2006-04-23 Dan Williams <dcbw@redhat.com>
Patch from j@bootlab.org
	* src/Makefile.am: add missing files so make distcheck works


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1701 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-23 17:45:31 +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
Dan Williams
41d4988935 2006-02-12 Dan Williams <dcbw@redhat.com>
* vpn-daemons/pptp/src/pppd/patchlevel.h
	* vpn-daemons/pptp/src/nm-pptp-service-pppd-plugin.c
		- Rename VERSION -> PPPD_VERSION to avoid conflict with the
			Makefile-defined VERSION


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1464 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-13 02:05:31 +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
Antony Mee
f8847439ae * include NetworkManagerVPN.h
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1454 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-06 14:09:51 +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
Antony Mee
25e0af63e8 Initial check in on NetworkManager PPTP VPN plugin (used pppd)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1220 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-12-21 21:50:07 +00:00