aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/db.h
AgeCommit message (Collapse)AuthorFilesLines
2010-06-14db: Change naming convention for auth info functionsSylvain Munaut1-7/+7
- exported function have a 'db_' prefix - use 'sync' vs 'set' - use 'for' vs 'by' Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14db: Rename AuthTuples to AuthLastTuplesSylvain Munaut1-4/+4
Ultimately, we'll need to store both the last used tuple by a subscriber and a list of known tuples (for unknown Ki). What's currently implemented for AuthTuples is the former behavior, so reflect that. The second use case will be added as a separate table with separate accessors later on. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-05-13[GPRS] NS: Start to use rate_ctr_group code from libosmocoreHarald Welte1-0/+3
Every NS-VC now has a set of counters for incoming and outgoing number of packets and bytes. We also split the VTY part of the gprs_ns.c implementation into gprs_ns_vty.c to make sure the protocol can actually be used without the VTY code being present.
2010-03-25db: Fix a bug where no pending SMS were foundHolger Hans Peter Freyther1-2/+2
The "sms send pending" VTY command did not work due a mismatch of types. We are specifying a unsigned long long in the query and provided DBI with a signed integer type. The result was a failure do find any information. Change the API to operate on unsigned long long that is matching the id of the SMS and the Subscriber and the mismatch with the query string is gone and pending SMS are sent.
2010-01-03db: Add methods to set auth{info,tuple} for a subscriberSylvain Munaut1-0/+4
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03db: Add declaration for get_auth{info,tuple_for_subscriberSylvain Munaut1-0/+6
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-24db: Fix compile warning, declare db_sms_get_unsent_by_subscrSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22statistics: Introduce 'struct counter' instead of using unsigned longHarald Welte1-0/+4
This has the advantage that counters can be added all over the code very easily, while having only one routine that stores all of the current counter values to the database. The counters are synced every 60 seconds, providing relatively fine grained statistics about the network usage as time passes by.
2009-08-16store all APDU's received from the MS in the databaseHarald Welte (local)1-0/+5
This helps us to analyze data such as RRLP location information for later analysis.
2009-08-12fix problems with tmsi uniqueness in the subscriber tableJan Luebbe1-0/+1
2009-08-12token support in the DBJan Luebbe1-0/+1
2009-08-10misc: Add prototypes to header files, include more header filesHolger Hans Peter Freyther1-0/+1
Fix various warnings about implicit declarations of functions.
2009-08-09new db_sms_get_unsent_for_subscr() functionHarald Welte1-0/+1
The function retrieves the oldest not-yet-sent SM for the given subscriber
2009-07-23make sure subscr->net is always setHarald Welte1-3/+6
since a subscriber is an element of the gsm_network, we have to ensure subscr->net is always set correctly. We do this by using gsm_network as an argument to all functions that resolve or create a subscriber.
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+44