summaryrefslogtreecommitdiff
path: root/src/counter.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-1/+4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-7/+7
2012-07-15counter: Avoid shadowing connection variableMarcel Holtmann1-1/+1
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2011-06-16element: Remove element.cDaniel Wagner1-0/+2
2010-10-08Release counter and session watches whe unregisteringSamuel Ortiz1-3/+6
Releasing the watches from the hash table freeing routines lead to double freeing the interface data watch pointer in case the owner would disappear before unregistering.
2010-09-21Handle several counters simultaniouslyDaniel Wagner1-78/+20
The current implementation does not handle multiple counters at the same time correctly. Only the first counter gets the updates, all others just an empty dictionary. For each Counter object the counters have to be maintained separately.
2010-08-18Add support for roaming/home network statisticDaniel Wagner1-80/+13
Currently connman only has one set of counters for collecting statistics on online time and the amount of transfered bytes. For 3G connections we should destinguish between home network and roaming. This patch introduces two sets of counter values for home network and roaming network. Changing from Home to Roaming counters relies on connman_network_set_roaming being called. Currently, this is only done in the ofono plugin. Getting Wifi 'Hot-Spot Provider' Roaming (e.g. T-Mobile Germany to T-Mobile USA) is not yet working.
2010-07-12Add empty dictionary for roaming counters for nowMarcel Holtmann1-0/+6
2010-07-08Add additionals statistics countersDaniel Wagner1-2/+33
Adding rx_packets, tx_packets, rx_errors, tx_errors, rx_dropped and tx_dropped counters.
2010-07-07Initialize offset countersDaniel Wagner1-7/+38
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.
2010-06-30Update service statisticsDaniel Wagner1-43/+45
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.
2010-06-30Centralize rntl update timersDaniel Wagner1-19/+4
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.
2010-01-05Allow counters with zero intervalMarcel Holtmann1-4/+2
2010-01-05Fix typo with RX versus TX statsMarcel Holtmann1-1/+1
2010-01-05Usage statistics structure directlyMarcel Holtmann1-7/+6
2010-01-05Include interface name in statistics usageMarcel Holtmann1-14/+50
2010-01-05Check interval parameters and request first updateMarcel Holtmann1-0/+5
2010-01-05Only send updates if byte count actually changedMarcel Holtmann1-0/+4
2010-01-05Add support for exporting basic interface statisticsMarcel Holtmann1-9/+46
2010-01-04Add framework for counter callbacksMarcel Holtmann1-0/+183