Marcel Holtmann [Thu, 22 Jul 2010 06:11:22 +0000 (23:11 -0700)]
Fix missing automake integration for DHCP client library
Martin Xu [Thu, 22 Jul 2010 06:07:35 +0000 (23:07 -0700)]
Add initial support for DHCP client library
Samuel Ortiz [Wed, 21 Jul 2010 22:05:51 +0000 (00:05 +0200)]
TODO list update
Samuel Ortiz [Wed, 21 Jul 2010 18:46:50 +0000 (20:46 +0200)]
Check for NULL service pointer in nameserver host route routines
VPNs will have a NULL service.
Samuel Ortiz [Tue, 20 Jul 2010 22:45:07 +0000 (00:45 +0200)]
Fix outdated config file format document
Marcel Holtmann [Thu, 15 Jul 2010 20:58:22 +0000 (13:58 -0700)]
Provide unique identifier along with the interface callbacks
Marcel Holtmann [Thu, 15 Jul 2010 19:25:25 +0000 (12:25 -0700)]
Add service property and signals for LoginRequired
Marcel Holtmann [Thu, 15 Jul 2010 19:03:37 +0000 (12:03 -0700)]
Fix Ethernet service type detection
Marcel Holtmann [Thu, 15 Jul 2010 17:30:41 +0000 (10:30 -0700)]
Fix proper detection for pure Ethernet technology types
Marcel Holtmann [Thu, 15 Jul 2010 17:05:55 +0000 (10:05 -0700)]
Add technology driver callbacks for adding/removing interfaces
Marcel Holtmann [Thu, 15 Jul 2010 16:51:29 +0000 (09:51 -0700)]
Monitor interface creation/removal and check DEVTYPE
Marcel Holtmann [Thu, 15 Jul 2010 15:54:55 +0000 (17:54 +0200)]
Add simple technology driver support for Bluetooth
Marcel Holtmann [Thu, 15 Jul 2010 15:52:58 +0000 (17:52 +0200)]
Add technology driver callback for setting Tethering
Marcel Holtmann [Thu, 15 Jul 2010 15:46:27 +0000 (17:46 +0200)]
Add callbacks for Tethering enable/disable on technology level
Marcel Holtmann [Thu, 15 Jul 2010 15:42:03 +0000 (17:42 +0200)]
Add support for technology drivers
Martin Xu [Wed, 14 Jul 2010 05:58:38 +0000 (13:58 +0800)]
change data->gateway to data->ipv4_gateway in src/connection.c
Marcel Holtmann [Wed, 14 Jul 2010 02:03:24 +0000 (23:03 -0300)]
Add some extra autoconf/automake magic for iptables library
Samuel Ortiz [Wed, 14 Jul 2010 00:29:01 +0000 (02:29 +0200)]
iptables test program
This piece of code allows to add a -m quota -j DROP rule to a user defined
chain.
Marcel Holtmann [Tue, 13 Jul 2010 01:46:10 +0000 (22:46 -0300)]
Add missing enable-tethering and disable-tethering test scripts
Marcel Holtmann [Tue, 13 Jul 2010 01:25:20 +0000 (22:25 -0300)]
Add empty dictionary for roaming counters for now
Marcel Holtmann [Tue, 13 Jul 2010 01:25:03 +0000 (22:25 -0300)]
Update counter test script to print roaming ones as well
Marcel Holtmann [Tue, 13 Jul 2010 01:17:38 +0000 (22:17 -0300)]
Update counter API to differentiate between home and roaming counters
Samuel Ortiz [Mon, 12 Jul 2010 19:05:33 +0000 (21:05 +0200)]
Do not pass the -H option to dhclient task
This option is only supported by RedHat's dhclient package.
Samuel Ortiz [Mon, 12 Jul 2010 18:40:02 +0000 (20:40 +0200)]
Check for add_gateway() return value before dereferencing it
add_gateway() also returns NULL for zero length strings.
Samuel Ortiz [Mon, 12 Jul 2010 18:37:32 +0000 (20:37 +0200)]
Update nameserver host routes with DNS manual settings
Samuel Ortiz [Mon, 12 Jul 2010 16:56:58 +0000 (18:56 +0200)]
Return manually set gateway when the ipdevice one is NULL
With N (> 1) online services, only the connected device will have its
gateway set (as the default route). If the remaining ones have manually set
gateways, then let's return that.
Samuel Ortiz [Mon, 12 Jul 2010 16:45:59 +0000 (18:45 +0200)]
No host route needed for nameservers on the same subnet
Samuel Ortiz [Thu, 8 Jul 2010 17:27:40 +0000 (19:27 +0200)]
Set DNS host routes before toggling the service READY state
update_nameservers() is called when a service hits the READY state. The DNS
proxy code will be able to connect to the added nameservers if the right
host routes have been set.
Samuel Ortiz [Thu, 8 Jul 2010 17:08:14 +0000 (19:08 +0200)]
Factorize host route setting routine
Pekka Pessi [Mon, 12 Jul 2010 14:48:46 +0000 (17:48 +0300)]
Remove child watch when connman_task is freed
Marcel Holtmann [Sat, 10 Jul 2010 23:24:44 +0000 (20:24 -0300)]
Update counter API documentation
David Woodhouse [Fri, 9 Jul 2010 21:45:24 +0000 (23:45 +0200)]
Fix SEGV at first startup
connman_wifi_load_ssid() can return NULL. Best not to dereference that.
This fixes Meego's bug #3787.
Samuel Ortiz [Fri, 9 Jul 2010 21:34:32 +0000 (23:34 +0200)]
Fix connman_wifi_load_ssid
The returned string array must be NULL terminated, and the groups array
should be freed as well.
Samuel Ortiz [Fri, 9 Jul 2010 16:08:57 +0000 (18:08 +0200)]
Remove task plugin
Samuel Ortiz [Fri, 9 Jul 2010 16:05:41 +0000 (18:05 +0200)]
Convert udhcp plugin to connman task
The udhcp plugin was still using the old and deprecated
plugins/task.c API.
Samuel Ortiz [Fri, 9 Jul 2010 15:45:26 +0000 (17:45 +0200)]
Add DHCP plugins priority flags
Daniel Wagner [Fri, 9 Jul 2010 15:42:04 +0000 (17:42 +0200)]
Parse boolean flag from test-connman argv
Any non empty string evaluates to True which is clearly not intended.
Pekka Pessi [Fri, 9 Jul 2010 11:14:24 +0000 (14:14 +0300)]
Fix crash in dhclient release
Daniel Wagner [Fri, 9 Jul 2010 08:10:09 +0000 (10:10 +0200)]
Keep start/stop state of statistic timers
When starting a ethernet device the sequence of the
device state (UP, LOWER_UP) from RTNL is different then
by a WiFi device.
For an ethernet device the entering UP and LOWER_UP
arrives together. Whereas for WiFi device we get
a entering UP and leaving LOWER_UP. This results in
a call on lower_down first.
Unfortunatly, the stats_start and stats_stop should
be called in the right order. This fix tracks the
statistics enabled/disabled state.
Daniel Wagner [Thu, 8 Jul 2010 13:32:02 +0000 (15:32 +0200)]
Add additionals statistics counters
Adding rx_packets, tx_packets, rx_errors, tx_errors,
rx_dropped and tx_dropped counters.
Marcel Holtmann [Thu, 8 Jul 2010 13:16:31 +0000 (10:16 -0300)]
Fix my own email address
Daniel Wagner [Thu, 8 Jul 2010 12:17:41 +0000 (14:17 +0200)]
Make test-counter byte counters human readable
Daniel Wagner [Thu, 8 Jul 2010 09:11:11 +0000 (11:11 +0200)]
Save counter values during shutdown
With moving the start/stop function to the lower_up/lower_down
fucntions in service, the statistic was not stored anymore
when connman was shutdown. Reason being that lower_down will
be called only from a RTNL event which is asynchron. So when
the ethernet_disable is called connman doesn't see the
corresponding UP,LOWER_UP event.
Samuel Ortiz [Mon, 5 Jul 2010 18:14:17 +0000 (20:14 +0200)]
Update TODO list
Daniel Wagner [Wed, 7 Jul 2010 16:03:15 +0000 (18:03 +0200)]
Start/stop statistics depending on LOWER_UP state
The statistic counters should be updated as soon the
interface enters LOWER_UP state ('cable' connected).
Therefore we do not depend on the state of the
Service object, which fixes also the shortcoming
we have currently with private connections. Those
services do not enter the ONLINE state.
At least for ethernet the lower_up callback
has not been called because the service was
created 'too late'.
Daniel Wagner [Wed, 7 Jul 2010 12:43:38 +0000 (14:43 +0200)]
Initialize offset counters
The Service object needs the the first update of
the statistic counters to know the offset for its
calculation. Until now, the first timeout of timer
was used to update this values. This fix triggers
an update only for initialiting the offset values
and does not notify the counter clients.
Marcel Holtmann [Tue, 6 Jul 2010 15:47:36 +0000 (12:47 -0300)]
Remove the udev based RFKILL switch processing
Marcel Holtmann [Mon, 5 Jul 2010 13:23:21 +0000 (10:23 -0300)]
Make .mailmap rule simpler
Marcel Holtmann [Mon, 5 Jul 2010 13:17:55 +0000 (10:17 -0300)]
Add .mailmap file to fix Luiz's name spelling in git shortlog
Marcel Holtmann [Sat, 3 Jul 2010 08:21:52 +0000 (10:21 +0200)]
Add initial bits and pieces for Tethering support
Daniel Wagner [Wed, 30 Jun 2010 17:22:55 +0000 (19:22 +0200)]
Update service statistics
Instead of collecting statistics on interface name base and storing it
local in counter.c, update the Service object.
counter.c maps interface names to Service objects.
The assumption is made that there is a 1:1 mapping between Service objects
and interface name.
A Counter object will only show Service object statistics for services in
the ready state. There is no interface (yet) for retrieving information on
Service objects in idle/failure/configuration/.. state.
Daniel Wagner [Wed, 30 Jun 2010 11:59:51 +0000 (13:59 +0200)]
Add service statistic data structure
The static values are maintained in the Service object and exposed
through simple accessors.
When a Service object enters the ready state it registers itself at
Counter.
If the Service object is leaving the ready state it will de-register
itself from Counter and consequently it will not be updated anymore.
The user can shorten the update interval when he registers a Counter
object with a shorter interval value.
The statistic is stored in the profile file.
Only the current value is stored, no history.
If there is not Counter object the stats wont be upated. This short
coming will be addressed by the 'data threshold netfilter module'
patches.
Daniel Wagner [Wed, 30 Jun 2010 11:59:50 +0000 (13:59 +0200)]
Centralize rntl update timers
Instead of creating a new rntl trigger for each Counter object move this
part to the rtnl core. Only one update trigger will be registered at RTNL.
The minimum interval will used for the timeout callback.
Samuel Ortiz [Fri, 25 Jun 2010 15:36:12 +0000 (17:36 +0200)]
Set the network roaming toggle according to oFono status
oFono's NetworkRegistration interface gives a status propery indicating
(among other things) if we're roaming or not.
Samuel Ortiz [Fri, 25 Jun 2010 13:05:14 +0000 (15:05 +0200)]
Add the -g option to ntpd
This allows for setting the clock regardless of the time offset.
Samuel Ortiz [Fri, 25 Jun 2010 12:56:05 +0000 (14:56 +0200)]
Create service ipconfig only when it's NULL
If a service already has an allocated ipconfig layer but the corresponding
network index is negative, the only thing left to do is to set the ipconfig
index properly.
The oFono plugin toggles the network index between connection while the
service ipconfig layer stays alive.
Samuel Ortiz [Thu, 24 Jun 2010 13:57:02 +0000 (15:57 +0200)]
More realistic TODO list
Expand the TODO list with more tasks along with their priorities and
complexity. A more detailed task description is still missing.
Marcel Holtmann [Thu, 17 Jun 2010 12:47:06 +0000 (14:47 +0200)]
Release 0.54
Samuel Ortiz [Wed, 16 Jun 2010 21:42:46 +0000 (23:42 +0200)]
Use the network_update() routine for propagating strenght changes
Samuel Ortiz [Wed, 16 Jun 2010 21:41:30 +0000 (23:41 +0200)]
Add helper for network update
This is cleaner and more readable than going through the
network_set_group() routine.
Samuel Ortiz [Wed, 16 Jun 2010 15:06:58 +0000 (17:06 +0200)]
Track strength changes from oFono's registration interface
Samuel Ortiz [Wed, 16 Jun 2010 14:22:33 +0000 (16:22 +0200)]
Remove magic constants from dns request parsing code
Samuel Ortiz [Wed, 16 Jun 2010 14:01:01 +0000 (16:01 +0200)]
Support root requests with EDNS0 OPT records
A DNS request with a 0 length QNAME and an additional record (e.g. an
EDNS0 one) is a valid one. A root nameservers request sent by a client
requesting for EDNS0 is one of those.
So label_count can potentially be left at 0 with the EDNS0 record still
to be parsed. In that case label_ptr should just be moved one byte forward,
instead of staying at NULL. The latter will cause segmentation fault when
trying to dereference it from the EDNS0 record parsing code.
Kalle Valo [Mon, 14 Jun 2010 23:17:36 +0000 (01:17 +0200)]
Support for ppp default route setting
When gateway is NULL, we need to properly set our connection and element
string to 0.0.0.0 so that the interface is the default route.
Marcel Holtmann [Tue, 15 Jun 2010 07:26:14 +0000 (09:26 +0200)]
Mention Kalle's contributions
Kalle Valo [Fri, 11 Jun 2010 13:30:06 +0000 (16:30 +0300)]
ofono: Follow registration name changes
As the Name property in org.ofono.NetworkRegistration is sometimes empty
while the network is created, follow the property changes in
org.ofono.NetworkRegistration interface and set network name if the name
changes. Also the network name might change in certain rare cases,
so this needs to be handled in connman side.
Kalle Valo [Fri, 11 Jun 2010 13:29:59 +0000 (16:29 +0300)]
Send signal when service name changes
Needed for operator name changes in ofono.
Samuel Ortiz [Mon, 14 Jun 2010 20:09:42 +0000 (22:09 +0200)]
Use dedicated code path for fixed IP settings
Marcel Holtmann [Sat, 12 Jun 2010 12:57:30 +0000 (14:57 +0200)]
Fix invalid D-Bus path with finished scans without hidden SSIDs
Samuel Ortiz [Fri, 11 Jun 2010 23:13:21 +0000 (01:13 +0200)]
Enable hidden blocks only when hidden SSIDs are around
Samuel Ortiz [Fri, 11 Jun 2010 22:06:37 +0000 (00:06 +0200)]
Prevent wpa_supplicant from automatically associating to our hidden blocks
wpa_supplicant will never match a network block with an invalid BSSID
and an actual scan results, and thus will not select the latter for
association.
Samuel Ortiz [Fri, 11 Jun 2010 13:32:17 +0000 (15:32 +0200)]
Remove IPv4 element registration from the oFono plugin
This is no longer needed with the manual setting path adding the nameserver
as well.
Samuel Ortiz [Fri, 11 Jun 2010 13:24:10 +0000 (15:24 +0200)]
Add nameserver settings to the manual configuration setting
This is needed for ofono when the modem sends fixed IP settings, along
with namesevers.
Kalle Valo [Fri, 11 Jun 2010 06:12:06 +0000 (09:12 +0300)]
ofono: do not use context path as network group identifier
The ofono plugin was using context path as network group identifier
which caused service path to end something like this:
/profile/default/cellular_244053111242822_huawei2_primarycontext1
But the problem here is that with certain modems (like my Huawei E1552)
the path will change every time the modem in replugged. This meant
that a new connman service was created everytime and I had to
enter APN everytime, instead of using the stored service which already
had APN correctly set.
Fix this by using only the last part from path, for example in this
case primarycontext1:
/profile/default/cellular_244053111242822_primarycontext1
Now with huawei modems the service id stays always the same as it should.
Marcel Holtmann [Thu, 10 Jun 2010 23:57:22 +0000 (16:57 -0700)]
Return an error for invalid transaction on immutable services
Marcel Holtmann [Thu, 10 Jun 2010 23:24:26 +0000 (16:24 -0700)]
Only scan for hidden SSIDs from your favorites
Marcel Holtmann [Thu, 10 Jun 2010 14:46:26 +0000 (07:46 -0700)]
Fix potential uninitilized variable usage
Marcel Holtmann [Thu, 10 Jun 2010 14:42:53 +0000 (07:42 -0700)]
Prefer to use err instead of ret for variable names
Samuel Ortiz [Tue, 8 Jun 2010 19:43:58 +0000 (21:43 +0200)]
Set default gateway when route deletion fails
When del_routes fails, no gateway deletion event is sent and thus the
connection layer doesn't set a proper default gateway.
Samuel Ortiz [Mon, 7 Jun 2010 17:00:04 +0000 (19:00 +0200)]
Add some more portal plugin debug strings
Samuel Ortiz [Mon, 7 Jun 2010 15:03:13 +0000 (17:03 +0200)]
Update the configuration file documentation
The configuration file names should be *.config.
Samuel Ortiz [Thu, 3 Jun 2010 22:46:42 +0000 (00:46 +0200)]
Active scan hidden networks
A network block is added for all known SSIDs from the active profile. Then
those blocks are enabled one by one so that they're actively scanned. The
blocks are removed whenever their SSID appear in the scan results.
Samuel Ortiz [Thu, 3 Jun 2010 17:55:23 +0000 (19:55 +0200)]
wifi routine to fetch the saved SSIDs from the active profile
Kalle Valo [Fri, 4 Jun 2010 10:54:12 +0000 (13:54 +0300)]
Fix make clean
Running make clean twice in a row fails with error:
make: *** No rule to make target `include/connman', needed by `clean-local'.
Stop.
Fix it by moving the target as an argument for rm.
Marcel Holtmann [Thu, 3 Jun 2010 08:41:39 +0000 (01:41 -0700)]
Add support for ASCII based WEP keys
Marcel Holtmann [Thu, 3 Jun 2010 06:53:02 +0000 (23:53 -0700)]
Mention the IPv4.Method = fixed setting
Samuel Ortiz [Tue, 1 Jun 2010 00:16:35 +0000 (02:16 +0200)]
Remove default ntpd server
Default ntpd servers should be defined by plugins. Now the MeeGo one
sets a default server instead of hardcoding it from the ntpd plugin.
Samuel Ortiz [Mon, 31 May 2010 23:58:17 +0000 (01:58 +0200)]
Fix timeserver API
We want to keep the server pointer constant.
Samuel Ortiz [Mon, 31 May 2010 13:09:28 +0000 (15:09 +0200)]
ntpd plugin
The ntpd plugin triggers an ntpd -q task whenever a service goes online.
It either uses the meego ntp service or the one it potentially fetches
from a DHCP response.
Samuel Ortiz [Mon, 31 May 2010 13:05:58 +0000 (15:05 +0200)]
Complete timeserver API
The timeserver API now includes a sync() call in order to separate
timeserver peer addition from actual time syncing.
Marcel Holtmann [Fri, 28 May 2010 08:29:38 +0000 (10:29 +0200)]
Don't filter out interfaces within IP configuration
Marcel Holtmann [Tue, 25 May 2010 12:04:58 +0000 (14:04 +0200)]
Release 0.53
Marcel Holtmann [Tue, 25 May 2010 10:32:21 +0000 (12:32 +0200)]
Remove implemented items from the TODO list
Marcel Holtmann [Tue, 25 May 2010 09:06:03 +0000 (11:06 +0200)]
Break function declaration down to two lines
Gustavo F. Padovan [Tue, 25 May 2010 08:12:39 +0000 (05:12 -0300)]
Bring back -d option without need for argument
Daniel Wagner [Sat, 22 May 2010 17:57:22 +0000 (19:57 +0200)]
Add configuration file option for passphrase
Daniel Wagner [Thu, 20 May 2010 20:43:04 +0000 (22:43 +0200)]
Adapt to new MCC and MNC properties from oFono
Since oFono version 0.20 and later MobileNetworkCodeLength has been
deprecated. MobileCountryCode and MobileNetworkCode have to be used
instead.
Samuel Ortiz [Tue, 18 May 2010 21:37:42 +0000 (23:37 +0200)]
Use helper for checking rtnl message validity
Samuel Ortiz [Tue, 18 May 2010 21:13:36 +0000 (23:13 +0200)]
Fix set_property() indentation
Fix indentation errors introduced by the IPv4 setting code.
Samuel Ortiz [Tue, 18 May 2010 10:48:13 +0000 (12:48 +0200)]
Clear and set IPv4 settings when connected
If changed while connected, the IPv4 settings should be applied without
clients needing to go through a disconnect->connect cycle.