Commit graph

420 commits

Author SHA1 Message Date
Robert Love
35d4811ae4 2005-07-05 Robert Love <rml@novell.com>
* src/NetworkManagerSystem.c: bail out if asked to set a gateway of
          zero.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@782 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-07-05 15:06:48 +00:00
Robert Love
94f05a42d2 2005-07-05 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: use link-local (autoip) on DHCP failure
          on wired or unencrypted wireless.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@781 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-07-05 15:05:33 +00:00
Robert Love
12a318855c 2005-07-01 Robert Love <rml@novell.com>
* src/NetworkManagersystem.c: Print the error via strerror().


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@775 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-07-01 18:41:17 +00:00
Robert Love
04d812f8af 2005-06-30 Robert Love <rml@novell.com>
* gnome/vpn-properties/nm-vpn-properties.c: display an error dialog and
          then exit if the glade file is not found.  currently the application
          just hangs.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@774 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 20:30:46 +00:00
Robert Love
8a93748305 2005-06-30 Robert Love <rml@novell.com>
* src/nm-dbus-nm.c: Patch by Bill Moss <bmoss@clemson.edu> to
          explicitly up all interfaces on wake from sleep.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@772 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 18:50:45 +00:00
Robert Love
d1d4bcdd33 2005-06-30 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Add right-click menu item "Connection Info"
          with information about the currently active connection.
        * gnome/applet/applet.h: (ditto)
        * gnome/applet/wireless-applet.glade: (ditto), new file


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@771 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 18:48:54 +00:00
Robert Love
911ed8d02a 2005-06-30 Robert Love <rml@novell.com>
* README: update to reflect nm-applet replacing NetworkManagerInfo.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@768 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 14:35:46 +00:00
Robert Love
ae0754c1e1 2005-06-30 Robert Love <rml@novell.com>
* configure.in: look in "/usr/sbin" for dhcdbd, too. (it shouldn't be
	  in /sbin unless D-BUS is, folks).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@767 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 14:34:17 +00:00
Robert Love
0b9da2df82 2005-06-30 Robert Love <rml@novell.com>
* gnome/applet/menu-items.c: whitespace, misc. cleanup.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@766 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 14:31:24 +00:00
Robert Love
72806fa701 2005-06-30 Robert Love <rml@novell.com>
* src/nm-dbus-nm.c: print when we sleep and wake up.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@765 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 14:29:49 +00:00
Robert Love
91426daecc 2005-06-30 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: g_malloc0 cannot fail.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@764 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-30 14:28:52 +00:00
Robert Love
bc343b9737 2005-06-27 Robert Love <rml@novell.com>
* src/nm-dbus-nm.c: fix "setWirelessEnabled" call for the enabling
	  case.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-27 14:02:29 +00:00
Robert Love
a458311b30 2005-06-27 Robert Love <rml@novell.com>
* gnome/applet/applet.c: make the 'Wireless Network Discovery' menu
	  items radios.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@759 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-27 14:00:58 +00:00
Robert Love
4515cc9bb7 2005-06-26 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: be specific about which device in
          nm_info() message.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@757 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-26 17:18:35 +00:00
Adam Weinberger
496465997c 2005-06-23 Adam Weinberger <adamw@gnome.org>
* src/nm-netlink-monitor.c: correct spelling error.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@747 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 23:07:24 +00:00
Robert Love
3b37105648 2005-06-23 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: gnome keyring support!
        * gnome/applet/passphrase-dialog.c: more of that keyring!


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@745 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 21:02:40 +00:00
Robert Love
1e2564a203 2005-06-23 Robert Love <rml@novell.com>
* configure.in: remove extraneous GNOMEKEYRING directives.
        * gnome/applet/Makefile.am: s/GNOMEKEYRING/GNOME_KEYRING/.
        * gnome/applet/applet.c: nmwa_icons_init: make style local.
        * gnome/applet/passphrase-dialog.c: whitespace.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@744 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 20:34:57 +00:00
