Commit graph

2720 commits

Author SHA1 Message Date
Dan Williams
fe4c8eb022 wifi: add some mesh bits to wifi utils 2011-11-09 21:28:02 -06:00
Dan Williams
a5c2c47b3e wifi: make wireless-helper.h private to src/
The less stuff that needs WEXT the better.
2011-11-09 21:28:02 -06:00
Dan Williams
46437ed525 wifi: move WEXT-based WiFi interface detection to wifi-utils 2011-11-09 21:28:02 -06:00
Dan Williams
9a629f8cb4 wifi: clean up some usage of wireless-helper.h 2011-11-09 21:28:02 -06:00
Dan Williams
02ecc5cbc4 wifi: split WEXT handling out into its own file 2011-11-09 21:28:01 -06:00
Dan Williams
7d0761588c wifi: remove dependency on wireless-tools/libiw 2011-11-09 21:28:01 -06:00
Dan Williams
316d0ed106 wifi: remove some WEXT leftovers 2011-11-09 21:28:01 -06:00
Dan Williams
47eba095ec wifi: split out WEXT handling code to make nl80211 conversion simpler 2011-11-09 21:28:01 -06:00
David Rothlisberger
acadb7da8b dhclient: pass DBUS_SYSTEM_BUS_ADDRESS environment variable
So that dhclient will, in turn, pass it to the action script
(the action script tries to send a DBus signal to NetworkManager
over the system bus).

Dhclient "execve"s the action script with a hand-constructed environment
that only includes specific variables, plus whatever is passed to
dhclient with "-e".

