Rework of ratelimiter to wipeout time()
=======================================

- Ratelimiter is now more finegrained (before seconds precise, now milliseconds precise)
- Ratelimittime is now set in milliseconds instead of seconds
- Srvidholdtime is now set in milliseconds instead of seconds
- Values < 60  are assumed seconds and will be recalculated to represent milliseconds. E.G. 9 -> 9000 ms
- Ratelimiter logs are now masked with loglevel D_CLIENT (-d8) -> easier to read as D_TRACE give too much output 
*** BEFORE UPDATING OSCAM CHECK AND TAKE NOTICE OF YOUR CURRENT RATELIMIT SETTINGS! ***
*** "ratelimitseconds" and "srvidholdseconds" are no longer in use! *** 


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9078 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Cosmetics missed a seconds -> millisecond


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9079 4b0bc96b-bc66-0410-9d44-ebda105a78c1
oscam-config: There is a function to compare timeb structs, let's use it!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9080 4b0bc96b-bc66-0410-9d44-ebda105a78c1
oscam-emm: There is a function to compare timeb structs, let's use it!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9081 4b0bc96b-bc66-0410-9d44-ebda105a78c1
oscam: There is a function to compare timeb structs, let's use it!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9082 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- oscam-net: replaced time() with cs_ftime()
- oscam-work.c: replace time() with cs_ftime() (some spots to be done later on!)



git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9083 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- oscam-stat: rework to replace time() with cs_ftime()
- module-webif: rework to replace time() with cs_ftime()


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9084 4b0bc96b-bc66-0410-9d44-ebda105a78c1
io_serial: There is a function to compare and add ms to timeb structs, let's use it!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9085 4b0bc96b-bc66-0410-9d44-ebda105a78c1
oscam-failban: rework to replace time() with cs_ftime()
module-webif: rework to replace time() with cs_ftime()

- Marked spots where walltime is needed, as long as cs_ftime() is still based on gettimeofday() it will still show walltime!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9086 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- module-dvbapi: rework to replace time() with cs_ftime()
- reader-common: rework to replace time() with cs_ftime() *** more fix needed ***
- reader-common: first give back ecm answer then log & just time the do_ecm!


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9087 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Changed the autospeed -1 by dreambox

For dreambox now It will be in autospeed if autospeed = 1 (or ommited in configs default value)
In web if autospeed box checked.
Addapted the comments.
The 2700 3150 and 8300 remains as there is no other way to differ the stb.
To set a manual clockspeed just uncheck the autospeed box first. or set the autospeed = 0 in configs

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9088 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix for broken network clients in r9083. \nTimeout is in seconds but polltime is in milliseconds, was incorrect even before.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9089 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Another try to sort the second vs millisecond mess

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9090 4b0bc96b-bc66-0410-9d44-ebda105a78c1
More accurate sleepus/sleepms due to handling interrupted sleep

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9091 4b0bc96b-bc66-0410-9d44-ebda105a78c1
There is a function for comparing timeb structs, use it

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9092 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Applied blueven cache HT patch.
Details on forum: http://www.streamboard.tv/wbb2/thread.php?threadid=39799

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9093 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix problem in cleanup hitcache for detect wait_time.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9094 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvbapi: add adapter index for BOXTYPE_PC socket messages

When CA_SET_PID was received on single socket a client
was unable to distinguish between adapters, and this
lead to problems when decoding eg. same PID numbers on
different adapters.
With this additional information a client can use
a single socket connection for multiple adapters.

This small protocol change was consulted with client
developers.


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9095 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix FreeBSD IPv6 support.

Patch by bunbun. Fixes #3538.


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9096 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Try-fix build warning since svn 9093 with some toolchains.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@9097 4b0bc96b-bc66-0410-9d44-ebda105a78c1