Robert Love
6bb9f27dbf 2005-06-23 Robert Love <rml@novell.com>
* src/NetworkManagerDevice.c: division in assignment was flipped.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@743 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 20:10:41 +00:00
David Zeuthen
ad6dc012a0 2005-06-23 David Zeuthen <david@fubar.dk>
* gnome/applet/vpn-password-dialog.c (child_stdout_data_cb): Send a
        signal to the child to indicate that we got what we wanted when we
        see two new-lines right after each other.
        (nmwa_vpn_request_password): Pass a structure with several members
        instead of just the passwords


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@741 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 19:47:37 +00:00
Dan Williams
e8b20dbac2 2005-06-23 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
	  src/NetworkManagerMain.h
		- (nm_get_hal_ctx): new function, move Hal initialization code here
		- (nm_hal_init): new function, init libhal context then add devices
		- (nm_hal_deinit): new function, clean up libhal context
		- (nm_data_free): Move Hal cleanup here
		- (main): check whether Hal is running, and if so, get a list of
			network devices from it

	* src/NetworkManagerDbus.c
		- (nm_dbus_signal_filter): trap NameOwnerChanged signals for Hal,
			and when it appears, get a list of network devices from it.  If
			Hal goes away, clean up the libhal context


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@738 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 12:20:32 +00:00
Robert Love
e12bdee314 2005-06-22 Robert Love <rml@novell.com>
* dispatcher-daemon/NetworkManagerDispatcher.c: fix FIXME: check
          permissions of scripts before executing.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@737 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-23 02:49:01 +00:00
Robert Love
1946bc567f 2005-06-21 Robert Love <rml@novell.com>
* src/backends/NetworkManagerSuSE.c: cleanup.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@734 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-21 20:41:52 +00:00
Robert Love
1e781d23d1 2005-06-21 Robert Love <rml@novell.com>
* initscript/SUSE/networkmanager: update


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@733 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-21 20:34:23 +00:00
Robert Love
10f3ca3f50 2005-06-21 Robert Love <rml@novell.com>
* gnome/applet/applet.c: use menu mnemonics.
        * gnome/applet/menu-items.c: (ditto)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@730 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-21 15:09:34 +00:00
Robert Love
28d334748b 2005-06-21 Robert Love <rml@novell.com>
* applet/applet-dbus-devices.c: mark non-static functions static.
	* applet/applet-dbus-vpn.c: (ditto)
	* applet/applet.c: (ditto)
	* applet/nm-device.h: (ditto)
	* applet/other-network-dialog.c: (ditto)
	* applet/passphrase-dialog.c: (ditto)
	* NetworkManager.c: (ditto)
	* NetworkManagerDbus.c: (ditto)
	* NetworkManagerDevice.c: (ditto)
	* NetworkManagerPolicy.c: (ditto)
	* NetworkManagerUtils.c: (ditto)
	* NetworkManagerWireless.c: (ditto)
	* NetworkManagerWireless.h: (ditto)
	* nm-netlink-monitor.c: (ditto)
	* applet/applet-dbus-info.c: (ditto), add FIXME's.
	* vpn-manager/nm-dbus-vpn.c: (ditto), remove shadowed variable.
	* autoip.c: include autoip.h.
	* autoip.h: new file.  define get_autoip().
	* nm-netlink-monitor.h: define nm_netlink_close_connection().
	* NetworkManagerDbus.h: remove duplicate definitions.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@728 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-21 15:07:01 +00:00
