ofono with local patches/modifications
Go to file
Slava Monich bb637a12c5 gatmux: Remove finalized watches from the list
Leaving them there may result in invalid reads like this:

==2312== Invalid read of size 4
==2312==    at 0xAB8C0: dispatch_sources (gatmux.c:134)
==2312==    by 0xAC5D3: channel_close (gatmux.c:479)
==2312==    by 0x4AE8885: g_io_channel_shutdown (giochannel.c:523)
==2312==    by 0x4AE8A1D: g_io_channel_unref (giochannel.c:240)
==2312==    by 0xAC423: watch_finalize (gatmux.c:426)
==2312==    by 0x4AF2CC9: g_source_unref_internal (gmain.c:2048)
==2312==    by 0x4AF44E1: g_source_destroy_internal (gmain.c:1230)
==2312==    by 0x4AF44E1: g_source_destroy (gmain.c:1256)
==2312==    by 0x4AF5257: g_source_remove (gmain.c:2282)
==2312==    by 0xAB5CB: io_shutdown (gatio.c:325)
==2312==    by 0xAB667: g_at_io_unref (gatio.c:345)
==2312==    by 0xA72C7: at_chat_unref (gatchat.c:972)
==2312==    by 0xA829B: g_at_chat_unref (gatchat.c:1446)
==2312==  Address 0x51420f0 is 56 bytes inside a block of size 60 free'd
==2312==    at 0x4840B28: free (vg_replace_malloc.c:530)
==2312==    by 0x4AF2D33: g_source_unref_internal (gmain.c:2075)
==2312==    by 0x4AF44E1: g_source_destroy_internal (gmain.c:1230)
==2312==    by 0x4AF44E1: g_source_destroy (gmain.c:1256)
==2312==    by 0x4AF5257: g_source_remove (gmain.c:2282)
==2312==    by 0xAB46B: g_at_io_set_write_handler (gatio.c:283)
==2312==    by 0xA713F: at_chat_suspend (gatchat.c:938)
==2312==    by 0xA72B7: at_chat_unref (gatchat.c:971)
==2312==    by 0xA829B: g_at_chat_unref (gatchat.c:1446)
==2312==  Block was alloc'd at
==2312==    at 0x4841BF0: calloc (vg_replace_malloc.c:711)
==2312==    by 0x4AFB117: g_malloc0 (gmem.c:124)
==2312==    by 0x4AF401F: g_source_new (gmain.c:892)
==2312==    by 0xAC6A7: channel_create_watch (gatmux.c:506)
==2312==    by 0x4AE7C4F: g_io_add_watch_full (giochannel.c:649)
==2312==    by 0xAB4EB: g_at_io_set_write_handler (gatio.c:297)
==2312==    by 0xA7103: chat_wakeup_writer (gatchat.c:931)
==2312==    by 0xA753F: at_chat_send_common (gatchat.c:1045)
==2312==    by 0xA850F: g_at_chat_send (gatchat.c:1502)

It's also necessary to add additional references to the sources
for the duration of the dispatch_sources loop because any source
can be removed when any callback is invoked (and not necessarily
the one being dispatched).
2017-10-23 15:25:20 -05:00
btio btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
doc doc: documentation for SimAuth dbus interfaces 2017-10-12 09:49:11 -05:00
drivers qmi: support SMS receive on Quectel EC21 2017-10-17 09:35:02 -05:00
dundee dundee: Fix out-of-order free 2015-05-13 15:44:39 -05:00
examples gprs-provision: Fix crash if no SPN present 2011-12-02 12:53:44 -06:00
gatchat gatmux: Remove finalized watches from the list 2017-10-23 15:25:20 -05:00
gdbus gdbus: Close private connection if setup fails 2015-04-20 09:04:39 +02:00
gisi gisi: Remove includes of <glib/gtypes.h> 2012-03-19 16:12:12 -07:00
gril gril: added RIL constants for cell info list 2017-09-08 15:06:45 -05:00
include sim-auth: prep simauth/dbus headers 2017-10-11 14:17:03 -05:00
plugins phonesim: Added sim-auth to phonesim plugin 2017-10-12 15:33:46 -05:00
src simauth: Fixed incorrect AUTS length 2017-10-20 14:08:57 -05:00
test test: added tests for GSM/UMTS auth algorithms 2017-10-12 09:51:48 -05:00
tools tools: Remove unused qmi tool 2017-02-02 11:41:27 -06:00
unit unit: Fix up style issues 2017-10-11 10:29:16 -05:00
.gitignore unit: Add test-mbim 2017-10-05 11:08:38 -05:00
.mailmap mailmap: Fix up Michael's name 2012-05-01 12:40:09 +02:00
AUTHORS AUTHORS: Mention Ankit's contributions 2017-10-09 12:23:52 -05:00
COPYING Initial revision 2009-04-26 20:31:15 +02:00
ChangeLog Release 1.21 2017-10-05 16:28:01 +02:00
HACKING HACKING: Update instructions with email address 2015-12-17 13:13:27 -06:00
INSTALL Initial revision 2009-04-26 20:31:15 +02:00
Makefile.am mbim: Add basic SIM driver 2017-10-09 16:37:39 -05:00
NEWS Initial revision 2009-04-26 20:31:15 +02:00
README README: add information about mailing list and site 2012-07-02 11:04:31 -05:00
TODO TODO: Add DTMF batch hint task 2015-11-12 13:39:31 -06:00
acinclude.m4 build: Don't report format truncation as warnings 2017-07-11 10:47:31 -07:00
bootstrap bootstrap: autoconf must run before automake 2009-12-10 15:55:49 +01:00
bootstrap-configure build: Reorder default developer build options 2012-12-10 20:45:24 +01:00
configure.ac mbimmodem: Add skeleton driver 2017-10-05 11:08:38 -05:00
ofono.pc.in build: Support for pkg-config 2011-01-31 10:44:56 +01:00

README

oFono - Open Source Telephony
*****************************

Copyright (C) 2008-2011  Intel Corporation. All rights reserved.


Compilation and installation
============================

In order to compile telephony stack you need following software packages:
	- GCC compiler
	- GLib library
	- D-Bus library

To configure run:
	./configure --prefix=/usr --mandir=/usr/share/man \
				--sysconfdir=/etc --localstatedir=/var

Configure automatically searches for all required components and packages.

To compile and install run:
	make && make install


Kernel Dependencies
===================

In order to have the PPP stack working in oFono you need to enable CONFIG_TUN
(Universal TUN/TAP device driver support) in your kernel .config.

Information
===========

Mailing list:
	ofono@ofono.org

For additional information about the project visit oFono web site:
	http://www.ofono.org