mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 18:10:08 +01: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 |
||
|---|---|---|
| .. | ||
| backends | ||
| dhcp-manager | ||
| named-manager | ||
| vpn-manager | ||
| .cvsignore | ||
| autoip.c | ||
| autoip.h | ||
| gdb-cmd | ||
| kernel-types.h | ||
| Makefile.am | ||
| NetworkManager.c | ||
| NetworkManager.conf | ||
| NetworkManagerAP.c | ||
| NetworkManagerAP.h | ||
| NetworkManagerAPList.c | ||
| NetworkManagerAPList.h | ||
| NetworkManagerDbus.c | ||
| NetworkManagerDbus.h | ||
| NetworkManagerDbusUtils.c | ||
| NetworkManagerDbusUtils.h | ||
| NetworkManagerDialup.h | ||
| NetworkManagerMain.h | ||
| NetworkManagerPolicy.c | ||
| NetworkManagerPolicy.h | ||
| NetworkManagerSystem.c | ||
| NetworkManagerSystem.h | ||
| NetworkManagerUtils.c | ||
| NetworkManagerUtils.h | ||
| nm-activation-request.c | ||
| nm-activation-request.h | ||
| nm-ap-security-private.h | ||
| nm-ap-security-wep.c | ||
| nm-ap-security-wep.h | ||
| nm-ap-security-wpa-eap.c | ||
| nm-ap-security-wpa-eap.h | ||
| nm-ap-security-wpa-psk.c | ||
| nm-ap-security-wpa-psk.h | ||
| nm-ap-security.c | ||
| nm-ap-security.h | ||
| nm-crash-logger.c | ||
| nm-dbus-device.c | ||
| nm-dbus-device.h | ||
| nm-dbus-net.c | ||
| nm-dbus-net.h | ||
| nm-dbus-nm.c | ||
| nm-dbus-nm.h | ||
| nm-dbus-nmi.c | ||
| nm-dbus-nmi.h | ||
| nm-device-802-3-ethernet.c | ||
| nm-device-802-3-ethernet.h | ||
| nm-device-802-11-wireless.c | ||
| nm-device-802-11-wireless.h | ||
| nm-device-private.h | ||
| nm-device.c | ||
| nm-device.h | ||
| nm-ip4-config.c | ||
| nm-ip4-config.h | ||
| nm-logging.c | ||
| nm-logging.h | ||
| nm-netlink-monitor.c | ||
| nm-netlink-monitor.h | ||
| wpa.c | ||
| wpa.h | ||
| wpa_ctrl.c | ||
| wpa_ctrl.h | ||