2006-06-07 Robert Love * NEWS: Update. * configure.in: Bump version to 0.6.3. 2006-06-07 Robert Love * gnome/applet/gconf-helpers.c: Bug fix: nm_gconf_helper_get_bool() checked that the return type was GCONF_VALUE_STRING, not the correct GCONF_VALUE_BOOL, and thus it never worked. * src/NetworkManagerAPList.c: Before concluding that two networks are identical based on their BSSID, make sure that the BSSID in question is actually valid. Specifically, an empty or all zero BSSID does not cut it. * gnome/applet/applet-dbus-info.c, gnome/applet/other-network-dialog.c, src/nm-dbus-nmi.c, src/nm-device-802-11-wireless.c: White space and similar invariant clean up. 2006-06-02 Robert Love * gnome/applet/applet.c: Update copyright years. Add Novell. 2006-05-29 Stanislav Brabec * configure.in: Updated translations from HEAD branch. 2006-05-28 Dan Williams * gnome/applet/applet.glade gnome/vpn-properties/nm-vpn-properties.glade - Set window icons on dialogs (Gnome.org #333420) 2006-05-28 Christian Persch * gnome/vpn-properties/nm-vpn-properties.glade: * vpn-daemons/openvpn/properties/nm-openvpn-dialog.glade: * vpn-daemons/pptp/properties/nm-pptp-dialog.glade: * vpn-daemons/vpnc/properties/nm-vpnc-dialog.glade: - Make the VPN properties pages prettier and more HIG compliant. Gnome Bug #336913. 2006-05-28 Dan Williams Patch from Christian Persch * gnome/vpn-properties/nm-vpn-properties.c * gnome/vpn-properties/nm-vpn-properties.glade - HIG-ification love (Gnome.org #336846) 2006-05-28 Dan Williams Patch from Christian Persch * configure.in gnome/vpn-properties/nm-vpn-properties.c - (main): Fix option parsing. Gnome.org #336847 2006-05-28 Dan Williams * gnome/vpn-properties/nm-vpn-properties.c - (find_vpn_ui_by_service_name): protect against NULL service names - (update_edit_del_sensitivity): protect against NULL service names Gnome.org #341306 2006-05-28 Dan Williams Patch from Chris Fuller : * src/nm-device-802-11-wireless.c - (nm_device_802_11_wireless_dispose): add a is_initialized member and don't dispose of wireless-specific stuff unless it is actually initialized. Gnome.org #341263 2006-05-28 Dan Williams * src/NetworkManagerPolicy.c - (nm_policy_device_change_check): don't switch devices if the "best" AP is essentially the same as the current activation request, but the current activation request isn't done activating yet. Fixes multiple requests for keyring password on startup for Gnome applet. Gnome.org #341297 2006-05-26 Nicolas Trangez * src/NetworkManager.c: use GOptions instead of getopt * configure.in: bump glib required version to >= 2.6 for GOption support 2006-05-25 Robert Love Patch Valentine Sinitsyn to fix GNOME bug #342400: * libnm-util/Makefile.am: Only build gnome-keyring-md5.{c,h} if we are not using gcrypt. Otherwise, we get a linker error. 2006-05-25 Robert Love Patch Valentine Sinitsyn to fix GNOME bug #342398: * configure.in, gnome/Makefile.am, Makefile.am: Add "--without-gnome" configure flag to disable building of the GNOME-based applet. 2006-05-25 Robert Love * gnome/applet/nm-device.c, gnome/applet/nm-device.h: Rename function parameter from link, because it shadows a global variable with some older versions of glibc. Yes, glibc is now fixed and, yes, glibc should never have exported to the entire system a common four letter word. But we here at NetworkManager are team players. Fixes GNOME bug #336532. 2006-05-24 Robert Love * examples/python/systray/eggtrayicon.c, gnome/applet/eggtrayicon.c, gnome/applet/passphrase-dialog.c, gnome/applet/vpn-password-dialog.c, src/NetworkManager.c: Include and not . 2006-05-24 Robert Love * gnome/applet/Makefile.am, gnome/vpn-properties/Makefile.am, libnm-util/Makefile.am, src/Makefile.am, vpn-daemons/openvpn/auth-dialog/Makefile.am, vpn-daemons/openvpn/properties/Makefile.am, vpn-daemons/pptp/auth-dialog/Makefile.am, vpn-daemons/pptp/properties/Makefile.am, vpn-daemons/vpnc/auth-dialog/Makefile.am, vpn-daemons/vpnc/properties/Makefile.am: Do not override what the user passed for --datadir, if anything, when setting the GNOME locale directory. It should be a function of the specified datadir and not the prefix. 2006-05-24 Robert Love * gnome/applet/main.c, gnome/vpn-properties/nm-vpn-properties.c, src/NetworkManager.c: Take care to call bindtextdomain with the location of msgid files. * src/Makefile.am: Set GNOMELOCALEDIR to the location of GNOME mo files. 2006-05-22 Robert Love * src/nm-device-802-11-wireless.c: Don't chain up to the parent's stage4_timeout on failure unless the wireless network is Ad-Hoc. 99% of the time there is a real problem with wireless, and a seemingly successful connection via Zeroconf just confuses the user. And that 1% of the time the network is probably Ad-Hoc, anyhow. 2006-05-22 Robert Love * src/backends/NetworkManagerSuSE.c: Reload, do not restart, ypbind and autofs on interface up if NIS is configured. On interface down, do nothing. 2006-05-22 Robert Love * gnome/applet/applet.c: Zero out the icon pointers before we set them, to avoid calling g_object_unref() on stale pointers on error in nma_icons_free(). This happens because we short-circuit loaded the icons on the first failure but then free all icons. Normally we have no issue because the icons were zero'ed out malloc, but we have stale pointer data after nma_icon_theme_changed(). * gnome/applet/main.c: Return error code if nma_new() failed. 2006-05-21 Dan Williams Patch from Adam Schreiber * gnome/vpn-properties/nm-vpn-properties.c - (main): correct Gnome program name (gnome.org #342498) 2006-05-21 Dan Williams Fix gnome.org #330832 based on patch from Crispin Flowerday * src/NetworkManagerDbus.[ch] - nm_dbus_get_device_from_object_path -> nm_dbus_get_device_from_escaped_object_path: clarify that function's argument should be an escaped dbus object path, and look for path segment end before returning a match * src/nm-dbus-nm.c: - Fix up users of nm_dbus_get_device_from_escaped_object_path() 2006-05-17 Robert Love Functionality to differentiate Ad-Hoc networks from infrastructure networks in the applet, by displaying a special icon: * gnome/applet/applet-dbus-devices.c: Set the mode for new networks. * gnome/applet/applet.c: Pass 'applet' to network_menu_item_update(). * gnome/applet/menu-items.c: Set a special icon in the scan list for ad-hoc networks. TODO: Add a third icon representing "encrypted and Ad-Hoc". Right now, we display the same icon for all Ad-Hoc wireless networks, encrypted or not. * gnome/applet/wireless-network.c, gnome/applet/wireless-network.h: New accessor functions to get and set the mode of a given network, wireless_network_get_mode() and wireless_network_set_mode(). 2006-05-17 Robert Love Functionality to automatically add BSSIDs to the allowed-MAC list as one roams from access point to access point on a given network: * src/NetworkManagerUtils.c: Add nm_ethernet_addresses_are_equal(), helper function to compare two ether_addr structures and return TRUE if they contain the same MAC address. * src/NetworkManagerUtils.h: Add nm_ethernet_addresses_are_equal() prototype. * src/nm-device-802-11-wireless.c: New function to update the BSSID stored with the current AP. If the BSSID has indeed changed, we send it out to the applet, allowing the allowed-MAC list to grow automatically in response to roaming. 2006-05-16 Robert Love * src/backends/NetworkManagerSuSE.c: Don't touch ypbind or autofs unless dhcp:DHCLIENT_MODIFY_NIS_CONF is set to "yes". 2006-05-13 Dan Williams * src/nm-device-802-3-ethernet.c - (real_get_generic_capabilities): Don't ignore devices that can't do carrier detect (Debian bug #366373) 2006-05-11 Dan Williams Patch from Michael Biebl * src/backends/NetworkManagerDebian.c - Debian backend fixups 2006-05-10 Robert Love * src/backends/NetworkManagerSuSE.c: Fix double free (Novell #173442). 2006-05-09 Robert Love * gnome/applet/nm-gconf-wso-wpa-eap.c: Fix FIXME: Save the WPA EAP private certificate passphrase, if any, in the GNOME Keyring. * libnm-utils/dbus-helpers.c: Update. 2006-05-05 Robert Love * src/NetworkManager.c: Set the umask to 0022 when daemonizing, in case root has a wacky default of its own (or, more common, a user has a bad umask and uses su/sudo to restart NetworkManager). Anything other than 0022 does not do what we want with, for example, resolv.conf. This problem is amplified by our judicious use of fopen(), which uses mode 0666 -- implying that the only way to get the permissions we want is with a umask of 0022. 2006-05-05 Dan Williams * gnome/libnm_glib/libnm_glib.c - Don't suck CPU when dbus isn't around by scheduling idle handlers to reconnect; instead wait a bit more with each reconnect attempt up to a max of one minute. 2006-05-04 Ryan Lortie * gnome/applet/passphrase-dialog.c (update_button_cb): Get the SSID of the WirelessNetwork structure using the proper function instead of just casting it directly to (const char *) (gnome.org #336991) 2006-05-03 Robert Love * src/backends/NetworkManagerSuSE.c: Respect the variable dhcp:DHCLIENT_MODIFY_RESOLV_CONF, not config:MODIFY_RESOLV_CONF_DYNAMICALLY, when deciding whether or not to dynamically update /etc/resolv.conf. 2006-05-02 Robert Love Patch by Timo Hoenig; * tests/nm-online.c: Print pretty status indicator as timeout winds down. Also fix possible race between DBUS startup and failure return. 2006-05-01 Robert Love * gnome/applet/applet-compat.c: Warn if the returned escaped ESSID is empty, too. 2006-04-27 Jeremy Katz * src/nm-device.c (discover_device_type): Actually use the hal device type instead of ioctl poking 2006-04-26 Robert Love * tests/nm-online.c: New file. Simple utility that returns exit status noting whether the connection is offline or online. If offline on start, it waits 30 seconds (or a command-line given value) for an online signal. If it times out, it again returns offline. This is useful for scripts that want to wait for network connections. 2006-04-25 Robert Love * src/nm-ap-security-wep.c: Bug fix: We stopped setting the key mode (the authentication algorithm), e.g. open or shared, when we moved to using wpa_supplicant. wpa_supplicant defaults to open, so only shared was broken. If the user specified a shared key, set it explicitly, otherwise let wpa_supplicant go with the default. 2006-04-20 Robert Love Fix bug where hidden ESSID's would not show up in the applet, even if NMI provided a BSSID -> ESSID mapping from Gconf. This occurred because nm_policy_device_list_update_from_allowed_list() would merge the data, putting a name to the hidden networks, but never notify NMI of the changes. Simple fix is to invoke the function nm_dbus_signal_wireless_network_change() if we make a mapping. * src/NetworkManagerAPList.c: Call the function nm_dbus_signal_wireless_network_change() if we made a successful BSSID to ESSID mapping, notifying the applet of the "new" network. * src/NetworkManagerAPList.h: Update the prototypes for both nm_ap_list_copy_essids_by_address() and nm_ap_list_copy_one_essid_by_address(). 2006-04-20 Robert Love * gnome/applet/applet-dbus-info.c: Don't bail out if the timestamp is not set. Just return zero. 2006-04-20 Robert Love * gnome/vpn-properties/nm-vpn-properties.c: Satisfy TODO: Ensure that only one copy of nm-vpn-properties is running at a time via the 'ol X selection trick. This prevents the user from opening two "VPN Connections" windows from within the applet, which leads to mass hysteria. * clipboard.c: New file, implementing simple X selection logic. * clipboard.h: New file. * gnome/vpn-properties/Makefile.am: Add clipboard.{c,h} 2006-04-16 Dan Williams Patch from Paul Blazejowski * configure.in initscript/Slackware/Makefile.am initscript/Slackware/rc.networkmanager-dispatcher.in initscript/Slackware/rc.networkmanager.in - Update slackware initscripts 2006-04-10 Robert Love * gnome/vpn-properties/nm-vpn-properties.c: Intercept and short-circuit the "delete_event" signal on the druid's parent window and handle it our way, lest using the WM to close the druid results in a series of bloody and ultimately lethal errors. 2006-04-10 Robert Love * gnome/vpn-properties/nm-vpn-properties.c: Validate VPN settings on 'Back' too or else the 'Forward' option is initially disabled despite valid input. 2006-04-06 Robert Love Fix bad but simple bug where an active modem connection did not update NM's connection state, breaking any app that did online/offline: * src/NetworkManagerMain.h: Add 'modem_active' member to NMData, represented whether a dial up connection is active, or not. * src/nm-dbus-nm.c: Set and unset 'modem_active' in response to modem activation and deactivation. * src/NetworkManagerDbus.c: When asked our state, do not return disconnected if the modem is active. 2006-04-04 Robert Love * gnome/applet/applet.c: Remove the 'Remove' option that I added to the applet. It just confuses the crap out of people and does not make a lot of sense, as the daemon still runs. 2006-03-29 Robert Love Patch by Vinay R and Robert Love , 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. 2006-03-27 Dan Williams Patch from Christian Persch * gnome/applet/applet.glade - HIG fixes; mostly for spacing and borders (gnome.org #336220) 2006-03-27 Dan Williams Patch from Diffe * src/backends/NetworkManagerSlackware.c - Don't restart howl, since it's been replaced by Avahi in most distributions 2006-03-27 Dan Williams Patch from Tor Krill * configure.in initscript/Makefile.am src/backends/Makefile.am src/backends/NetworkManagerArch.c initscript/Arch/Makefile.am initscript/Arch/networkmanager-dispatcher.in initscript/Arch/networkmanager.in - Add Arch Linux support, fixes gnome.org #335147 2006-03-27 Dan Williams Patch from Diffe * initscript/Slackware/rc.networkmanager - update, fixed gnome.org #333368