Commit Graph

21088 Commits

Author SHA1 Message Date
Dan Williams
1666852c0d Doesn't need iwlib.h
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3459 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 21:05:11 +00:00
Dan Williams
2948bbe1a1 Cleanup ioctl handling
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3458 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 20:37:48 +00:00
Dan Williams
753fcec68e Add missing includes
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3457 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 18:52:13 +00:00
Dan Williams
96d96766fb Don't try to unref a NULL GIOChannel
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3456 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 18:51:00 +00:00
Dan Williams
013251281f 2008-03-14 Dan Williams <dcbw@redhat.com>
* src/ppp-manager/nm-ppp-manager.c
		- (impl_ppp_manager_need_secrets): since it's asynchronous now, it
			should only take the DBusGMethodInvocation argument, not user/pass
			too.  With dbus-glib, async functions only take 2 C arguments since
			the real dbus method arguments get passed back with
			dbus_g_method_return()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3455 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 18:49:34 +00:00
Ilkka Tuohela
54acf5df49 Updated Finnish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3454 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 06:55:01 +00:00
Tambet Ingo
24adb16ef6 2008-03-13 Tambet Ingo <tambet@gmail.com>
* system-settings/plugins/ifcfg-suse/plugin.c (update_default_routes):
	Adapt the changes of NMSettingIP4Config.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3453 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 22:07:51 +00:00
Dan Williams
2a9cfa049e Remove usage of iw_freq2float
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3452 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 20:54:40 +00:00
Dan Williams
fab1135d97 2008-03-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerUtils.c
	  src/NetworkManagerUtils.h
		- (nm_ether_ntop): replacement for iw_ether_ntop()

	* src/NetworkManagerAP.c
	  src/nm-device-802-11-wireless.c
	  src/nm-device-802-3-ethernet.c
		- s/iw_ether_ntop/nm_ether_ntop/g



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3451 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 20:52:23 +00:00
Dan Williams
48f7c484c5 add missing include
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3450 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 20:30:39 +00:00
Dan Williams
5fa56a8ba4 2008-03-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (update_routing_and_dns): never set the default route through an
			IPv4LL addressed device



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3449 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 20:25:06 +00:00
Dan Williams
6cfaab9c0c 2008-03-13 Dan Williams <dcbw@redhat.com>
* NetworkManagerUtils.c
	  NetworkManagerUtils.h
		- Remove NMSock stuff
		- Remove the completion stuff

	* nm-device.c
	  nm-device.h
	  NetworkManager.c
	  NetworkManagerSystem.c
	  autoip.c
	  nm-device-802-11-wireless.c
	  nm-device-802-3-ethernet.c
		- Remove NMSock and completion stuff
		- Remove nm_ioctl_info()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3448 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 19:31:08 +00:00
