Commit Graph

7740 Commits

Author SHA1 Message Date
Alberto Ruiz
fc66e85146 docs: Update NMAccessPoint documentation
Further explanation on how to get the connection list to filter against
an access point. Also noting that filtering by device is recommended.
2012-01-13 09:39:09 -06:00
Colin Walters
8c6d3040dc keyfile: fix mismatched strdup/g_free
g_strdup is also NULL safe.
2012-01-13 00:34:23 -06:00
Colin Walters
0b30200e4b backends: further flesh out "generic" target to build
By default let's assume we don't have to do some magical invocation
to unbreak the libc resolv.conf cache.
2012-01-10 12:13:20 -06:00
Jiří Klimeš
659c22ccf6 cli: fix 'nmcli con delete' (rh #771258)
The command didn't delete the connection, because nmcli exited before NM could
check permissions (actually ConsoleKit didn't see the process).
Now nmcli waits for "Removed" signal or D-Bus return (error) message on "Delete"
method call.
2012-01-10 16:30:04 +01:00
Dan Williams
32bbdc461b po: add new translatable 2012-01-09 14:35:47 -06:00
Colin Walters
dab7dfaf35 build: fix srcdir != builddir
nm-version.h is in ${top_builddir}/include.
2012-01-09 14:20:36 -06:00
Colin Walters
d4a6868735 configure: add --with-distro=generic
For now we'll just get a basic NM setup for GNOME.
2012-01-09 14:18:28 -06:00
Jiří Klimeš
b76d7cd240 cli: added 'con status id|uuid|path <con>' for listing active connection details
'nmcli con status' still prints brief active connection list.
'nmcli con status id|uuid|path <con>' shows details of the selected active
connection.
2012-01-06 15:20:15 +01:00
Jiří Klimeš
a2e86dfb7d cli: fix a crash (due to freeing static string) 2012-01-06 15:20:15 +01:00
Jiří Klimeš
7e4b14d5ae cli: move IP config printing code from devices.c to common.c
That allows sharing the code between devices and active connections.
2012-01-06 15:20:15 +01:00
Peter Korsgaard
cbf72aeb34 core: only include execinfo.h if crashtrace support is enabled
On systems without backtrace suport (E.G. uClibc depending on config),
execinfo.h might not be available, breaking the build.

Fix it by only including it if enabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2012-01-05 11:50:28 -06:00
Jiří Klimeš
e4327518f3 cli: move helper IP conversion functions from devices.c to utils.c 2012-01-05 16:36:42 +01:00
Jiří Klimeš
3a23cddb37 libnm-util: add functions to get number of data items and secrets
nm_setting_vpn_get_num_data_items()
nm_setting_vpn_get_num_secrets()
2012-01-05 15:44:46 +01:00
Jiří Klimeš
decfaa41ef libnm-glib: fix up nm_vpn_connection_get_banner()
We need to get current vpn_state in order for nm_vpn_connection_get_banner() to
work properly even if vpn_state had not been set before.
2012-01-05 11:37:41 +01:00
Jiří Klimeš
fa5465a746 docs: update NMVPNConnection's documentation 2012-01-05 10:26:19 +01:00
Jiří Klimeš
1db0015cd0 trivial: fix spelling in a annotation 2012-01-05 09:32:43 +01:00
Jiří Klimeš
46e336b7b4 cli: update displaying device details (IP and DHCP configuration) 2012-01-03 16:37:53 +01:00
Jiří Klimeš
c15d047b46 cli: allow field values to be null-terminated string arrays
Field values can now be string arrays. print_fields() recognizes the format and
prints values accordingly.
Setter functions was added to facilitate setting string vs. array:
set_val_str(), set_val_arr()
2012-01-03 15:07:17 +01:00
Dan Williams
a080a1ed08 libnm-util: fix some introspection annotations 2011-12-22 11:04:56 -06:00
Jiří Klimeš
1ed0476ba6 cli: add fields to 'general' group of 'nmcli dev list's output 2011-12-20 15:54:58 +01:00
Dan Williams
8f110f40b1 test: fix errors in debug helper if a service isn't running
No point in complaining about modem-manager not running when
modem-manager isn't getting changed.
2011-12-19 21:04:54 -06:00
Dan Williams
5f15918817 core: expose supplicant credentials request/reply functionality
Let the NMDevice listen for credentials requests and reply to them.
2011-12-19 19:47:43 -06:00
Dan Williams
2726c23c54 wifi: detect whether supplicant supports credentials requests
We'll use this to request identity and passwords in-band during
the connection attempt instead of sending them all at the
beginning.  This should allow better handling of wrong
passwords (since we'll know we need to request them from the
user interactively) and better error codes when things fail.
2011-12-19 17:21:41 -06:00
Dan Williams
200297b617 docs: fix settings service object path name in migration guide 2011-12-19 11:24:02 -06:00
Jiří Klimeš
241d5ebd16 cli: add 'status' and 'default6' fields to active connections list 2011-12-19 10:09:05 +01:00
Dan Williams
6b31828f18 core: handle N900 USB network interface again
839c7909 made NM ignore this interface based on faulty
information about what the interface did.  It's actually
just a normal network interface that the N900 can use
to talk to the host or whatever.  It's a bit annoying
that for the most part it won't be used and that NM will
keep attempting to connect it with DHCP unless the user
changes the connection to be static IP (N900 defaults to
address 192.168.2.15 and expects the computer to be
192.168.2.14 and requires an ifup in it's Xterm app) but
if you have an N900 you're probably more knowledgable
than most.

http://wiki.maemo.org/N900_USB_networking
2011-12-15 13:36:29 -06:00
Dan Williams
ff53b383f7 ifupdown: clean up IPv4/IPv6 parsing and fix some memleaks 2011-12-12 21:30:46 -06:00
Guido Günther
2c83670ed7 ifupdown: add support for ipv6 connections 2011-12-12 20:13:13 -06:00
Guido Günther
72bef29d5d ifupdown: add ifparser_haskey function 2011-12-12 20:10:36 -06:00
Guido Günther
92a3bc9e4c ifupdown: cleanup indentation
and remove unused variables.
2011-12-12 20:09:16 -06:00
Dan Williams
80852aa96a ifnet: make testcases happy
ifnet_plugin_get_conf_file() needs to be defined for the testcases.
2011-12-12 20:07:54 -06:00
Dan Williams
1d0c27590e ifnet: use SYSCONFDIR not /etc 2011-12-12 20:04:25 -06:00
Dan Williams
c579bf95a5 trivial: spacing fixes 2011-12-12 20:02:56 -06:00
Mu Qiao
6d09316b6f ifnet: support writing openrc style 2011-12-12 20:02:00 -06:00
Mu Qiao
76619e4529 ifnet: support reading openrc style
IP configuration like 192.168.1.{2..4} is not supported anymore.
2011-12-12 19:44:03 -06:00
Dan Williams
7735b8d72f dbus: rename conf file to match current conventions 2011-12-12 19:31:11 -06:00
Dan Williams
f03b0ac176 bluetooth: ignore "No such adapter" warnings when bluetooth is inactive 2011-12-12 14:06:22 -06:00
Dan Williams
a868fd5a98 core: don't flush routes/addresses on invalid interface indexes
The NM 'iface' isn't always the IP iface (like for modems) so
to avoid a warning, only flush routes and addresses on deactivate
when the iface can actually handle it.
2011-12-12 14:01:21 -06:00
Dan Williams
f6f8ff1c33 wifi: kill wireless-helper.h
Only used in wifi-utils-wext.c now.
2011-12-12 11:45:54 -06:00
Dan Williams
fbd5c5b0e8 wifi: remove unused wpa.c
With the move to the new wpa_supplicant interface we no longer
have to parse the WPA/RSN IEs ourself.
2011-12-12 11:45:54 -06:00
Jiří Klimeš
bed4d15339 cli: use nm_utils_hwaddr_ntoa() from libnm-util 2011-12-09 13:47:06 +01:00
Jiří Klimeš
607cbffed2 cli: add 'infiniband' setting support 2011-12-09 13:20:36 +01:00
Jiří Klimeš
8962c98539 cli: use nm_connection_get_setting_<type>() to clean up code 2011-12-09 12:04:59 +01:00
Jiří Klimeš
23839887ac examples: add a shell example for listing devices 2011-12-09 10:24:59 +01:00
Dan Williams
2e858619d3 trivial: fix up libnm-util testcases 2011-12-09 00:13:19 -06:00
Thomas Graf
29c9abffa3 bonding: auto activate slaves when a master enters prepare state
Reset the auto retries of all slave connections when their master
connection enter prepare state and schedule all of the slaves
for activation if not pending yet.

Slaves are initially scheduled for activation together with their
master but depending on how long it takes for the master
connection to appear the slave activation requests may already
have run out of attempts. Resetting the retries counter ensures
that all slaves are properly activated when a master is brought up.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-12-09 00:00:36 -06:00
Dan Williams
fcc441622a core: add generic queued state transitions
There are now three places we need delayed state transitions:

1) unavailable to disconnected
2) failed to disconnected
3) bond unavailable to disconnected

