Commit Graph

13873 Commits

Author SHA1 Message Date
Dan Williams
14e671bdea 2007-12-18 Dan Williams <dcbw@redhat.com>
Base the NMNetlinkMonitor class on libnl instead of hand-rolled netlink.

	* src/nm-netlink-monitor.c
	  src/nm-netlink-monitor.h
		- Remove handrolled netlink, use libnl instead

	* src/nm-device-802-3-ethernet.c
		- (constructor, nm_device_802_3_ethernet_carrier_off,
		   nm_device_802_3_ethernet_carrier_on): use new names



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3181 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 17:12:21 +00:00
Dan Williams
33f96a77ae 2007-12-17 Dan Williams <dcbw@redhat.com>
Patch from Christian Persch <chpe@gnome.org>

	Fix up the build (gnome.org #473298)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3180 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 04:29:57 +00:00
Dan Williams
b1d28ff48b Fix gnome.org #503840
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3179 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 04:15:42 +00:00
Dan Williams
e53989c673 2007-12-17 Dan Williams <dcbw@redhat.com>
* configure.in
		- Bump requirement for libnl to 1.0-pre8 (which works with newer kernels
			and fixes memory leaks)

	* src/nm-netlink.c
		- (nm_netlink_get_default_handle): handle new versions of libnl that
			automatically handle the netlink PID



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3178 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 03:44:29 +00:00
Dan Williams
f99d428711 Ensure def_nl_handle is cleared when an error occurs
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3177 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 03:08:00 +00:00
Dan Williams
c142dd6278 2007-12-17 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

	* configure.in
	  src/ppp-manager/Makefile.am
		- fix up install dir of pppd plugin
		- clean up configure.in a bit



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3176 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-18 02:43:42 +00:00
Espen Stefansen
47fb4cd607 2007-12-17 Espen Stefansen <espens@svn.gnome.org>
* nb.po: Updated Norwegian Bokmål translation.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3175 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-17 13:59:17 +00:00
Daniel Nylander
a166cd3e25 sv.po: Swedish translation updated
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3174 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-16 14:52:08 +00:00
Tim Niemueller
ae0d98c1c9 2007-12-13 Tim Niemueller <tim@niemueller.de>
* properties/nm-openvpn.c: Added NULL pointer checks



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3169 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-13 14:43:31 +00:00
Tim Niemueller
787e3c7c1a 2007-12-13 Tim Niemueller <tim@niemueller.de>
* nm-openvpn.desktop.in:
                - Updates to make desktop-file-validate happy



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3168 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-13 14:32:29 +00:00
Dan Williams
07a653b93c 2007-12-12 Dan Williams <dcbw@redhat.com>
* system-settings/src/nm-system-settings.conf
		- Allow non-root clients (like the applet) to read settings



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3167 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-12 22:41:43 +00:00
Dan Williams
cfaa9b73a1 Avoid memory leak on error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3166 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-12 22:40:42 +00:00
Andre Klapper
090dd0eb46 2007-12-11 Andre Klapper <a9016009@gmx.de>
* de.po: Updated German translation



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3165 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-11 20:48:54 +00:00
Dan Williams
98d11b8940 2007-12-11 Dan Williams <dcbw@redhat.com>
Patches from Casey Harkins <caseyharkins@gmail.com>

	* src/nm-openvpn-service-openvpn-helper.c
		- (main): make ifconfig_remote optional



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3164 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-11 15:15:32 +00:00
Dan Williams
1b43d896fd 2007-12-11 Dan Williams <dcbw@redhat.com>
Patches from Casey Harkins <caseyharkins@gmail.com>

	* properties/nm-vpnc.c
		- (impl_fill_connection): duplicate hash table keys as required



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3163 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-11 15:12:45 +00:00
Dan Williams
f79d8868ed 2007-12-11 Dan Williams <dcbw@redhat.com>
Patches from Casey Harkins <caseyharkins@gmail.com>

	* properties/nm-openvpn.c
		- (impl_fill_connection): duplicate hash table keys as required



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3162 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-11 15:11:21 +00:00
Tambet Ingo
0bd26c1abe 2007-12-10 Tambet Ingo <tambet@gmail.com>
* Replace all occurences of 'UMTS' with 'GSM'.




git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3161 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-10 09:17:40 +00:00
Ihar Hrachyshka
62546344d8 Updated Belarusian Latin translation.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3159 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-08 08:12:38 +00:00
Dan Williams
f04ce4d66d 2007-12-07 Dan Williams <dcbw@redhat.com>
Patches from Casey Harkins <caseyharkins@gmail.com>

	* src/nm-openvpn-service-openvpn-helper.c
		- (parse_addr_list): fix off-by-one error

	* src/nm-openvpn-service.c
		- (nm_openvpn_start_openvpn_binary): don't let openvpn stomp all over
			the routing table since NM manages that

	* auth-dialog/main.c
	  src/nm-openvpn-service.h
	  src/nm-openvpn-service.c
		- Don't require a certificate password



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3158 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-08 00:09:08 +00:00
Dan Williams
bc309840db 2007-12-07 Dan Williams <dcbw@redhat.com>
* src/nm-serial-device.c
		- (real_is_up): serial devices are always "up"



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3157 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-07 21:36:00 +00:00
Dan Williams
46c6e7c7c6 2007-12-07 Dan Williams <dcbw@redhat.com>
* src/nm-netlink.c
	  src/NetworkManagerSystem.c
		- (new_nl_handle): ensure that the same netlink pid is never chosen
			twice (gnome.org #491047)
		- Make more robust against allocation-related failures should they occur



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3156 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-07 17:35:24 +00:00
Dan Williams
eda2d662cd 2007-12-07 Dan Williams <dcbw@redhat.com>
Noticed by Christian Persch <chpe@gnome.org>

	Always chain up to parent object in dispose and finalize handlers.
		(gnome.org #433112)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3154 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-07 15:32:45 +00:00
Dan Williams
b91db8d429 nm-netlink.h needs asm/types.h
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3153 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-07 14:27:32 +00:00
Dan Williams
98ee94a717 2007-12-07 Dan Williams <dcbw@redhat.com>
* src/nm-device-802-11-wireless.c
		- Wrap #include of linux/mii.h to fix redefined structures due to
			incorrect kernel headers (gnome.org #350061)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3151 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-07 12:33:13 +00:00
Jakub Friedl
82b5568458 2007-12-06 Jakub Friedl <jfriedl@suse.cz>
* cs.po: Added 'cs' to linguas.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3149 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 16:49:52 +00:00
Jakub Friedl
a4fa85e98b 2007-12-06 Jakub Friedl <jfriedl@suse.cz>
* cs.po: Added 'cs' to linguas.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3148 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 16:48:16 +00:00
Jakub Friedl
a5e7e5af42 2007-12-05 Jakub Friedl <jfriedl@suse.cz>
* LINGUAS: Added 'cs'. Bug #501019.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3147 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 16:39:31 +00:00
Tambet Ingo
f2f36ffa7b 2007-12-06 Tambet Ingo <tambet@gmail.com>
* src/nm-umts-device.c (real_act_stage1_prepare): Flash the
        * modem (drop DTR)
        before doing anything else.
        (init_modem): Move modem initialization here.

        * src/nm-serial-device.c (ppp_state_changed): React on pppd
        * state changes.
        (nm_serial_device_flash): Implement.

        * src/ppp-manager/nm-ppp-manager.c (name_owner_changed): Fix the
        * typoes: the state
        changes signal is "StateChanged" and not "Status".
        (ppp_exit_code, ppp_status_changed): Remove the debug output,
it's working fine now.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3146 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 15:55:52 +00:00
Jorge Gonzalez
a9a58b28c7 Updated Spanish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3145 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 15:53:45 +00:00
Jorge Gonzalez
775b21f218 Updated Spanish translation
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3144 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 15:49:40 +00:00
Dan Williams
f286132230 2007-12-06 Dan Williams <dcbw@redhat.com>
* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_wireless_security): reorganize a bit
			to only send some options when they make sense; also send phase2
			option to the supplicant (possible fix for rh #399631)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3143 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 15:27:49 +00:00
Dan Williams
6003709b69 More descriptive error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3142 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 15:25:30 +00:00
Tambet Ingo
50e36ce698 2007-12-06 Tambet Ingo <tambet@gmail.com>
* src/NetworkManagerSystem.c
        * (nm_system_device_set_from_ip4_config): Change the
        arguments: This whole file shouldn't really know anything about
NMDevices, it
        should deal only with device interfaces. Devices might have
different ifaces for
        different stuff and this place shouldn't know anything about it.

        * src/NetworkManagerPolicy.c: Get rid of leftover global
        * variable global_policy.
        (global_state_changed): Implement. In the current NM it's not
really important,
        but will be required in the case of multiple active devices. (Or
even better,
        if stuff like that gets moved out from NM).

        * src/vpn-manager/nm-vpn-connection.c
        * (connection_state_changed): Don't call
        nm_system_device_set_from_ip4_config() directly, use
nm_device_set_ip4_config() 
        instead.

        * src/nm-device.c: Add a ip_face protected member. It's used for
        * 'multi-interface'
        devices like serial devices (ttyS0 and ppp0 for example).
        (nm_device_get_ip_iface): Implement. Default to the device iface
if ip_iface is not
        set.
        (nm_device_set_ip_iface): Implement.
        (nm_device_activate_stage5_ip_config_commit): Move all the extra
actions that happen
        after setting ip4_config from here ...
        (nm_device_set_ip4_config): ... to here. The reason behind it is
that no other code
        than this function should call
nm_system_device_set_from_ip4_config() because no
        other code has enough information on which arguments to use. So
instead, other code
        could just set the new ip4 config using this function and
everyone is happy.

        * src/nm-umts-device.c: Store the pending ids so that we can
        * remove pending actions
        if we happen to get deactivated while something is pending.
        (automatic_registration): Handle the response that indicates
pending network
        registration and wait until the pending registration is done.
        (real_deactivate_quickly): If there's a pending operation,
cancel it.

        * src/nm-serial-device.c (ppp_ip4_config): Set the ip_iface when
        * the iface is up ...
        (real_deactivate_quickly): ... and remove it when it's down.
        (nm_serial_device_get_reply): Return the timeout id so that the
callers can remove
        it if needed.
        (nm_serial_device_wait_for_reply): Ditto.




git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3141 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-06 14:51:43 +00:00
Dan Williams
260002e3e3 2007-12-05 Dan Williams <dcbw@redhat.com>
Patch from Casey Harkins <caseyharkins@gmail.com>

	* src/nm-openvpn-service-openvpn-helper.c
	  src/nm-openvpn-service.c
	  properties/nm-openvpn.c
	  auth-dialog/main.c
		- Fix up so it mostly works



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3140 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 22:50:54 +00:00
Dan Williams
775a223fda 2007-12-05 Dan Williams <dcbw@redhat.com>
Patch from Denis Leroy <denis@poolshark.org>

	* properties/nm-vpnc.c
		- (import_from_file): allow import of incomplete .pcf files
			(gnome.org #498758, rh #241774)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3139 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 22:03:32 +00:00
Dan Williams
d46b75da9e 2007-12-05 Dan Williams <dcbw@redhat.com>
* properties/nm-vpnc.c
		- (impl_get_widget): be more robust about bad connections



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3138 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 17:37:02 +00:00
Tambet Ingo
cb1277c955 2007-12-05 Tambet Ingo <tambet@gmail.com>
* src/nm-umts-device.c (dial_done): Fix the typoes in warnings.
        (get_network_done): Remove newline, nm_info() does it already.
        (real_act_stage1_prepare): Turn the modem echo off.

        * src/NetworkManagerSystem.c
        * (nm_system_device_set_from_ip4_config): In case of serial
        device, set the route to the device interface. This is a hack.

        * src/nm-serial-device.c (nm_serial_device_send_command_string):
        * Only append carriage 
        return, no need for a new-line.
        (ppp_ip4_config): Store the ip4 config to be set in the next
stage.
        Change the device iface here (ugh).
        (real_act_stage4_get_ip4_config): Implement.
        (real_deactivate_quickly): Free the pending ip4 config if it's
still pending.
        Restore the device iface.

        * src/NetworkManagerPolicy.c (nm_policy_device_change_check): Do
        * nothing if the active
        device is not wired or wireless (eg, automatically upped)
device.

        * src/ppp-manager/nm-ppp-manager.c (ip4_config_get): Don't make
        * the config secondary,
        it isn't.
        (nm_ppp_manager_start): Don't let pppd to set the default route,
we want to do it.

        * src/nm-hal-manager.c (get_creator): Make sure the device has
        * required capability
        before calling it's is_device_fn().



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3137 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 17:33:55 +00:00
Dan Williams
5ec181c20e 2007-12-05 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-utils.c
		- (nm_utils_register_value_transformations,
		   nm_utils_convert_gvalue_hash_to_string): better debug output of
			GHashTables of GValues too



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3136 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 16:41:09 +00:00
Dan Williams
7155a6825e (impl_fill_connection): fail less often when stuff breaks
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3135 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-05 16:40:15 +00:00
Dan Williams
761a059d78 64-bit compile warning/error fixups
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3134 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 21:44:40 +00:00
Dan Williams
91126e546c 2007-12-04 Dan Williams <dcbw@redhat.com>
* initscript/RedHat/NetworkManager.in
		- No longer start named; it's D-Bus interface is going away



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3133 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 19:36:34 +00:00
Dan Williams
af8ce7e7b6 Turn more warnings on by default; use --disable-more-warnings to turn them off
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3132 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 19:21:58 +00:00
Dan Williams
f56f5ef9f4 2007-12-04 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

	* system-settings/plugins/ifcfg/Makefile.am
	  system-settings/src/main.c
	  system-settings/src/Makefile.am
		- Put system settings plugins in NM plugins dir

	* src/ppp-manager/Makefile.am
	  src/ppp-manager/nm-ppp-manager.c
		- Move pppd plugin to NM plugins dir



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3131 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 16:17:57 +00:00
Dan Williams
219c552de8 Add missing file to POTFILES.in
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3130 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 16:11:21 +00:00
Dan Williams
6fdff4f687 2007-12-04 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting-vpn-properties.h
		- Clarify usage of the 'data' member of the setting

	* libnm-util/nm-setting-vpn-properties.c
		- (nm_setting_vpn_properties_init): initialize the 'data' hash table
		- (set_property): just remove all the settings; don't recreate the has
		- (update_one_secret): don't need to create the hash table here since
			it should always be present



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3129 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-04 16:09:05 +00:00
Tambet Ingo
185329bc1a 2007-12-03 Tambet Ingo <tambet@gmail.com>
Implement PIN and PUK requesting.

        * src/nm-umts-device.c (enter_pin_done): Request the secret
        * again if it failed.
        (enter_pin): Handle PIN and PUK requests.
        (real_act_stage1_prepare): Clear the secret type.
        (real_connection_secrets_updated): Implement this class method
to get
        notified when new secrets arrive.
        (nm_umts_device_class_init): Add private data back to the umts
device class
        to store the required secret type.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3128 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-03 14:17:02 +00:00
Jovan Naumovski
d6a040c372 2007-12-03 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3127 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-03 12:26:39 +00:00
Jovan Naumovski
a444adc8cd 2007-12-03 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3126 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-03 12:24:41 +00:00
Changwoo Ryu
3ec6236160 Added 'ko' to LINGUAS. Bug #501020.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3125 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-03 05:05:49 +00:00
Dan Williams
8be9677211 2007-12-01 Dan Williams <dcbw@redhat.com>
* system-settings/plugins/ifcfg/parser.c
		- (parser_parse_file): don't try to verify NULL connections



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3121 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-12-01 17:24:57 +00:00