Dan Williams
de4d3703ce 2008-03-13 Dan Williams <dcbw@redhat.com>
* nm-openvpn-service.name.in
		- Fix for 64 bit compat (gnome.org #522231)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3446 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 14:15:34 +00:00
Inaki Larranaga Murgoitio
bfb9878442 2008-03-13 Inaki Larranaga Murgoitio <dooteo@euskalgnu.org>
* eu.po: Updated Basque translation.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3445 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 10:35:11 +00:00
Dan Williams
3ba6495785 2008-03-12 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (merge_ip4_config): avoid duplicates



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3444 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 03:52:50 +00:00
Dan Williams
1cfb4db69f 2008-03-12 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-ip4-config.c
	  libnm-util/nm-setting-ip4-config.h
		- Remove 'manual' and 'autoip' properties
		- Add 'method' property
		- (verify): fix verification with 'method'
		- (finalize): free 'method'
		- (set_property, get_property, nm_setting_ip4_config_class_init): fix
			up for 'method'

	* src/nm-device.c
		- (real_act_stage3_ip_config_start): check IP4Config method
		- (nm_device_new_ip4_autoip_config): add a note about not sucking in
			the future
		- (merge_ip4_config): IP settings are valid with DHCP too
		- (real_act_stage4_get_ip4_config): handle all IP4Config methods
		- (real_act_stage4_ip_config_timeout): don't do autoip on DHCP timeout

	* src/nm-device-802-11-wireless.c
		- (real_act_stage3_ip_config_start): remove; autoip only on demand
		- (real_act_stage4_get_ip4_config): just chain up to parent; autoip
			only on demand

	* system-settings/plugins/ifcfg-fedora/parser.c
	  system-settings/plugins/ifcfg-suse/parser.c
		- (make_ip4_setting): fix up for 'method'



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3443 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-13 03:11:02 +00:00
Dan Williams
d5efb7be6d 2008-03-12 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg-fedora/parser.c
	  system-settings/plugins/ifcfg-fedora/parser.h
		- (get_ifcfg_name): ignore more file suffixes
		- (is_wireless_device): fix check for ifcfgs that have no TYPE



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3442 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 22:40:25 +00:00
Dan Williams
d0e629a8bb Fix Arch backend compilation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3441 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 20:53:11 +00:00
Dan Williams
6f84428f56 2008-03-12 Dan Williams <dcbw@redhat.com>
* configure.in
		- Bring in the bits of gnome-common we actually use (all 15 lines)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3440 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 19:45:05 +00:00
Dan Williams
ad62f1f68e Don't use GNOMELOCALDIR
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3439 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 19:44:26 +00:00
Dan Williams
662ad38328 Remove un-needed defines
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3438 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 19:44:00 +00:00
Dan Williams
c112c5b041 2008-03-12 Dan Williams <dcbw@redhat.com>
* POTFILES.in: add missing translatables



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3437 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 18:36:18 +00:00
Dan Williams
feb1da3072 Make it easier for translators
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3436 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 18:35:35 +00:00
Dan Williams
e5e813b63c 2008-03-12 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg-fedora/plugin.c
		- (write_auto_wired_connection): new function; write out an auto
			wired connection file since the applet isn't doing it any more
		- (reload_all_connections): write out the auto wired connection file
			if there aren't any wired connections already
		- (init): don't leak a GError



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3435 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 18:32:46 +00:00
Dan Williams
c9315b44e9 2008-03-12 Dan Williams <dcbw@redhat.com>
* src/nm-device-interface.c
		- (nm_device_interface_activate): print the ID of the connection
			that's about to be activated



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3434 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 18:31:00 +00:00
Dan Williams
324e863903 Autoconnect PPPoE too
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3433 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 18:30:01 +00:00
Dan Williams
ea7fd7fffd 2008-03-12 Dan Williams <dcbw@redhat.com>
Harmonize the 802.11 bitrate API

	* introspection/nm-access-point.xml
		- 'Rate' -> 'MaxBitrate'; clarify units

	* introspection/nm-device-802-11-wireless.xml
		- Clarify units of 'Bitrate'

	* src/NetworkManagerAP.c
	  src/NetworkManagerAP.h
		- (set_property, get_property, nm_ap_class_init): rename 'rate'
			property to 'max-bitrate'
		- (foreach_property_cb): convert rate to Kb/s

	* src/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_get_bitrate): return rate in Kb/s

	* libnm-glib/nm-access-point.c
	  libnm-glib/nm-access-point.h
		- 'rate' -> 'max-bitrate'

	* test/nm-tool.c
	  libnm-glib/libnm-glib-test.c
		- Fix up for these changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3432 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 17:44:39 +00:00
Dan Williams
7896d4552d 2008-03-12 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (nm_device_set_ip4_config): don't send property notifications when
			the ip4 config is set to NULL; it causes a PropertyChanged signal
			which dbus-glib can't parse because the value is NULL, which isn't
			a legal object path.  Setting the IP4 config to NULL is only
			valid when deactivating a device anyway, so the device state change
			will alert listeners that the ip4 config is invalid.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3431 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 17:08:59 +00:00
