mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-21 14:18:12 +02:00
Add support for retrieving both the per-device speed and the per-network maximum supported rate. Then change the getProperties DBUS API for both networks and devices to report this informaiton. Finally, display the information via both nm-applet and nm-tool: * gnome/applet/applet-dbus-devices.c: Grab the speed from getProperties and set it. * gnome/applet/applet.c: Display the device's speed in the 'Connection Information' dialog. * gnome/applet/applet.glade: Update the UI to show per-device speed. * gnome/applet/nm-device.c, gnome/applet/nm-device.h: Add interfaces network_device_get_speed() and network_device_set_speed() for retrieving and setting, respectively, a network device's current speed. * src/nm-dbus-device.c: Send the device's speed on getProperties. * src/nm-device-802-11-wireless.c: Return the rate in Mb/s, not Kb/s, in the function nm_device_802_11_wireless_get_bitrate() -- it does not matter (yet) what the units are, because we only feed it its own output. Implement SIOCGIRATE and set the per-network maximum supported rate during scanning. * src/nm-device-802-11-wireless.h: Export the function nm_device_802_11_wireless_get_bitrate(). * src/nm-device-802-3-ethernet.c, src/nm-device-802-3-ethernet.h: Add function nm_device_802_3_ethernet_get_speed() for returning an 802.3's current speed, in Mb/s. * test/nm-tool.c: Display the per-device current speed, if available, and the per-network maximum rate. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1540 4912f4e0-d625-0410-9fb7-b9a5a253dbdc |
||
|---|---|---|
| .. | ||
| icons | ||
| .cvsignore | ||
| applet-compat.c | ||
| applet-compat.h | ||
| applet-dbus-devices.c | ||
| applet-dbus-devices.h | ||
| applet-dbus-info.c | ||
| applet-dbus-info.h | ||
| applet-dbus-vpn.c | ||
| applet-dbus-vpn.h | ||
| applet-dbus.c | ||
| applet-dbus.h | ||
| applet-notifications.c | ||
| applet-notifications.h | ||
| applet.c | ||
| applet.glade | ||
| applet.h | ||
| eggtrayicon.c | ||
| eggtrayicon.h | ||
| gconf-helpers.c | ||
| gconf-helpers.h | ||
| keyring.png | ||
| main.c | ||
| Makefile.am | ||
| menu-items.c | ||
| menu-items.h | ||
| nm-applet.conf | ||
| nm-device.c | ||
| nm-device.h | ||
| nm-gconf-wso-private.h | ||
| nm-gconf-wso-wep.c | ||
| nm-gconf-wso-wep.h | ||
| nm-gconf-wso-wpa-eap.c | ||
| nm-gconf-wso-wpa-eap.h | ||
| nm-gconf-wso-wpa-psk.c | ||
| nm-gconf-wso-wpa-psk.h | ||
| nm-gconf-wso.c | ||
| nm-gconf-wso.h | ||
| other-network-dialog.c | ||
| other-network-dialog.h | ||
| passphrase-dialog.c | ||
| passphrase-dialog.h | ||
| vpn-connection.c | ||
| vpn-connection.h | ||
| vpn-password-dialog.c | ||
| vpn-password-dialog.h | ||
| wireless-network.c | ||
| wireless-network.h | ||
| wireless-security-manager.c | ||
| wireless-security-manager.h | ||
| wireless-security-option.c | ||
| wireless-security-option.h | ||
| wso-none.c | ||
| wso-none.h | ||
| wso-private.h | ||
| wso-wep-ascii.c | ||
| wso-wep-ascii.h | ||
| wso-wep-hex.c | ||
| wso-wep-hex.h | ||
| wso-wep-passphrase.c | ||
| wso-wep-passphrase.h | ||
| wso-wpa-eap.c | ||
| wso-wpa-eap.h | ||
| wso-wpa-psk.c | ||
| wso-wpa-psk.h | ||