As far as I know, dhcpcd has no option equivalent to dhclient's "-e".
2011-11-09 11:17:04 -06:00
Dan Williams
2c5d9fe86b ip6: subscribe to route group so we get RTM_NEWROUTE/RTM_DELROUTE (lp:886410)
Found by Michael Mol; need to subscribe to the group otherwise
we won't get the messages.
2011-11-04 20:10:00 -05:00
Jiří Klimeš
077afa02f5 core: correct shared IP range to be 10.42.x.1 as is documented (bgo #657127)
This fixes possible "overflow" of range from 10.42.x.1 to the fourth (on LSB)
or the second (on MSB) octet.
2011-11-03 09:20:03 +01:00
Mathieu Trudel-Lapierre
fc0739a5d4 dns: don't update routing and DNS if no devices were ever managed (lp:862134)
Avoids blowing away existing routes and resolv.conf if NM never
managed any devices.
2011-11-02 15:28:43 -05:00
Dan Williams
bc8d07a733 Revert "dns: don't update routing and DNS if no devices were ever managed"
This reverts commit 0051b44a09.

While fixing up the patch I (dcbw) forgot to include the lp# in
the commit message.
2011-11-02 15:27:24 -05:00
Dan Williams
e04cbae154 policy: don't update DNS if the hostname hasn't actually changed
This was causing spurious rewrites of resolv.conf.
2011-11-02 15:21:52 -05:00
Dan Williams
a2ec91ca7e dns: remove unused parameter 2011-11-02 15:06:35 -05:00
Mathieu Trudel-Lapierre
0051b44a09 dns: don't update routing and DNS if no devices were ever managed
Avoids blowing away existing routes and resolv.conf if NM never
managed any devices.
2011-11-02 15:05:43 -05:00
Thomas Bechtold
184d01c27f trivial: set correct log domain in dhcp client
just set the correct log domain
2011-11-01 16:00:36 -05:00
Florian Echtler
2938243e25 keyfile: call correct scheme function when writing certificates (bgo #662836) 2011-11-01 16:32:51 +01:00
Jiří Klimeš
4d1d3b9935 core: fix building for GLib thread API changes (GLib >= 2.31.0) (bgo #662695) 2011-10-31 15:30:02 +01:00
Dan Williams
d8437ffaf1 core: fix deprecated usage of g_value_[get|set]_char() (bgo #662694) 2011-10-28 11:35:59 -05:00
Dan Williams
c2d2f403a5 wimax: fix link timeout interval
Should be seconds, not milliseconds.
2011-10-28 11:27:05 -05:00
Dan Williams
0ca8ba791f vpn: ensure valid specific object when none was given at activation
If the caller passed "/" to indicate that NM should choose the default
active connection as the parent of the VPN, make sure we pass that
active connection's object path to the VPN for its specific object
path instead of leaving it "/".
2011-10-25 12:59:35 -05:00
Dan Williams
bd1648b214 vpn: print VPN plugin states as strings 2011-10-25 11:13:39 -05:00
Dan Williams
37ccad8b6a logger: ensure external crash logger buffer is terminated 2011-10-20 13:47:28 -05:00
Jiří Klimeš
29a4c359d2 dhcp: fix key for dhcp options without "new_" prefix
There are none at present, but still tmp_key has to be key, not value.
2011-10-20 18:09:42 +02:00
Jiří Klimeš
74615ce23c policy: fix setting hostname from DHCP options (rh #719100)
This commit fixes a regression introduced by commit
6272052f9d.

dhclient prefixes options with "new_", however we remove that prefix
before putting options into NMDHCP4Config.
2011-10-20 16:51:02 +02:00
Dan Williams
6e92c1b606 core: fix leaked return value of nm_netlink_index_to_iface()
This function now returns allocated strings, so we need to make
sure we free them.
2011-10-18 15:28:26 -05:00
Jiří Klimeš
2e872d8e93 keyfile: add another testcase for intlist-like SSID (bgo #660232) 2011-10-18 17:01:17 +02:00
Jiří Klimeš
50e329a92f keyfile: fix reading/writing SSIDs for all cases (bgo #660232)
Even with the previous fix some cases were still undistinguishable. For example,SSID like '11;12;' is both valid an intlist and a string.
So this commit:
- escapes ';' character with '\' when writing, and removes '\' while reading
  This clearly differentiates between intlist x strings.
- changes regex pattern to allow spaces before ';' in intlist format
2011-10-18 16:13:39 +02:00
Dan Williams
965d5860ab keyfile: fix reading intlist-like SSIDs (ie "101") (lp:874328)
Intlists have to end with a ';' since that's how they are written
out, and that's the only way we can actually distinguish between
intlist SSIDs and string SSIDs, really.
2011-10-14 11:33:14 -05:00
Dan Williams
65bcc4719a keyfile: add testcase for intlist-like SSID (lp:874328) 2011-10-14 11:17:12 -05:00
Dan Williams
c48db5e79b wifi: clarify supplicant disconnect handling behavior
No functional change, but clarify what's supposed to happen when
a disconnect occurs during activation or when the device is activated.

If the connection is an 802.1x or LEAP connection who's password is
NOT_SAVED, then we should request a new password immediately since
the existing one is probably no longer valid (ie, a OTP or token).

Otherwise, start a timer to give the supplicant some time to reconnect.
2011-10-11 19:13:02 -05:00
Jiří Klimeš
3049511f47 ifcfg-rh: fix changing WPA connections to WEP
When connection was changed with the editor from WPA to WEP, KEY_MGMT was
not cleared. This resulted in infinite loop of ifcfg plugin under some
circumstances ("Available to all users" unchecked, I think).
The re-read connection was regarded as WPA and thus it differed from the
stored one.
2011-10-11 18:10:26 +02:00
Mathieu Trudel-Lapierre
b687872f68 ip6: make sure static routes are flushed for manual configs too
Manual configs don't require an IP6Manager object and thus static
routes wouldn't get flushed on device deactivation.
2011-10-10 16:36:36 -05:00
Ludwig Nussel
b0e6033ba9 wifi: fix stop condition of EAP method check while loop 2011-10-10 16:12:10 -05:00
Dan Williams
a6f7dfff23 wifi: simplify supplicant connect failure handling
Make it a bit clearer what's happening and where.  Still need to
do some cleanups to make NM ask for secrets less.
2011-10-06 18:18:39 -05:00
Dan Williams
7afba44329 supplicant: check supported EAP methods for EAP-FAST 2011-10-06 13:32:23 -05:00
Dan Williams
3f08004aa1 dnsmasq: bump DNS cache size to 400
150 seems a bit low these days.
2011-10-05 17:28:22 -05:00
David Rothlisberger
bcef119ffd build: add --disable-crashtrace option
Disables GNU backtrace extensions.
2011-10-05 17:01:16 -05:00
Thomas Jarosch
5bbafdc632 ifnet: fix possible use of uninitialized variable
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2011-10-05 12:41:52 -05:00
Thomas Jarosch
d7ad91d1b4 ifcfg-rh: use correct g_free() function
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>

(dcbw: fix more occurances)
2011-10-05 12:40:01 -05:00
Dan Williams
7956d661ee core: fix builds with libnl2 2011-10-04 13:20:11 -05:00
Tore Anderson
453f676b2d ip6: accept RAs when forwarding
This patch makes NM set the "accept_ra" sysctl to 1 rather than 2. This
causes the kernel to process RAs even if it configured to forward IPv6
traffic on the interface in question.

IPv6 forwarding would likely be enabled on a host running virtualised
operating systems with virtualised network adapters, for example. This
should not prevent NM from successfully activating IPv6 on a
NM-controlled interface configured with IPv6 mode Auto.
2011-10-03 15:49:15 -05:00
Jiří Klimeš
3e79f06566 trivial: remove unwanted exclamation mark to fix compilation 2011-10-03 15:54:25 +02:00
Jiří Klimeš
dce6a071a8 ifcfg-rh: don't use spaces in ifcfg file names (rh #742273) 2011-10-03 10:30:50 +02:00
Thomas Bechtold
ab7a8fcf98 core: improve config error handling
* better error messages
  * fix memory leak in parse_state_file ()
  * create intermediate parent directories as needed for state file
2011-10-03 00:46:37 -05:00
Dan Williams
06fa29b7bb wifi: add debug logging to new AP merge paths 2011-09-30 13:23:52 -05:00
Dan Williams
fe3151e46e wifi: tweak scanning debug message 2011-09-30 12:59:59 -05:00
Dan Williams
f5d124cd83 core: more verbose message when ignoring certain interface types 2011-09-30 12:50:15 -05:00
Dan Williams
f6aa009712 wifi: rename some AP debug dumping functions 2011-09-30 12:34:17 -05:00