Load Balancing improvements:
- add new parameter "lb_force_fallback" (default=0)
  Normally, if a reader has fallback and fallback_percaid parameters setted, LoadBalancing chooses it as fallback or as not-fallback reader, after evaluating its stats.
  Setting lb_force_fallback=1 on same reader, with one of above parameters, we force LB to set reader ALWAYS as fallaback, and without consider its stats (ignore fails).
  This could be usefull for secure fallback readers, that we want use as latest secure chance of decoding. It is same behaviour with LB off (mode 0).

- Fix for nfb_readers parameter: now, LB cannot selects more fallback readers than nfb_readers value.
  The fallbacks are choosen with this priority:
  1. readers with fallbacks paramters (fallback or fallback_percaid) and lb_force_fallback=1
  2. readers with fallbacks paramters (fallback or fallback_percaid) and lb_force_fallback=0, if not already used as best readers
  3. readers with best lb_value, if not already used as best readers

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9725 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Anticascading over Sid Count (ACoSC) by blacky

global:
[anticasc]
acosc_enabled                 = 0/1
acosc_max_active_sids         = 1-xx  0=unlimited
acosc_zap_limit               = 1-xx 0=unlimited
acosc_penalty                 =  0/1/2/3
acosc_penalty_duration        = sec
acosc_delay                   = msec 

user:
acosc_max_active_sids         = 1-xx  0=unlimited ; -1=global value
acosc_zap_limit               = 1-xx  0=unlimited ; -1=global value
acosc_penalty                 =  0/1/2/3 ; -1= global value
acosc_penalty_duration        = sec ; -1 = global value
acosc_delay                   = msec ; -1 = global value


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9726 4b0bc96b-bc66-0410-9d44-ebda105a78c1
revert last unclean commit (sorry)

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9727 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Anticascading over Sid Count (ACoSC) by blacky fixed by mechi

http://www.streamboard.tv/wbb2/thread.php?postid=511761#post511761

global:
[anticasc]
acosc_enabled                 = 0/1
acosc_max_active_sids         = 1-xx  0=unlimited
acosc_zap_limit               = 1-xx 0=unlimited
acosc_penalty                 =  0/1/2/3
acosc_penalty_duration        = sec
acosc_delay                   = msec 

user:
acosc_max_active_sids         = 1-xx  0=unlimited ; -1=global value
acosc_zap_limit               = 1-xx  0=unlimited ; -1=global value
acosc_penalty                 =  0/1/2/3 ; -1= global value
acosc_penalty_duration        = sec ; -1 = global value
acosc_delay                   = msec ; -1 = global value


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9728 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Nagra no entitlements fix for last day of validity

Tnx Cyres for providing patch and FilipeAmadeuO for testing!


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9729 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Fix for compiler warnings introduced by commit 9728


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9730 4b0bc96b-bc66-0410-9d44-ebda105a78c1
While investigating Puya's commits I stumbled over 9643.
Instead of removing part of the buggy code better recode it so it works like intended!



git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9731 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- tryfix broken nagra cardinit 


git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9732 4b0bc96b-bc66-0410-9d44-ebda105a78c1
#3744 Fix a SEGFAULT in module-gbox.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9733 4b0bc96b-bc66-0410-9d44-ebda105a78c1
in tommyhash.c , Boolean value assigned to pointer cause errors.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9734 4b0bc96b-bc66-0410-9d44-ebda105a78c1
 Array 'buffer[258]' accessed at index 258, which is out of bounds

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9735 4b0bc96b-bc66-0410-9d44-ebda105a78c1
fix compile

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9736 4b0bc96b-bc66-0410-9d44-ebda105a78c1
miss a *

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9737 4b0bc96b-bc66-0410-9d44-ebda105a78c1
prevent problems on build
set a moderate default setting

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9738 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Added new parameter 'lb_force_fallback' to documentation.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9739 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Added 'anti-cascading over SID count' feature to documentation.

git-svn-id: http://www.streamboard.tv/svn/oscam/trunk@9740 4b0bc96b-bc66-0410-9d44-ebda105a78c1
freebsd