serial: Fix timeout issues.

Patch by manio posted in ticket #3260.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8571 4b0bc96b-bc66-0410-9d44-ebda105a78c1
serial: Add support for network socket connection.

This patch adds support for serial port exposed via a network socket.
This way oscam can connect directly to TCP socket, eg to a ser2net,
netcat, socat or even hardware devices like Moxa.

Patch from Mariusz Bialonczyk <manio@skyboo.net> posted in ticket #3260.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8572 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Tryfix Vu+ Solo2 better ecm response times. Use reader->mhz > 2000 value to enable
Tnx to Telping for this find, testing and reporting.


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8573 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix IPv6 binding on local addresses.

Patch by manio posted in ticket #3206.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8574 4b0bc96b-bc66-0410-9d44-ebda105a78c1
webif/newcamd: Fix saving of DES keys.

Without this patch only the first char of the DES key was saved.

Patch by manio posted in ticket #3261.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8575 4b0bc96b-bc66-0410-9d44-ebda105a78c1
WebIf: Fix missing file closes when reading disk template files which are not valid for the compiled binary.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8576 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Moved chk_valid_btun() from module-dvbapi.c to oscam-chk.c

ECM requests are now passed if a betatunnel is specified but the original caid is missing in the corresponding user services.
Using cccam reshare_mode = 3 we aren't forced anymore to specify the original caid which had the side effect that an additional virtual SC was added to the share-list.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8577 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Tryfix2 VU+ boxes slow responses on internal readers for T0/T1 protocol

- T14 protocol was broken and now is handled like before and communicated again with reader driver


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8578 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvb-mca: Skip empty CAIDs.

Patch by dirtyharry123 posted in ticket #3267 by BigGyros.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8579 4b0bc96b-bc66-0410-9d44-ebda105a78c1
config: Invoke mktemp(1) without parameters.

This increases portability because some mktemp implementations do
not support -t flag. Calling mktemp without parameters creates temp
files in $TMPDIR or /tmp which was the reason -t was used in the
first place.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8580 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Revert "config: Invoke mktemp(1) without parameters."

This reverts commit r8580.

The commit brakes more than it fixes, its not worth it.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8581 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Removed reader emmreassembly setting.
EMM reassembling (Cryptoworks/Viaccess) is switched independently for each user (emmreassembly in oscam.user).

Possible settings:
0 - disabled
1 - enabled for DVBAPI (default)
2 - enabled

Detecting already assembled EMM-S (cryptoworks) by user vld75.
Webint integration by user Deas. 

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8582 4b0bc96b-bc66-0410-9d44-ebda105a78c1
cccam: Add missing unlock on error path.

Patch by pointer2 posted in streamboard forum.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8583 4b0bc96b-bc66-0410-9d44-ebda105a78c1
emm: Add missing variable initialization

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8584 4b0bc96b-bc66-0410-9d44-ebda105a78c1
emm: Do the reassembly after EMM filters.

Before EMM filters the reassemblation won't work because the
client can send any EMMs not only for the card in aureader.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8585 4b0bc96b-bc66-0410-9d44-ebda105a78c1
emm: Change user's emmreassembly setting to default to 2 (ON).

Let oscam do the reassembly by default, that way even the simplest
clients would be able to update cards just by sending the EMMs to
oscam for processing.

If a client does its own reassemblation (mgcamd, acamd) set emmreassembly=0
in your oscam.user file for the client.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8586 4b0bc96b-bc66-0410-9d44-ebda105a78c1
webif: Change the default text for emmreassembly

Forgot to fix this in r8586.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8587 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvbapi: Small code cleanup.

Put ; on the next line to make it clear that the loop is used only for
counting and do not have body.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8588 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Free bytes allocated for processUsername on exit.

This makes valgrind a little bit happier.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8589 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Added documentation for serial device setup.

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