Commit graph

1789 commits

Author SHA1 Message Date
Dan Williams
a00a6e5d87 logging: move logging into its own subdir
Some stuff we build (the DHCP manager) gets built independently
so that we can use it for unit tests.  For that, we need to build
the logging bits separately too, since the independent DHCP
library can't use them if they are embedded in NM.
2010-04-06 17:39:57 -07:00
Dan Williams
3d6108f245 bt-manager: update logging 2010-04-06 17:16:45 -07:00
Dan Williams
4ff8f21e4c ppp: update logging 2010-04-06 17:13:45 -07:00
Dan Williams
a07968179e ppp: plugin doesn't need to #include <nm-utils.h> 2010-04-06 17:00:16 -07:00
Dan Williams
2c7d63919a named-manager: update logging 2010-04-06 16:59:31 -07:00
Dan Williams
aa374d711a named-manager: whitespace cleanups 2010-04-06 16:55:50 -07:00
Dan Williams
893315ece6 logging: update VPN manager logging 2010-04-06 16:54:24 -07:00
Dan Williams
b7288577fe logging: update modem-manager logging 2010-04-06 16:41:12 -07:00
Dan Williams
dda5a3da40 logging: update default log domains 2010-04-06 16:32:23 -07:00
Dan Williams
a8c6175194 logging: update nm-udev-manager.c logging 2010-04-06 16:25:54 -07:00
Dan Williams
8faf8c91ef logging: add DEVICE logging domain 2010-04-06 16:25:42 -07:00
Dan Williams
28664e80fe logging: update nm-manager.c logging 2010-04-06 16:20:11 -07:00
Dan Williams
6e97fc4441 logging: tweak default log levels 2010-04-06 16:19:30 -07:00
Dan Williams
3e8a05d28e logging: allow logging control from the config file 2010-04-06 15:57:24 -07:00
Dan Williams
d03de42350 logging: one level at a time; levels are cumulative 2010-04-06 15:53:37 -07:00
Dan Williams
c0a455d344 core: clean up logging in main.c 2010-04-06 15:48:31 -07:00
Dan Williams
e0df501e0e logging: remove initial log level & facility message 2010-04-06 15:48:12 -07:00
Dan Williams
52c2422f72 logging: add log level helpers 2010-04-06 15:46:03 -07:00
Dan Williams
f46e1f6a43 logging: fix default log level and tweak info/warn output 2010-04-06 15:45:49 -07:00
Dan Williams
8e1ad97056 core: options help text cleanup 2010-04-06 15:28:33 -07:00
Dan Williams
e19bac4cd0 core: use fprintf before logging is set up 2010-04-06 15:27:35 -07:00
Dan Williams
32128b04ca logging: add basic logging capabilities 2010-04-06 15:23:08 -07:00
Dan Williams
043ce2c655 core: clear secrets on successful connection too
This ensures that the next time secrets are required, they will
be requested from the settings service.  Internally, NM shouldn't
be caching secrets; it should always request them from the settings
service so that the settings service can enforce policy about
password lifetime, if it wants to.
2010-04-06 12:48:53 -07:00
Dan Williams
a7e3d2acc2 olpc-mesh: fix companion device detection crash
The original OLPC mesh patch confused g_source_remove() with
g_signal_handler_disconnect(), so the signal handler that the
mesh device creates for the managers 'device-added' signal was
getting called after that mesh device instance was freed, which
is of course bad.
2010-04-06 02:02:06 -07:00
Dan Williams
f032e478d8 modem: consolidate common modem code into NMDeviceModem 2010-03-25 13:15:03 -07:00
Dan Williams
c45064ba36 modem: remove debugging printf 2010-03-25 12:21:01 -07:00
Dan Williams
9a1143b337 modem: fix modem type checking for various operations
After the DUN branch merge (I think?) a number of NM_IS_MODEM
calls were left around which now always return FALSE since
NMDeviceCdma and NMDeviceGsm aren't subclasses of NMModem anymore.
But we still need generic "is this a modem subclass" checks in
a few places, so add a modem base class that both the GSM and
CDMA device classes inherit from and use that.