Robert Love
d6b8f80469 2005-06-20 Robert Love <rml@novell.com>
* Makefile.am: Add missing intltool-foo.in generated files to
	  EXTRA_DIST so that 'distcheck' works.  Also add DISTCLEANFILES
	  with the start of stuff to cleanup on 'distclea'.
	* configure.in: add AC_PROG_INTLTOOL macro so that we do the intltool
	  stuff right and 'distcheck' works.
	* po/POTFILES.in: Remove examples/python/systray/eggtrayicon.c.  If
	  we keep it, we need to add all of examples/* to EXTRA_DIST and do
	  Makefile.am for each.  And systray/Makefile needs to be redone.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@725 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-20 17:16:51 +00:00
Dan Williams
4e5b7f341e 2005-06-19 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
        - (nm_device_wireless_process_scan_results): scan every 20s when
            disconnected and scanning is ALWAYS_SCAN or WHEN_UNASSOCIATED


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@722 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-19 19:15:26 +00:00
Dan Williams
e5638d0eaa 2005-06-19 Dan Williams <dcbw@redhat.com>
* WEXT_DEBUG->IOCTL_DEBUG, extend checking to all ioctl() calls


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@720 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-19 19:07:47 +00:00
Ray Strode
984d79a076 2005-06-18 Ray Strode <rstrode@redhat.com>
* src/nm-netlink-monitor.c
	(nm_netlink_monitor_event_handler): check for the presence
	of either error condition not both.

	(nm_netlink_monitor_error_handler): emit error signal if
	error occurs.

	(nm_netlink_monitor_event_handler),
	(nm_netlink_monitor_error_handler),
	(nm_netlink_monitor_disconnect_handler): if an
	assertion fails disconnect the event handler to prevent
	infinite loops.

	* src/nm-netlink-monitor.h: add new error condition
	NM_NETLINK_MONITOR_ERROR_WAITING_FOR_SOCKET_DATA


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@719 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-19 04:09:20 +00:00
Ray Strode
292c381113 2005-06-18 Ray Strode <rstrode@redhat.com>
* src/nm-netlink-monitor.c
	(nm_netlink_monitor_event_handler): remove bogus < 0
	check on unsigned value and return early if the kernel
	didn't send any bytes.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@718 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-19 03:34:21 +00:00
Robert Love
6afac0c930 2005-06-17 Robert Love <rml@novell.com>
* initscript/SUSE/networkmanager: Change the Provides and default
        run levels


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@706 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 19:39:37 +00:00
Dan Williams
d071ab6902 2005-06-16 Dan Williams <dcbw@redhat.com>
Patch from Robert Love:
	* gnome/applet/applet.c
		- Beautify some applet menu item names


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@702 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 10:59:56 +00:00
David Zeuthen
e4ec2dab44 2005-06-17 David Zeuthen <davidz@redhat.com>
* gnome/vpn-properties/nm-vpn-ui-interface.h: Require users of this
        API to define NM_VPN_API_SUBJECT_TO_CHANGE to acknowledge API churn.
        Also add new methods can_export, import_file and export.

        * gnome/vpn-properties/nm-vpn-properties.glade: Add an Export button
        to the main UI

        * gnome/vpn-properties/nm-vpn-properties.c:
        Define NM_VPN_API_SUBJECT_TO_CHANGE so we can actually include
        nm-vpn-ui-interface.h.
        (update_edit_del_sensitivity): Also update "Export" sensitivity
        (add_vpn_connection): Also add new SVC_NAME column
        (import_settings): New function
        (retrieve_data_from_selected_connection): New function
        (edit_cb): Use retrieve_data_from_selected_connection to simplify
        this function
        (export_cb): New function
        (init_app): Also setup the "export" widget
        (main): Support the --import-service and --import-file commandline
        arguments

        * gnome/libnm_glib/libnm_glib.c (libnm_glib_dbus_filter): Also support
        D-BUS 0.34


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@700 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 04:23:07 +00:00
Dan Williams
ca78b2f849 2005-06-16 Dan Williams <dcbw@redhat.com>
Patch from Robert Love:
    * gnome/applet/menu-items.c
        - (network_menu_item_new): pass -1 as wireless network
            menu items height size request rather than ascent / 2


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@695 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 00:47:50 +00:00
Dan Williams
058a15490e 2005-06-16 Dan Williams <dcbw@redhat.com>
* Clean up wording in Wireless Scan Methods menu items and constants


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@693 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-17 00:36:08 +00:00
Robert Love
ad5b6b3838 2005-06-16 Robert Love <rml@novell.com>
* po/POTFILES.in
                - remove gtkcell* files


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@692 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 21:48:51 +00:00
Dan Williams
ea848843ab 2005-06-15 Dan Williams <dcbw@redhat.com>
Patch from Robert Love: make the applet stetic

	* gnome/applet/Makefile.am
		- Don't compile the gtkcellview and gtkcellrendererprogress files

	* gnome/applet/gtkcellview.h
	  gnome/applet/gtkcellview.c
	  gnome/applet/gtkcellrendererprogress.h
	  gnome/applet/gtkcellrendererprogress.c
		- Removed

	* gnome/applet/menu-items.c
		- Progress bars are 5:1 size ratio
		- Use GTK progress bars rather than internal ones


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@689 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 18:47:56 +00:00
Dan Williams
f14508aa27 2005-06-15 Dan Williams <dcbw@redhat.com>
Patch from Robert Love:
	* initscript/SUSE/networkmanager
		- Fix typo


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@688 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-16 18:39:03 +00:00
Dan Williams
ebf1265441 2005-06-15 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerSuSE.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerDebian.c
		- (set_ip4_config_from_resolv_conf): Fix typo I made, '==' -> '='


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@672 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-15 19:35:37 +00:00
Dan Williams
c37da06407 2005-06-15 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerDebian.c
		- Add nm_system_device_get_use_dhcp() to debian backend

	Patch from Kay Sievers:
	* src/backends/NetworkManagerSuSE.c
		- Update debian backend for static IP nameservers

	* src/NetworkManagerDevice.c
		- Actually set the device to use static IP or DHCP rather
			than always DHCP


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@671 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-15 12:15:34 +00:00
Dan Williams
a027621a47 2005-06-15 Dan Williams <dcbw@redhat.com>
Patch from Thom May:
	* src/backends/NetworkManagerDebian.c
		- Update debian backend for static IP nameservers


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@670 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-15 12:03:30 +00:00
Dan Williams
ecec2ec062 2005-06-15 Dan Williams <dcbw@redhat.com>
Patches from Robert Love:
	* gnome/applet/wireless-applet.glade
		- Tighten up wording

	* src/NetworkManagerDevice.c
		- Remove misplaced ';'

	* configure.in
	  initscript/Makefile.am
	  initscript/SUSE/Makefile.am
	  initscript/SUSE/networkmanager
		- Add SUSE initscript


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@669 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-15 11:59:43 +00:00
David Zeuthen
c357c61e35 2005-06-12 David Zeuthen <davidz@redhat.com>
* gnome/vpn-properties/nm-vpn-ui-interface.h: New file

	* gnome/vpn-properties/nm-vpn-properties.glade: New file

	* gnome/vpn-properties/nm-vpn-properties.c: New file

	* gnome/vpn-properties/Makefile.am: New file

	* src/vpn-manager/nm-vpn-manager.h: Rework prototypes to take an
	array of passwords

	* src/vpn-manager/nm-vpn-manager.c
	(nm_vpn_manager_activate_vpn_connection): Take an array of passwords
	instead of just a single one

	* src/vpn-manager/nm-dbus-vpn.c:
	(nm_dbus_vpn_get_vpn_connection_properties): Also append service_name
	here
	(nm_dbus_vpn_activate_connection): Rework to take an array of passwords

	* gnome/applet/vpn-password-dialog.h (nmwa_vpn_request_password):
	Change the interface here to give a list of passwords. Also, don't
	require username, but do require service

	* gnome/applet/vpn-password-dialog.c: Look up the VPN .name files for
	the binary for the auth-dialog and use that instead of putting up a
	dialog asking for a single password

	* gnome/applet/vpn-connection.[ch]: Don't remember the user_name,
	however do remember the service

	* gnome/applet/main.c (main): Setup i18n

	* gnome/applet/applet.c (nmwa_update_state): Add a line "VPN
	connection to '%s'" to the tooltip if we are connected using VPN
	(nmwa_menu_vpn_item_activate): Check last_attempt_success gconf
	key to determine whether we the auth-dialog needs to
	reprompt. Also cope with the fact that the auth-dialog now returns
	an array of passwords.
	(nmwa_menu_configure_vpn_item_activate): New handler for
	"Configure VPN..." menu item
	(nmwa_menu_add_vpn_menu): Add the "Configure VPN..." menu item
	(is_vpn_available): New function to determine if we got any
	NM-compatible VPN software installed
	(nmwa_menu_add_devices): Use is_vpn_available to add VPN menu
	items only if we have NM-compatible VPN software installed
	(nmwa_gconf_vpn_connections_notify_callback): Slightly rework the
	logic for detecting when VPN connections are removed

	* gnome/applet/applet-dbus.h: Removed the prototypes for
	nmwa_dbus_vpn_activate_connection, nmwa_dbus_vpn_deactivate_connection
	since these are defined elsewhere

	* gnome/applet/applet-dbus.c (set_vpn_last_attempt_status): New
	function used to keep track of whether the last attempt succeded
	(nmwa_dbus_filter): Update last_attempt according to whether the
	VPN connection could be established or not

	* gnome/applet/applet-dbus-vpn.h (nmwa_dbus_vpn_deactivate_connection):
	Change prototype to take an array of passwords, not just a single
	password

	* gnome/applet/applet-dbus-vpn.c (nmwa_dbus_vpn_properties_cb): Only
	update service, not user
	(nmwa_dbus_vpn_remove_one_vpn_connection): Check that applet->
	dbus_active_vpn_name is not NULL before using it
	(nmwa_dbus_vpn_activate_connection): Send the passwords as a
	string array instead of assuming a single password

	* gnome/applet/applet-dbus-info.c:
	(nmi_dbus_get_vpn_connection_properties): Use the logged in user for
	user name; don't read from gconf

	* gnome/applet/Makefile.am: Also export SYSCONFDIR and
	VPN_NAME_FILES_DIR

	* gnome/Makefile.am (SUBDIRS): Add vpn-properties

	* configure.in: Add checks for gmodule-2.0.
	Generate gnome/vpn-properties/Makefile. Don't generate any Makefile's
	in vpn-daemons nor vpn-daemons/vpnc. We have separate autotooled
	projects under vpn-daemons now.	 See vpn-daemons/vpnc/Changelog
	for details

	* vpn-daemons/Makefile.am: Removed

	* vpn-daemons/README: New file to describe extensions points for VPN
	software


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@664 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-12 14:35:59 +00:00
Dan Williams
34b9824214 2005-06-10 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerRedHat.c
		- (get_current_profile_name): new function, grab current network profile name from
			/etc/sysconfig/network
		- (set_ip4_config_from_resolv_conf): new function, parse a resolv.conf and
			update an IP4 Config structure's settings from it
		- (nm_system_device_get_system_config): if we're using static IP on this device,
			get DNS info from current network profile


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@661 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-10 05:12:39 +00:00
Dan Williams
b3bcfac619 2005-06-09 Dan Williams <dcbw@redhat.com>
Patch from Robert Love:
	* src/NetworkManagerDevice.c
	  src/NetworkManagerUtils.c
		- 64-bit build fixes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@660 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-10 03:47:47 +00:00
Dan Williams
8897c59efa 2005-06-09 Dan Williams <dcbw@redhat.com>
Patch from Kay Sievers and Robert Love:
	* configure.in
	  src/backends/Makefile.am
	  src/backends/NetworkManagerSuSE.c
		- Add SuSE support


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@659 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-10 03:43:15 +00:00
Dan Williams
bb36e068ba 2005-06-09 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
		- Add NMWirelessScanMethod enum for scan methods

	* gnome/applet/applet-dbus-devices.c
		- (nmwa_dbus_update_scanning_enabled_cb): remove
		- (nmwa_dbus_update_scanning_enabled): remove
		- (nmwa_dbus_update_devices): don't call nmwa_dbus_update_scanning_enabled() anymore
			since it got removed
		- (nmwa_dbus_enable_scanning): remove

	* gnome/applet/applet-dbus-info.c
		- (nmi_dbus_signal_update_scan_method): new function, signal NetworkManager to
			update the wireless scanning method from NMI
		- (nmi_dbus_get_wireless_scan_method): new function, return wireless scanning
			method value to NetworkManager
		- (nmi_dbus_info_message_handler): respond to the "getWirelessScanMethod" method call

	* gnome/applet/applet-dbus-info.h
		- Add prototype for nmi_dbus_signal_update_scan_method

	* gnome/applet/applet.c
		- (scanning_menu_update): new function, update one GtkCheckMenuItem from the
			Wireless Scanning menu based on current wireless scan method
		- (nmwa_menu_scanning_item_activate): new function, callback for GTK "activate"
			signal for Wireless Scanning menu items, tell NetworkManager the new method
			and update our menu items to make sure the right one is checked
		- (nmwa_set_scanning_enabled_cb): remove
		- (nmwa_context_menu_update): remove references to pause_scanning_item
		- (nmwa_context_menu_create): remove pause_scanning_item, and add new Wireless
			Scanning menu item
		- (nmwa_gconf_get_wireless_scan_method): new method, pull wireless scanning method
			from GConf
		- nmwa_gconf_networks_notify_callback -> nmwa_gconf_info_notify_callback: generalize
			so we get notified of preference values too
		- (nmwa_get_instance): monitor GCONF_PATH_WIRELESS rather than GCONF_PATH_WIRELESS_NETWORKS

	* gnome/applet/applet.h
		- GCONF_PATH_WIRELESS added, one level below GCONF_PATH_WIRELESS_NETWORKS
		- Add wireless scan method member to applet data
		- Remove pause_scanning_item, add Wireless Scanning submenu

	* src/NetworkManager.c
		- (nm_data_new): default to NM_SCAN_METHOD_ON
		- (main): grab scanning method from NMI if we can

	* src/NetworkManagerDbus.c
		- (nm_dbus_update_wireless_scan_method_cb): new function, callback from
			nm_dbus_update_wireless_scan_method()
		- (nm_dbus_update_wireless_scan_method): new function to grab scanning method
			from NMI
		- (nm_dbus_nmi_is_running): redundant function, removed
		- (nm_dbus_signal_filter): trap "WirelessScanMethodUpdate" signal, grab scanning method
			when NMI comes back

	* src/NetworkManagerDevice.c
		- (nm_device_is_activated): return TRUE if the device is activated
		- (nm_device_wireless_scan): don't scan if the scan method is OFF, or if its AUTO
			and we are activated

	* src/nm-dbus-nm.c
		- (nm_dbus_nm_set_scanning_enabled): removed
		- nm_dbus_nm_get_scanning_enabled -> nm_dbus_nm_get_wireless_scan_method
		- (nm_dbus_nm_methods_setup): remove [get | set] ScanningEnabled and add "getWirelessScanMethod"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@658 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-10 03:13:27 +00:00
Dan Williams
50d286eb31 2005-06-09 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
	  src/vpn-manager/nm-vpn-service.c
		- NM_VPN_STATE_ERROR -> NM_VPN_STATE_UNKNOWN (more consistent with other enums)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@656 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-06-10 02:47:09 +00:00
Dan Williams
82bf4f2b72 2005-05-27 Dan Williams <dcbw@redhat.com>
* vpn-daemons/vpnc/nm-vpnc-service.c
		- (vpnc_watch_cb): wait a bit before trying to read vpnc's pidfile.
			Should fix the bug where the VPN connection terminates the first time.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@650 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-27 14:19:30 +00:00
Dan Williams
74a2ffa9b7 2005-05-20 Dan Williams <dcbw@redhat.com>
* NetworkManager.h
		- Differentiate VPN config signals between bad VPN config options
			and bad IP config

	* gnome/applet/applet-dbus-info.h
		- Add prototypes for wireless network and vpn connection update functions

	* gnome/applet/applet-dbus.c
		- (nmwa_dbus_filter): trap new VPN config error signals from NetworkManager

	* gnome/applet/applet.c
		- (nmwa_schedule_vpn_failure_dialog): new dialog text for new VPN config
			error signals
		- (nmwa_gconf_networks_notify_cb): re-enable wireless network change notify
			propogation to NetworkManager
		- (nmwa_gconf_vpn_connections_notify_cb): re-enable vpn connection change
			notify propogation to NetworkManager

	* src/NetworkManagerDbus.c
		- (nm_dbus_update_one_allowed_network): make sure to specify which AP list we
			are updating so a network can be removed from it if necessary

	* src/vpn-manager/nm-vpn-manager.c
		- (nm_vpn_manager_process_signal): trap new vpn config error signals

	* vpn-daemons/vpnc/nm-vpnc-service.c
		- (nm_vpnc_dbus_signal_failure): generalize function for all VPN error signals
		- (nm_vpnc_dbus_signal_launch_failed): remove
		- (nm_vpnc_dbus_signal_connect_failed): remove
		- (nm_vpnc_helper_timer_cb): update for new generalized error signal function
		- (nm_vpnc_schedule_helper_timer): increase timeout to 10s
		- (vpnc_watch_cb): don't whine about exit code if vpnc exited cleanly, update
			for new generalized error signal function, remove config file stuff
		- (nm_vpnc_start_vpnc_binary): grab a stdin pipe to vpnc after spawning it so
			we can write configuration options to it
		- (nm_vpnc_config_file_generate): removed
		- (nm_vpnc_config_write): write configuration options to the vpnc stdin pipe
		- (nm_vpnc_config_options_validate): validate the config options we receive
			from NetworkManager to block potential exploits
		- (nm_vpnc_dbus_handle_start_vpn): call option validation function before
			starting vpnc
		- (nm_vpnc_dbus_process_helper_config_error): actually propogate config error
			to NetworkManager


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@646 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-21 04:33:19 +00:00