Commit Graph

251 Commits

Author SHA1 Message Date
Dan Williams
e048b8e013 adsl: talk ADSL ioctls directly and kill usage of br2684ctl
The code to set up ATM interfaces is actually pretty simple,
so don't bother spawning br2684ctl at all.  Just do the
necessary communication with the kernel directly and save
a bunch of code.

Note: this isn't very likely to work as I don't have an
ADSL connection to test with.  Testing help appreciated.
2012-05-18 15:42:56 -05:00
Pantelis Koukousoulas
d125296eb1 adsl: initial PPPoE support for ADSL devices 2012-05-18 15:42:56 -05:00
Dan Winship
0f9cc88a4c Use GLIB_VERSION_MIN_REQUIRED to work around GValueArray deprecation
GValueArray is deprecated as of GLib 2.32, but we need to use it for
dbus-glib stuff. So use the new GLIB_VERSION_MIN_REQUIRED macro to
prevent those warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=669613
2012-05-17 09:47:55 -04:00
Thomas Bechtold
54a0ac0e50 configure: fix libsoup check 2012-05-16 16:21:38 -05:00
Dan Williams
5c0607d522 examples: add an example system settings plugin 2012-05-07 15:19:09 -05:00
Dan Williams
91f23df7ec build: report whether WEXT is enabled or not (bgo #674650) 2012-04-24 13:07:49 -05:00
Dan Williams
3f7f5e50de release: bump version to 0.9.4.0 2012-03-23 15:55:59 -05:00
Dan Williams
4f0ddb105a release: bump version to 0.9.3.997 (0.9.4-rc1) 2012-03-19 10:11:33 -05:00
Dan Williams
7f717f905b build: make VLAN code compatible with older kernels
Apparently VLAN_FLAG_LOOSE_BINDING isn't in older kernels like 2.6.32.
2012-03-09 12:20:42 -06:00
Dan Williams
3efd156f50 release: bump version to 0.9.3.995 (0.9.4-beta1) 2012-03-01 18:05:28 -06:00
Dan Williams
ca3c39abd3 wifi: let WEXT be disabled with --with-wext=no
It's still enabled by default if you don't pass --with-wext=no.
But now it's possible to build without WEXT entirely.
2012-02-29 23:11:04 -06:00
Dan Williams
2619c017dd core: make connectivity checking selectable at build-time
Just in case you really don't want to install libsoup.
2012-02-27 10:56:51 -06:00
Thomas Bechtold
267bc993a7 core: add internet connectivity check
* use libsoup to compare a http response from a given
  uri with a given response (use g_str_has_prefix () to compare)
* do periodically check the connectivity. Check interval is configurable
* check connectivity when device state change
  from/to NM_DEVICE_STATE_ACTIVATED
2012-02-27 10:56:51 -06:00
Dan Williams
78a8afac6c release: bump version to 0.9.3.990 2012-02-16 15:39:08 -06:00
Dan Winship
839eab5564 Use glib-mkenums to generate enum types
Rather than generating enum classes by hand (and complaining in each
file that "this should really be standard"), use glib-mkenums.

Unfortunately, we need a very new version of glib-mkenums in order to
deal with NM's naming conventions and to fix a few other bugs, so just
import that into the source tree temporarily.

Also, to simplify the use of glib-mkenums, import Makefile.glib from
https://bugzilla.gnome.org/654395.

To avoid having to run glib-mkenums for every subdirectory of src/,
add a new "generated" directory, and put the generated enums files
there.

Finally, use Makefile.glib for marshallers too, and generate separate
ones for libnm-glib and NetworkManager.
2012-02-15 11:42:15 -05:00
Jiří Klimeš
38382770aa examples: add C examples for monitoring whether NM runs
- the first uses dbus-glib and D-Bus "NameOwnerChanged" signal directly
- the second uses GIO's g_bus_watch_name()
- the third uses Qt and QDBusServiceWatcher class
2012-02-03 11:55:46 +01:00
Dan Williams
f900522308 build: easier selection of session tracking
Using --with-session-tracking=xxx you can select the backend
you want from among CK, systemd, or none.
2012-02-01 16:50:44 -06:00
Matthias Clasen
3b75a97ab0 core: optionally use systemd for session tracking instead of ConsoleKit
When configured with --enable-systemd, this patch makes
NetworkManager use systemd for session tracking instead
of ConsoleKit.
2012-02-01 15:09:46 -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
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š
b366ebe321 examples: add some examples in shell 2011-12-08 16:36:37 +01:00
Jiří Klimeš
77ef5e8676 examples: add a few examples in ruby 2011-11-29 16:20:04 +01:00
Thomas Graf
914b28a626 nl80211: check and link against LIBNL_GENL3
Allows using nl80211 with libnl3

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-11-14 17:40:10 -06:00
Jiri Popelka
1c0aeb4575 firewall: add firewall manager
src/firewall-manager tracks whether firewall is on the bus or not.
In nm-device.c at stage5 (ip-config-commit) before we actually
apply the IP configuration to the interface, we send the
IP interface name and zone to firewall and asynchronously wait
for a D-Bus reply.  Then after we get the reply
(or if the firewall isn't running) we proceed with
applying the IP configuration to the interface.
2011-11-09 22:02:02 -06:00
Dan Williams
3f39e6a95f build: check for nl80211.h too 2011-11-09 21:28:02 -06:00
Dan Williams
7d0761588c wifi: remove dependency on wireless-tools/libiw 2011-11-09 21:28:01 -06:00
Dan Williams
901536e823 release: bump development version to 0.9.3
Remember, releases that end in odd numbers are development releases.
2011-11-09 21:26:45 -06:00
Dan Williams
c04e00219c release: bump version to 0.9.2 2011-11-09 15:28:54 -06:00
Dan Williams
582a8407ba release: bump version to 0.9.1.95 (0.9.2-rc1) 2011-10-28 12:53:28 -05:00
David Rothlisberger
bcef119ffd build: add --disable-crashtrace option
Disables GNU backtrace extensions.
2011-10-05 17:01:16 -05:00
Thomas Graf
61099e30f6 configure: Check for libnl-route-3 package
NM not only depends on libnl but also on libnl-route. Therefore check for the
corresponding pkg-config file and use its CFLAGS and LIBS. Otherwise fall
back to using libnl-2 or libnl-1.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:05:53 -05:00
Thomas Graf
fcc128516e configure: Fix typo in libnl3 check
Check for libnl3 sets $have_libnl2 variable instead of $have_libnl3. Mostly a
cosmetic fix since the only usage also has the typo in it.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:05:16 -05:00
Thomas Graf
6764711cc9 configure: Only check for older libnl versions if newer is unavailable
More recent libnl versions can be installed in parallel. Therefore it is
possible for more than one libnl check to pass successful. The way
the #ifdefs are done this results in code for multiple libnl versions
to be included.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:03:07 -05:00
Dan Williams
d8edf0ec3a release: bump version to 0.9.1.90 (0.9.2-beta1) 2011-09-19 23:18:12 -05:00
Dan Williams
0fe8c80fae Merge branch 'libnl3' 2011-08-23 09:30:50 -05:00
Dan Williams
2a56da25f2 release: version bump after release
Start of new development version 0.9.1; next stable release
will be 0.9.2.
2011-08-23 09:29:43 -05:00
Dan Williams
832c1aa69b release: bump version to 0.9.0
Yay!
2011-08-22 20:33:07 -05:00
Dan Williams
1bae763d4d build: mention libiw (in addition to wireless-tools) if headers aren't found (bgo #656340) 2011-08-22 17:30:45 -05:00
Dan Williams
7addf3009a Merge remote-tracking branch 'origin/master' into libnl3 2011-08-16 16:45:41 -05:00
Dan Williams
6c901ab040 api: update version based on configure version
Instead of manually which is error-prone.
2011-08-06 11:19:33 +02:00
Alfredo Matos
daeb181fa2 core: add libnl-3 API compatibility 2011-07-30 15:47:33 -05:00
Alfredo Matos
a6c6556831 core: add libnl-2 support with libnl-1 compatibility 2011-07-30 15:47:26 -05:00
Aleksander Morgado
19019a8e0b build: fix automake portability warnings 2011-06-13 10:38:52 -05:00
Jiří Klimeš
096a1fcdc9 examples: add a Qt example for setting manual IPv4 addresses into a connection 2011-06-08 19:18:53 +02:00
Dan Williams
57e7ccca6d release: bump version to 0.8.9997 (0.9-rc3) 2011-05-27 09:38:29 -05:00
Dan Williams
b6a63ff025 core: allow build-time enable/disable of PolicyKit
When PK is turned off, everything is authorized.
2011-05-18 22:38:39 -05:00
Dan Williams
f79dcb9560 core: consolidate PolicyKit code
Use one global PolkitAuthority object; we only really need to use it
in one place anyway.  So consolidate the code that uses polkit into
nm-manager-auth.c.
2011-05-18 22:20:24 -05:00
Dan Williams
0105be530e release: bump version to 0.8.999 (0.9-rc2) 2011-05-03 13:35:08 -05:00
Dan Williams
f898dbf1a9 dispatcher: enhance dispatcher script environment (bgo #648382)
For VPN connections, the interface name would be that of the VPN's
IP interface, but the script environment would be the that of the
VPN's parent device.  Enhance the environment by adding any VPN
specific details as additional environment variables prefixed by
"VPN_".  Leave the existing environment setup intact for backwards
compatiblity.

Additionally, the dispatcher never got updated for IPv6 support,
so push IPv6 configuration and DHCPv6 configuration into the
environment too.

Even better, push everything the dispatcher needs to it instead
of making the dispatcher make D-Bus requests back to NM, which
sometimes fails if NM has already torn down the device or the
connection which the device was using.

And add some testcases to ensure that we don't break backwards compat,
the testcases here were grabbed from a 0.8.4 machine with a hacked up
dispatcher to dump everything it was given from NM.
2011-05-02 22:54:28 -05:00
Dan Williams
45c8dee74c build: fix subsequent builds when reconfigured (bgo #648451)
AC_PROG_CXX should be unconditionally run, as it doesn't fail out
if a C++ compiler is not found, which is fine.  It'll check for
one, but we only use it if --enable-qt=yes is given at configure
time.  If --enable-qt=no is set, we do not want to do anything
C++ related, which is why it was conditionalized (incorrectly)
the first time around.
2011-04-25 10:09:44 -05:00