Samuel Ortiz [Mon, 26 Jul 2010 10:13:41 +0000 (12:13 +0200)]
dnsproxy flush method implementation
Samuel Ortiz [Fri, 23 Jul 2010 15:47:24 +0000 (17:47 +0200)]
Add a resolver flush method
The flush method sends any pending resolving requests. A resolver can
queue requests to some pending list when e.g. it knows ConnMan is offline.
Samuel Ortiz [Fri, 23 Jul 2010 15:09:50 +0000 (17:09 +0200)]
Initial on-demand connection implementation
This first implementation tracks the connection status, and provides
a simple API for starting the on-demand session.
Zhenhua Zhang [Mon, 26 Jul 2010 01:11:36 +0000 (09:11 +0800)]
Free service data in service_reply
Avoid the memory leak of server_data.
Marcel Holtmann [Sun, 25 Jul 2010 19:26:49 +0000 (12:26 -0700)]
Release 0.55
Marcel Holtmann [Sun, 25 Jul 2010 19:04:33 +0000 (12:04 -0700)]
Fix script for testing counter interface
Marcel Holtmann [Sun, 25 Jul 2010 18:56:38 +0000 (11:56 -0700)]
Fix wrong prototype for DHCP client library reference counting
Marcel Holtmann [Sun, 25 Jul 2010 18:50:26 +0000 (11:50 -0700)]
Add more debug output to DHCP client plugin
Marcel Holtmann [Sat, 24 Jul 2010 03:01:49 +0000 (20:01 -0700)]
Update RegisterCounter method parameters
Yingan Deng [Fri, 23 Jul 2010 02:28:56 +0000 (10:28 +0800)]
Fix PATH of adapter_watch in bluetooth plugin
The Path of the adapter_watch signal is not right, so the adapter
status can not be synced.
Samuel Ortiz [Thu, 22 Jul 2010 16:17:51 +0000 (18:17 +0200)]
Fix floating point error for unhandled dhcp options
Unhandled dhcp options will trigger a divide by zero exception.
Samuel Ortiz [Thu, 22 Jul 2010 15:03:53 +0000 (17:03 +0200)]
Initial dhcp-lib based dhcp plugin
dhclient is still the favorite one, but the dhcp-lib one comes next to it.
Samuel Ortiz [Thu, 22 Jul 2010 14:53:45 +0000 (16:53 +0200)]
Display hostname to dhcp-test
Samuel Ortiz [Thu, 22 Jul 2010 13:54:58 +0000 (15:54 +0200)]
gdhcp hostname option support
Samuel Ortiz [Thu, 22 Jul 2010 11:43:35 +0000 (13:43 +0200)]
Fix GDHCPClientError typo
Marcel Holtmann [Thu, 22 Jul 2010 06:24:26 +0000 (23:24 -0700)]
Add iptables and DHCP test tools to .gitignore
Marcel Holtmann [Thu, 22 Jul 2010 06:23:20 +0000 (23:23 -0700)]
Export the DHCP library functions for plugins
Marcel Holtmann [Thu, 22 Jul 2010 06:21:58 +0000 (23:21 -0700)]
Add skeleton for generic DHCP plugin
Martin Xu [Thu, 22 Jul 2010 06:14:27 +0000 (23:14 -0700)]
Add initial version of DHCP client test tool
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.