Patch from Bill Moss <bmoss@clemson.edu>
* src/NetworkManagerDevice.c
- (nm_device_activate_stage5_ip_config_commit): fix ordering
of nm_policy_schedule_activation_finish() to prevent a
race condition that causes the link to be dropped
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1102 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Patch from Bill Moss <bmoss@clemson.edu>
* src/NetworkManagerAPList.c
src/NetworkManagerDevice.c
src/NetworkManagerDbus.c
- Replace occurances of ether_ntoa_r() with iw_ether_ntop() so
we get more readable ether/mac addresses
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1101 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/main.c: Don't set the restart command. This fixes
the issue where the restart command was getting copies of all its
arguments for each time the applet was restarted.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1095 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet.c: Only send the DBUS setWirelessEnabled method
if the widget state differs from our saved state. This ensures we
do not enter an endless loop of death and destruction. Also, this
guarantees us that we enforce the widget state.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1094 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet.c: add nmwa_enable_wireless_set_active().
* gnome/applet/applet-dbus-devices.c: invoke the new function
nmwa_enable_wireless_set_active() to ensure that the state of the 'Enable Wireless' checkbox matches the daemon's state. This is a
concern because the daemon remembers the state.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1092 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet.c: Make menu item "Enable Wireless" not "Wireless
Enabled", as checkboxes should be actions/commands not positive
statements, otherwise they are confusing in the unselected case. See
examples in GNOME HIG, Chapter 6.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1091 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet.c: When wireless is disabled, act it. Do not
show a list of wireless networks or the wireless devices or the
"Create Wireless ..." menus. Aside from this cosmetics, this fixes
a bad bug: If wireless is disabled and the user picks a wireless
network, NM will switch to the network, only to immediately switch
back, as wireless is disabled. This also reassures people that NM
is not scanning (it is not -- I verified). Fixes Novell bug #130041.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1090 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet.c:
* gnome/applet/applet.h:
Partial backout of Dan's timeout animation patch.
Timeout IDs cannot legally be 0, so revert the code in place to handle
a timeout ID of 0 to denote the timeout isn't running.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1089 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* vpn-daemons/vpnc/properties/nm-vpnc-dialog.glade: Change label to
"Import Saved Configuration..." to make it clear that importing is
not the next step, but an option. As an aside, a nice TODO would be
to move Importing out of the vpn-specific dialog and into the main
property editor, as Importing goes with Adding, but that will require
some rearchitecting of the VPN stuff I suspect.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1084 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Start using libnl. You need 1.0-pre3 or higher. Eventually
we should replace most of the distro-specific backend code
with libnl stuff.
Get it here: http://people.suug.ch/~tgr/libnl/
* configure.in
src/Makefile.am
- Add checks for libnl pkgconfig file
- Use LIBNL_LIBS & LIBNL_CFLAGS
* src/NetworkManagerSystem.c
src/nm-ip4-config.[ch]
- Use libnl rather than ioctl() for most things
- Remove unused functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1082 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDevice.c
- (get_scan_results): cleanups, deal cleanly with ENODATA signifying
no scan results
- (free_process_scan_cb_data): unref the device when freeing results
- (nm_device_wireless_process_scan_results): free scan results a bit later
so we don't unref the device underneath ourselves
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1073 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Clean up wireless scanning and wireless link probing. Goal: to not be as
touchy with intermittent connections.
* src/NetworkManagerDevice.c
- (nm_device_probe_wireless_link_state): instead of calling nm_get_best_ap(),
just see if there's an activation request on the device, and check the
current link against the activation request access point's ESSID.
- (link_to_specific_ap): increase the # of failed links we tolerate from 3 to 6
- (nm_device_wireless_process_scan_results): actually free our scan data, and
don't call process_scan_results() on zero-length data
- (nm_device_set_wireless_scan_interval): increase the init scan interval to
15 seconds (from 10)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1070 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Cleanup some applet stuff:
- Animation timeouts. If NM died while the applet was animating,
the applet would not hide itself. This is now fixed.
- Remove some dead code
- Remove nmi_passphrase_dialog_schedule_cancel() and convert uses
to nmi_passphrase_dialog_cancel() since we no longer use threads.
- Track animation timeout using a gboolean rather than the timeout's
ID, since timeout IDs can legally be 0.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1069 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/backends/interface_parser.c
- Add void to function declarations that need it
to match patch from Engin AYDOGAN
* src/backends/interface_parser.h
- Remove unused prototype for ifparser_interfaces()
Patch from Engin AYDOGAN <engin@bzzzt.biz>
* src/backends/interface_parser.h:
- Compile fixes for gcc 4.0.2 (add void)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Patch from Tor Krill <tor@krill.nu>
* src/named-manager/nm-named-manager.c
- Write more than just the first nameserver to /etc/resolv.conf
- Write out valid /etc/resolv.conf on exit
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1067 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDevice.c: Use fabs() and DBL_EPSILON to avoid a
direct comparison of floating point values, which is never correct.
Also some misc. cleanup.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1063 4912f4e0-d625-0410-9fb7-b9a5a253dbdc