(3) wasn't doing a delayed transition, but we can't change
state from inside a state-change handler otherwise we may not
end up fully processing the current state chagne.  So it needs a
delayed transition too; add some generic code to make that
easier to do.
2011-12-08 11:46:58 -06:00
Thomas Graf
cd0058baa7 bonding: move bonding master state to UNAVAILABLE regardless of carrier state
The carrier of a bonding device is the sum of the carrier state of
all its slaves. The carrier is always off if no slaves have been
attached to the master yet.

Therefore the carrier state is of no interest when making a bonding
connection available but we still want to use carrier detection to
move the connection out of ACTIVATED if the carrier of all slaves
are off.

A neat solution is to always put the bonding master directly into
DISCONNECTED whenever its state is changed to UNAVAILABLE.

This will make a bonding master available for activation immediately
and move it to DISCONNECTED whenever all slaves have been without
a carrier for 4 seconds.

In the future, the move from UNAVAILABLE to DISCONNECTED may be made
dependant on the availability of at least one configured slave.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-12-08 10:35:49 -06:00
Thomas Graf
916631f15a bonding: abort activation of unknown slave types
Abort activation of slaves which are unknown and log successful
enslave/release.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-12-08 10:34:35 -06:00
Thomas Graf
200a7e142a wired: allow devices to be reassumed when ip4 config is disabled
Wired connections acting as bonding slave will have their ip4
config disabled. Allow such connections to reassume devices.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-12-08 10:33:21 -06:00