* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.h,
gnome/applet/applet.c, gnome/applet/applet.h: Add 'Enable Networking'
option to give users ability to globally disconnect and put NM to
sleep. This is useful as a 'lockdown mode' for flying, security, and
clean disconnect.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1308 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/nm-device-802-3-ethernet.h: The kernel headers <linux/mii.h> and
<linux/ethtool.h> leak the kernel-only types u16, u32, et al.
User-space does not supply these types, so we have to define them
ourselves. The relevant kernel maintainer refused to accept a patch
switching these headers to the propre C99 types.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1304 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Apply Robert's 'tray icon redo' patch with fixes
* gnome/applet/applet.c
gnome/applet/applet.h
- Instead of using a menu bar + menu item, simulate menu
behavior using a popup menu. Highlight the area around
the icon more like a menu too, by playing with the applet's
size requisition
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1303 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* libnm-util/dbus-helpers.c
libnm-util/dbus-helpers.h
- (nmu_create_dbus_error_message): rename parameter 'namespace'
to 'exception_namespace' (:namespace is a keyword in C++)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1301 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerPolicy.c
- (nm_policy_device_change_check): don't autoswitch away from
Ad-Hoc networks, since there's really no concept of "link"
* src/nm-dbus-nm.c
- (nm_dbus_nm_create_wireless_network): mark created networks
as Ad-Hoc networks
* src/nm-device-802-11-wireless.c
- (real_activation_success_handler): add user-created Ad-Hoc
networks to the device's scan list
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1300 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/nm-ap-security.c
src/nm-ap-security.h
- Add a user_created argument to the write_supplicant_config
functions
* src/nm-ap-security-wep.c
src/nm-ap-security-wpa-psk.c
src/nm-device-802-11-wireless.c
- Make Ad-Hoc mode somewhat work, at least write the
correct options to wpa_supplicant
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1298 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
(forgot to commit ChangeLog with changes)
* include/NetworkManager.h
- Add NMI_DBUS_USER_KEY_CANCELED_ERROR as a constant for
applet/info-daemons
* gnome/applet/passphrase-dialog.c
- Use the constant. Fixes a bug where the arguments to
dbus_message_new_error() were incorrect
* src/nm-dbus-nmi.c
- Use the constant
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1290 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* include/NetworkManager.h
- Add NMI_DBUS_USER_KEY_CANCELED_ERROR as a constant for
applet/info-daemons
* gnome/applet/passphrase-dialog.c
- Use the constant. Fixes a bug where the arguments to
dbus_message_new_error() were incorrect
* src/nm-dbus-nmi.c
- Use the constant
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1289 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/nm-device-802-11-wireless.c
- Add a link timeout so we allow the supplicant time to
reassociate if it can, before we deactivate the card
- Fix up link status and link updating so things work better
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1288 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/nm-device-802-11-wireless.c
- Switch over to using wpa_supplicant
- Add a timeout of 10s for association of the supplicant
- Start the monitor callback of the supplicant
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1286 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/nm-device-private.h
src/nm-device.c
- (nm_device_activate_schedule_stage3_ip_config_start): make this
function available to subclasses
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1283 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerPolicy.c: Always prefer wired to wireless, as the
user plugging in a network cable signals their preference for to
switch, unless the user explicitly selected a wireless network and
therefore signaled their preference for said wireless network over
wired. In other words, do exactly what makes sense.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1279 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDevice.c, src/NetworkManagerDevice.h,
src/NetworkManagerDevicePrivate.h, src/NetworkManagerWireless.c,
src/NetworkManagerWireless.h: Remove, no longer used and they keep
showing up in my greps.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1278 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-devices.c,
gnome/applet/other-network-dialog.c, gnome/applet/wso-none.c,
libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h,
src/nm-dbus-nm.c: Fix several issues. 'Connect to Other' and 'Create
New Network' both failed in the non-encrypted case because we were
not appending the security options to the DBUS message. And
'Connect to Other' was also failing in the encrypted case because
we were not incrementing to the next DBUS parameter. All fixed.
Thanks to dcdw for some debugging help.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1276 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
An unused variable is a lot like an unused car in that it sits in the drive and
just begs to be driven, but it also begs a larger question of why you own a car
that just sits in your driveway when so many other people, people with large
pension plans and pet racoons, do not own a car at all!
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1274 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet.c,
gnome/applet/applet-dbus-devices.h, src/nm-dbus-nm.c: Remove global
hangup code and add per-device hangup. Tie last commit into the
GNOME applet. TODO: Save, understand, and respond to the state of
each dialup device.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1273 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-devices.c,
gnome/applet/applet-dbus-devices.h, gnome/applet/applet.c,
src/nm-dbus-nm.c: Expose a menu item for hanging up active dialup
connections.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1269 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* configure.in: Explicitly set AUX_DIR to . to prevent autoconf from
searching (and finding) install-sh in ../.., which lead to
problems.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1268 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
First dump of wpa_supplicant-related code. It's not hooked up to
anything yet though. Thanks to Kay Sievers for
wpa_supplicant_wrapper.c, which formed the basis for this work,
and to Jouni Malinen for writing wpa_ctrl.c and wpa_ctrl.h.
* src/Makefile.am
src/wpa_ctrl.[ch]
- Add wpa_ctrl stuff from wpa_supplicant so we can talk to it
* src/NetworkManagerUtils.[ch]
- (nm_utils_supplicant_request, nm_utils_supplicant_request_with_check):
Add convenience functions for talking to wpa_supplicant
* src/nm-ap-security.[ch]
src/nm-ap-security-wep.c
src/nm-ap-security-wpa-psk.[ch]
- Update and implement real_write_supplicant_config functions
in all security types
- (nm_ap_security_wpa_psk_new_from_ap): implement in
nm-ap-security-wpa-psk.c
* src/nm-device-802-11-wireless.c
- (supplicant_cleanup, supplicant_watch_cb, supplicant_monitor_status_cb,
wpa_supplicant_start, wpa_supplicant_interface_init,
wpa_supplicant_send_network_config): add functions to talk to
wpa_supplicant and write network config to it
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1267 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDialup.h: add 'type' field and NM_DIALUP_TYPE
values so that distribution-backends can differentiate between the
various types (modem, ISDN, et cetera) of dialup device that they
support.
* src/backends/NetworkManagerSuSE.c: perform isdnctrl on interface, as
needed.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1265 4912f4e0-d625-0410-9fb7-b9a5a253dbdc