Plus, we want to consolidate a ton of the common code in
nm-device-gsm.c and nm-device-cdma.c into the base class in the
future anyway.
2010-03-25 12:18:26 -07:00
Dan Williams
89af61f73c core: better matching of rfkill types
This also fixes a bug where WWAN devices were not correctly
recognized for enable/disable operations.
2010-03-25 11:36:19 -07:00
Dan Williams
b95c390015 bluetooth: add timeout for bluetooth connection request 2010-03-23 23:07:17 -07:00
Dan Williams
35e5656e65 bluetooth: fix race condition causing NAP connections to fail (rh #572340)
The race would start DHCP before we had the BNEP interface from
bluez, causing the wrong interface name to be used.
2010-03-23 22:51:57 -07:00
Dan Williams
b7d21eba69 dhcp: print out DHCP client command strings 2010-03-23 18:50:32 -07:00
Dan Williams
3012848759 rfkill: remove unused ignore_udev switch 2010-03-23 17:54:16 -07:00
Dan Williams
78dd4fc9f2 dhcp: make client selection more forgiving
If your distributor forgot to set up the client path for you, this
makes NM look in the right places and allows you to use either client
if it's installed, no matter what NM was configured with.
2010-03-23 14:22:10 -07:00
Dan Williams
55728349a1 core: properly clear non-fatal errors from state file parsing 2010-03-23 14:12:32 -07:00
Dan Williams
111ff83493 dhcp: tell dhcpcd to send hostname to server too if requested 2010-03-23 13:25:15 -07:00
Dan Williams
a2bcb79918 gsm: send new allowed mode and roaming control properties on connect 2010-03-16 23:53:31 -07:00
Dan Williams
4af1cc2661 utils: add boolean value hash helper 2010-03-16 23:51:55 -07:00
Dan Williams
308e9110ae modem: log disconnect errors 2010-03-10 11:25:14 -08:00
Jiří Klimeš
798d68caa4 dhcp: more intelligent default DHCP client detection 2010-03-06 00:07:06 -08:00
Jiří Klimeš
dbacb05d2a core: fix GErrors pileup 2010-03-03 10:11:11 +01:00
Jiří Klimeš
bfe58b26fb trivial: replace NetworkManager.c occurence after renaming to main.c 2010-03-03 09:57:28 +01:00
Dan Williams
9e627d1bce trivial: rename some CamelCase source files to not-camel-case 2010-03-02 15:06:14 -08:00
Dan Williams
e8b5bcca56 hosts: always check and update /etc/hosts if needed (rh #569914)
If the hostname was changed while NM wasn't running, and thus /etc/hosts
was out of sync with the new hostname, NM wouldn't make sure that
the new hostname was mapped in /etc/hosts.  Make sure that happens
and add a bunch of testcases for /etc/hosts rewriting.
2010-03-02 14:44:02 -08:00
Dan Williams
f5f1da66b5 core: fix auto determination of classful IPv4 address and add testcase (bgo #603098)
The original patch didn't actually fix the main DHCP option code,
just the dhclient leasefile reading code.  Add some testcases for
good measure.
2010-03-01 17:29:15 -08:00
Dan Williams
2a646aafa3 core: try getting system config from NetworkManager.conf first
And fall back to nm-system-settings.conf if that doesn't exist.
2010-03-01 12:09:16 -08:00
Jiří Klimeš
c43f8b8836 core: cli options cleanup; fix usage of '--plugins'
'--plugins' option now takes preference over [plugins] from config file.
This change fixes a bug caused by accepting default config file when no
'--config' was specified and thus effectively disabling '--plugins'.
2010-02-26 15:05:03 +01:00
Jirka Klimes
0f0daf7852 core: determine classful IPv4 prefix if no DHCP netmask is provided (bgo #603098) 2010-02-25 16:52:10 -08:00
Robert Piasek
2183af36b6 gentoo: fix use nscd -i to clear cache (gentoo #301720) 2010-02-22 12:07:43 +01:00
Dan Williams
4b8709629e bluetooth: NEED_AUTH state is valid here
Since during the modem preparation we might need secrets for
unlocking the device or for GSM/CDMA network password.
2010-02-19 01:44:17 -08:00
Dan Williams
c5eb684718 Merge remote branch 'origin/btdun' 2010-02-18 10:18:20 -08:00