* src/nm-ap-security*.[ch]
- Add AP security abstractions to NetworkManager
* src/nm-dbus-device.c
- Begin to parse new format dbus messages from the applet
and construct an AP security object from the message
* libnm-util/dbus-helpers.c
- Use message iters so we can append the key as a fixed
array of bytes, which actually works rather than
using dbus_message_append_args() as we were before
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1184 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDbus.c
gnome/applet/applet-dbus.c
- Fix up dbus service replacement options. The applet
should allow replacement, NM itself should not.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1183 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/named-manager/nm-named-manager.c: Revert earlier commit. Instead, fail silently if config is NULL
by not asserting and not returning FALSE. Also, make sure we always fclose() the file.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1180 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Patch by Stefan Scheler <sscheler@suse.de>:
* src/nm-ip4-config.h, src/nm-ip4-config.c,
src/dhcp-manager/nm-dhcp-manager.c: Add support for setting up NIS
via DHCP. Still need the backends to commit the NIS domain name and
and servers to yp.conf as needed.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1179 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/vpn-manager/nm-dbus-vpn.c: Do not call the lengthy-named function
nm_vpn_manager_remove_connection() unless vpn is non-NULL.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1178 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/named-manager/nm-named-manager.c: Don't unref the config until
after we call rewrite_resolv_conf(), because get_last_default_domain()
needs to access the config. Fixes "rewrite_resolv_conf: assertion
`config != NULL' failed" assertion failures and "Could not commit DNS
changes" warnings.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1177 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* libnm-util/cipher-wep-passphrase.c,
libnm-util/cipher-wpa-psk-passphrase.c, src/NetworkManagerAP.c,
src/NetworkManagerAP.h, src/NetworkManagerDevice.c,
src/NetworkManagerWireless.c, src/NetworkManagerWireless.h: Treat
all WEP/WPA keys as "char *" and not explicitly signed or unsigned.
When handling keys, we don't care what the sign is. The compiler
guarantees us that we get our 8-bits, which is all we care about.
* configure.in: Remove "-Wno-pointer-sign" flag. We are sign-aware!
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1172 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* include/NetworkManager.h: add WPA capabilities constants
* src/NetworkManagerDevice.c: detect if wireless devices support WPA
or WPA2 and add the capabilities bits as appropriate.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1150 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDevice.c: We want to fall back on and default to
IW_MODE_AUTO, not -1, which is more in line with our previous
behavior. Otherwise, we try to set the wireless mode to -1 in
nm_device_set_mode().
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1147 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-info.c, include/NetworkManager.h,
src/NetworkManagerAP.c, src/NetworkManagerAP.h,
src/NetworkManagerAPList.c, src/NetworkManagerDbus.c,
src/NetworkManagerDevice.c, src/NetworkManagerDevice.h,
src/nm-dbus-nm.c: Convert NM_DEVICE_AUTH_METHOD_* to use the
wireless-tools constants directly. UNKNOWN is now -1 and NONE is
zero.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1144 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Convert NETWORK_MODE_* constants to IW_MODE_*
* Make all the get_mode/set_mode functions take and return 'int'
* Convert D-BUS calls that pass mode to DBUS_TYPE_INT32 rather than UINT32
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1142 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Move NetworkManager.h -> include/NetworkManager.h
* Split out VPN stuff to include/NetworkManagerVPN.h
* Fix up makefiles to include new location
* Fix up sources to include NetworkManagerVPN.h
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1130 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Slackware patches from Paul Blazejowski <paulb@blazebox.homeip.net>
* initscript/Slackware/rc.networkmanager
- Cosmetic fix
* src/backends/NetworkManagerSlackware.c
- Kill dhcpcd when starting so that dhclient can bind to DHCP on
interfaces
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1127 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerSystem.c: If iface_to_rtnl_link() returns NULL, the
interface is already gone, so don't call rtnl_link_change() to down
it (which will segfault, anyhow).
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1114 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/backends/NetworkManagerSuSE.c: Don't fall back to DHCP if the
gateway is not set, just print a little note. Configurations without
gateways are valid.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1110 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
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
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
* 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
* src/NetworkManagerDevice.c: invoke the long-in-the-tooth named
function nmwa_schedule_state_change_signal_broadcast() when we
deactivate a device, too.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1045 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/NetworkManagerDevice.c: Actually wait 20s, as we intend, not
two seconds -- tries is updated every 1/10 of a second, not every
second..
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1033 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Move scanning code into NetworkManager rather than use iwlib's
iw_scan() function, so that we can figure out AP capabilities.
* NetworkManager.h
- Add AP capability bits
* src/NetworkManagerAP.[ch]
- Add capability field to NMAccessPoint structure
- Add WPA & RSN Information Element fields and accessor
functions to NMAccessPoint
* src/NetworkManagerDevice.c
- Remove usage of iw_scan
- Add scanning code to NetworkManager rather than use
iw_scan() from iwlib
* src/NetworkManagerUtils.[ch]
- (nm_dispose_scan_results): remove, unused
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1023 4912f4e0-d625-0410-9fb7-b9a5a253dbdc