Dan Williams
a5a8aa0801 2008-03-12 Dan Williams <dcbw@redhat.com>
* src/nm-properties-changed-signal.c
		- (add_to_string): better handling of NULL objects



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3430 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 17:01:24 +00:00
Dan Williams
348cce0c20 Turn off property-changed signal debugging
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3429 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 16:15:15 +00:00
Dan Williams
f30cf17bf7 2008-03-12 Dan Williams <dcbw@redhat.com>
Move the 'carrier' property from NMDevice to NMDevice8023Ethernet;
	convert the libnm-glib NMDevice8023Ethernet to cached properties

	* introspection/nm-device-802-3-ethernet.xml
		- New 'Carrier' property
		- New 'PropertiesChanged' signal

	* introspection/nm-device.xml
		- Remove 'Carrier' property
		- Remove 'CarrierChanged' signal

	* src/nm-device-interface.c
	  src/nm-device-interface.h
		- (nm_device_interface_init): remove 'carrier' property and
			'carrier-changed' signal

	* src/nm-device.c
	  src/nm-device.h
		- (nm_device_get_carrier, nm_device_set_carrier): remove
		- (nm_device_activate_stage5_ip_config_commit): don't bother updating
			the link here; wired device will handle that
		- (handle_dhcp_lease_change): don't bother updating link here
		- (get_property, nm_device_class_init): remove carrier property

	* src/nm-device-802-11-wireless.c
		- (real_update_link, nm_device_802_11_wireless_class_init): remove
			real_update_link(); wireless devices don't use carrier at all
		- (link_timeout_cb, supplicant_iface_state_cb_handler,
		   supplicant_iface_connection_state_cb_handler,
		   supplicant_mgr_state_cb_handler): remove anything to do with carrier

	* src/nm-device-802-3-ethernet.c
	  src/nm-device-802-3-ethernet.h
		- (nm_device_802_3_ethernet_carrier_on,
		   nm_device_802_3_ethernet_carrier_off, constructor): use set_carrier()
			instead of nm_device_set_carrier()
		- (device_state_changed): update link from sysfs on activation;
			replaces real_update_link()
		- (real_update_link): remove, replaced by device_state_changed()
		- (nm_device_802_3_ethernet_get_carrier, set_carrier): new functions
		- (nm_device_802_3_ethernet_get_speed): move up with other getters/setters
		- (real_get_generic_capabilities, real_can_interrupt_activation): use
			new get_carrier function
		- (get_property): add 'carrier' property
		- (nm_device_802_3_ethernet_class_init): add 'carrier' property and
			hook into property-changed signal helper

	* src/NetworkManagerPolicy.c
		- (device_carrier_changed): will only ever be called with a wired device
		- (device_added): only hook up to carrier-changed for wired devices

	* libnm-glib/nm-device.c
	  libnm-glib/nm-device.h
		- (constructor, nm_device_class_init): remove carrier-changed signal
		- (device_carrier_changed_proxy): remove; unused
		- (nm_device_get_carrier): remove; carrier a property of wired devices

	* libnm-glib/nm-device-802-3-ethernet.c
	  libnm-glib/nm-device-802-3-ethernet.h
		- Convert to cached properties like AP and Wireless objects
		- (nm_device_802_3_ethernet_get_hw_address): now returns a 'const char *'
			instead of a 'char *', return value should not be freed
		- (nm_device_802_3_ethernet_get_carrier): return current carrier status
		- (constructor): hook into properties-changed helper
		- (set_property, get_property): new functions
		- (nm_device_802_3_ethernet_class_init): export GObject properties

	* test/nm-tool.c
		- (detail_device): strdup the wired hardware address too since it's
			cached now

	* libnm-glib/libnm-glib-test.c
		- (dump_wired): strdup the wired hardware address too since it's
			cached now



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3428 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 16:12:39 +00:00
Dan Williams
763913b200 2008-03-12 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-ip4-config.c
	  libnm-util/nm-setting-ip4-config.h
		- (set_property, get_property, nm_setting_ip4_config_class_init): add
			the 'autoip' property from the spec



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3427 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 12:45:20 +00:00
Dan Williams
6103540d11 2008-03-11 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerGeneric.c
	  src/backends/NetworkManagerGeneric.h
		- (nm_generic_device_get_use_dhcp): remove



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3426 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-12 02:28:11 +00:00
Dan Williams
3c0df72352 2008-03-11 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (nm_device_deactivate): don't need to munge DNS here; that gets done
			already in nm_device_set_ip4_config()
		- (handle_dhcp_lease_change): fail the device if setting the IP4Config
			due to a DHCP rebind fails
		- (nm_device_set_ip4_config): send property notifications when the
			ip4 config changes
		- (get_property): only report IP4Config property during valid states

	* src/NetworkManagerPolicy.c
		- (update_routing_and_dns): ignore devices that don't have an ip4
			config; add parameter 'force_update' to allow callers to specify
			that changes should be made even if the default device doesn't change
		- (device_ip4_config_changed): update DNS and routing when the device's
			IP4Config changes, like for DHCP updates
		- (device_added): listen for ip4-config property changes



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3425 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 22:26:46 +00:00
Dan Williams
5663f3ba40 2008-03-11 Dan Williams <dcbw@redhat.com>
Fix address handling as a result of DHCP rebind/renew/reboot.

	* src/NetworkManagerSystem.c
		- (check_one_address): delete an address if it doesn't match a given
			one for the same interface
		- (nm_system_device_set_from_ip4_config): don't flush the default route,
			be smarter about flushing addresses (only flush ones that don't
			match the one we're about to apply)

	* src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerSuSE.c
	  src/backends/NetworkManagerArch.c
	  src/backends/NetworkManagerSlackware.c
	  src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerPaldo.c
	  src/backends/NetworkManagerFrugalware.c
	  src/backends/NetworkManagerGentoo.c
		- (nm_system_delete_default_route): remove

	* src/backends/NetworkManagerGeneric.c
	  src/backends/NetworkManagerGeneric.h
		- (nm_generic_enable_loopback): fix the loopback device label
		- (nm_generic_delete_default_route): remove; no longer used



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3424 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 22:21:25 +00:00
Dan Williams
7009f91036 2008-03-11 Dan Williams <dcbw@redhat.com>
* src/nm-device-interface.h
		- Delimit property name words with '-', otherwise g_object_notify()
			doesn't work the way we expect



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3423 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 21:33:52 +00:00
Dan Williams
bc07d81a78 Clarify temporal validity of the IP4Config property
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3422 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 21:29:37 +00:00
Tambet Ingo
48f6638f3d 2008-03-11 Tambet Ingo <tambet@gmail.com>
* src/nm-hal-manager.c (create_device_and_add_to_list): Don't ignore USB devices.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3421 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 17:36:28 +00:00
Dan Williams
c39a038acd fix mis-merge
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3420 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 16:42:17 +00:00
Dan Williams
60da632512 2008-03-11 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerPolicy.c
		- (update_routing_and_dns): don't change anything if the default device
			hasn't changed; print something out when switching the default route
			and DNS



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3419 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 16:42:00 +00:00
Tambet Ingo
cc2675ebb1 Implement PPPoE.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3418 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 16:37:41 +00:00
Dan Williams
d03bed314f 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (handle_dhcp_lease_change): apply an IP4 config to a device in
			response to a DHCP lease change
		- (dhcp_state_changed): handle DHCP lease changes while activated
		- (nm_device_set_ip4_config): remove a previously set named config
			when setting an ip4 config



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3417 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-11 02:46:35 +00:00
Dan Williams
0ff24de792 Turn off debugging info again
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3416 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 22:08:36 +00:00
Dan Williams
bf104fbc78 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-serial-device.c
		- (nm_serial_device_send_command): report errno on error
		- (get_reply_got_data): limit the size of the overall buffer
		- (wait_for_reply_info_destroy): destroy result string
		- (wait_for_reply_got_data): append received data to an overall buffer
			until timeout, filled buffer, or error instead of keeping a per-call
			buffer.  Some devices send data slowly enough that this function
			gets called multiple times for the same command stream.
		- (nm_serial_device_wait_for_reply): initialize overall buffer for
			wait_for_reply_got_data() here



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3415 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 21:34:42 +00:00
Dan Williams
e4bbf230d2 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-cdma-device.c
		- (do_dial, init_modem): handle errors from
			nm_serial_device_send_command_string()

	* src/nm-gsm-device.c
		- (do_dial, manual_registration, automatic_registration_get_network,
		   automatic_registration, enter_pin, check_pin, init_modem): handle
			errors from nm_serial_device_send_command_string()



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3414 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 21:19:45 +00:00
Dan Williams
43fe2c90c4 2008-03-10 Dan Williams <dcbw@redhat.com>
Patch based on ideas suggested by Bas Zoetekouw <bas@debian.org>

	* src/named-manager/nm-named-manager.c
		- (compute_searches): prefer searches before domains
		- (compute_domain): new function
		- (rewrite_resolv_conf): write out the 'domain' and 'searches' options
		- (merge_one_ip4_config): if there are no searches in the source config,
			merge domains of the source config into the target config
		- (compute_nameservers): make formatting of resolv.conf a bit nicer



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3413 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 19:57:55 +00:00
Dan Williams
3f29628a42 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-serial-device.c
		- (get_reply_got_data): clean up indentation, shrink serial buffer
		- (wait_for_reply_got_data): try to handle slower serial devices where
			the reply is broken up into multiple reads by concatenating replies
			together until either an error is received or the search string is
			found



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3412 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 19:36:12 +00:00
Dan Williams
483b5f8ebd 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-device.c
		- (nm_device_bring_down): deactivate the device if it's activating too,
			not just if it's already activated.  This makes sure that everything
			from an association attempt is cleaned up (like DHCP for example)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3411 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 19:33:36 +00:00
Dan Williams
be4addd6ae 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-serial-device.c
		- (config_fd): report error from TCSETA
		- (nm_serial_device_open): fail when config_fd() fails



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3410 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 13:10:17 +00:00
Dan Williams
6ed1b8454a 2008-03-10 Dan Williams <dcbw@redhat.com>
* src/nm-ip4-config.c
		- (nm_ip4_config_init): allocate searches list
		- (finalize): free searches list



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3409 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-10 13:08:37 +00:00