summaryrefslogtreecommitdiff
path: root/src/connman.h
AgeCommit message (Collapse)AuthorFilesLines
2014-10-31Tizen: Export network proxy API for telephony pluginArron Wang1-0/+4
Telephony plug-in requires manual PROXY setting function Telephony stack provides proxy address (3G profile). Change-Id: Iaa02f59465a687961c303667ee09051b419507d2
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-8/+46
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-84/+185
2013-06-10session: Use service iterator instead of match/creation callbacksDaniel Wagner1-11/+4
When a new session is created we need to get the initial list of services which match the session AllowedBearers criteria. As soon the session is running add or removed services are tracked via the notifier interface. We concluded that exposing all the services is not really necessary and therefore we are using currently two callbacks to get the initial list. That exposes implementation details from session to service, that is GSequence. We also need to expose the type 'struct service_entry'. Instead doing so we are using an iterator and keep all the implementation details in session.c.
2013-05-31session: Add session argument to create_service_entry_cbDaniel Wagner1-0/+1
Remember which session this struct service_entry belongs to when removing the entries again.
2013-05-20clock: Export information about time update methodPatrik Flykt1-0/+7
2013-04-05inet: Get an address from a given interface and address familyJukka Rissanen1-0/+1
The returned address is used when we need to have a listening socket tied to specific interface and address, and do not want to bind to any address.
2013-03-25firewall: Add firewall APIDaniel Wagner1-0/+10
The main idea behind this API is to collect several iptables rules together and enable or disable in one go. For this a context is created via __connman_firewall_create() and the rules added to this context via __connman_firewall_add_rule(). In order to append all rules __connman_firewall_enable() has to be called. To remove all rules associated with one context __connman_firewall_disable() has to be used. If something goes awry the code tries to get back to the initial state.
2013-03-25firewall: Add firewall fileDaniel Wagner1-0/+4
2013-03-25iptables: Add chain iteratorDaniel Wagner1-0/+6
We will implement the ConnMan iptables specific part in a different file and leave the iptables.c file as small as possible. Therefore, we move the flushing part out, but we need a way to find our chains on bootup (left over from a crash). Let's add an interater which walks over all chains which allows a higher level to find the chains it is looking for (e.g. connman-INPUT)
2013-03-25iptables: Add __connman_iptables_insert()Daniel Wagner1-0/+3
This was wrongly removed with commit 161efbae
2013-03-18iptables: Add __connman_iptables_dump()Daniel Wagner1-0/+1
In order to allow our test tool iptables-tests to dump a table we need an dump function. The only user will be this tool. That allows the linker to remove this code, so no additional code size.
2013-03-08provider: Change the name of provider remove functionJukka Rissanen1-1/+1
Following patch will introduce provider remove function that can be used from vpn plugin so rename the current removal function to reflect better its usage.
2013-02-22service: Refactor ipconfig setterJukka Rissanen1-0/+3
Done so that the function can be called also from config.c The idea is that if ethernet .config file is removed, we are able to clear the interface properly.
2013-02-22ipconfig: Add function to set the IPv6 privacy optionJukka Rissanen1-0/+2
2013-02-22service: Add function to set timeserversJukka Rissanen1-0/+2
2013-02-22service: Add function to manipulate DNS search domainsJukka Rissanen1-0/+2
2013-02-22service: Add function to manipulate ignore flagJukka Rissanen1-0/+2
2013-02-19storage: Add function to load provider configuration fileJukka Rissanen1-0/+1
2013-02-12iptables: Remove unused __connman_iptables_command()Daniel Wagner1-2/+0
2013-02-12iptables: Add split out iptables commandsDaniel Wagner1-0/+16
Instead of having a pure string based API, we add two new main functions, __connman_iptables_append() and __connman_iptables_remove(). The missing commands will be added later. To simplify the whole code, the __connman_iptables_command() code is refactored into smaller pieces: parse_rule_spec() calls a few functions such as clear_tables_flags() and parse_xt_modules() which should make the reading of the main parser loop simpler. Also added a few comments on the parser which is really tricky.
2013-01-04storage: Remove storage migration codePatrik Flykt1-1/+0
2012-11-23inotify: Move inotify code into its own fileDaniel Wagner1-0/+5
The inotify code will be used by the core (config.c) and the session policy plugin. We introduce a new API for file modifcation notifcation. We move the factored out code part from the last patch into a new file and also change the inotify code so that it allows to monitor not only STORAGEDIR. When registering a new observer, the callee has to tell which directory should be watched. inotify.c will group the observers together.
2012-11-23storage: Add function to remove provider filesJukka Rissanen1-0/+1
2012-11-23agent: Split agent code into generic and service specific partsJukka Rissanen1-9/+0
2012-11-23provider: Provider disconnect function made available to pluginJukka Rissanen1-1/+0
The VPN needs to be able to call the provider disconnect.
2012-11-23log: Give program name and version in log initJukka Rissanen1-1/+2
This allows the correct output when the log functions are used from separate vpn daemon.
2012-11-23ipconfig: Move IP address API into separate ipaddress.c fileJukka Rissanen1-1/+1
Done so that connman_ipaddress_* functions can be used from separate vpn daemon.
2012-11-22core: Use interface index instead of interface namePatrik Flykt1-7/+7
Service and network code use only interface indexes. Convert the rest of the code using interface names to use interface indexes instead. The files affected are: include/resolver.h src/connman.h src/dnsproxy.c src/resolver.c src/rtnl.c src/service.c src/tethering.c As the network and service code used interface indexes, the interface name had to be looked up via a SIOCGIFNAME ioctl when needed. If a service was removed due to the interface and network being taken down, the lookup wouldn't work. This caused DNS servers to be left behind with broken sockets since removing the DNS servers was done using the interface name.
2012-11-05storage: Add void if function does not have any argumentsDaniel Wagner1-3/+3
2012-11-02ipconfig: Add function to clear ipaddress informationJukka Rissanen1-0/+1
2012-09-28log: Disable stack trace from command linePatrik Flykt1-2/+2
Add a '--nobacktrace' command line switch to let the system handle stack traces. The default is to let ConnMan handle them as before
2012-09-27session: Move struct connman_session to session.hDaniel Wagner1-1/+2
2012-09-04agent: Implement Agent API Cancel() method callPatrik Flykt1-0/+2
Clean up the queue and cancel the current message at the agent, if any. Split out the actual cancel message sending as it will be used separately from the rest of the code.
2012-08-15service: Remember provider pending dbus messageJukka Rissanen1-0/+3
The provider connect dbus reply message is stored in service until provider is connected.
2012-08-15service: Allow setting path when sending pending dbus replyJukka Rissanen1-1/+2
2012-08-15inet: Add function to return route to a given hostJukka Rissanen1-0/+4
The netlink message handling is modified from iproute.c in iproute2 package.
2012-08-14service: Allow plugins to lookup services by networksDaniel Wagner1-1/+0
2012-08-14service: Allow plugins access to connman_service_create_ip4/6configDaniel Wagner1-4/+1
2012-08-08ipconfig: Add function to check if the ipconfig is OFFJukka Rissanen1-0/+1
2012-08-03device: Remove unused phyindexDaniel Wagner1-4/+0
2012-07-09inet: Return all running interfacesJukka Rissanen1-0/+1
Add a function that returns all (except loopback) interfaces that are up and running (have IP address). This information is used in following patch to clean up the routes that are left hanging around.
2012-07-05technology: Notify the regulatory domain setting by deviceTomasz Bursztyka1-0/+2
2012-06-18service: Connecting hidden network waits until connectedJukka Rissanen1-1/+2
If the user is connecting to hidden network, then we delay the return of the reply to caller until the real service has connected. This way the user connect to hidden and non-hidden networks works the same way from caller point of view.
2012-06-18service: Add support functions for pending repliesJukka Rissanen1-0/+4
2012-06-18service: Split reply_pending function to two partsJukka Rissanen1-0/+1
Split reply_pending() into two parts so that a D-Bus reply can be sent to the client waiting for a reply.
2012-06-15service: Add a getter for the passphraseTomasz Bursztyka1-0/+1
2012-06-11config: Check if we need to rescan the config file for any changesJukka Rissanen1-1/+1
2012-06-11config: Use config file name and entry when deciding removalJukka Rissanen1-1/+1
We need to know the config file and entry name in next patch in order to know if the service entry was removed from config file.
2012-06-11service: Support function that saves serviceJukka Rissanen1-0/+1