Changeset 1020
- Timestamp:
- 01/01/10 13:51:05 (13 years ago)
- Location:
- branches/monitor-improvement
- Files:
-
- 15 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/monitor-improvement/CMakeLists.txt
r959 r1020 247 247 248 248 # some optimisations 249 add_definitions ("-O3 -Winline -Wall -Wno-implicit-function-declaration -Wno-parentheses -finline-functions -fomit-frame-pointer") 249 if (OSCamOperatingSystem MATCHES "Mac OS X") 250 add_definitions ("-O2 -Winline -Wall -Wno-implicit-function-declaration -Wno-parentheses -finline-functions -fomit-frame-pointer -m32") 251 else (OSCamOperatingSystem MATCHES "Mac OS X") 252 add_definitions ("-O2 -Winline -Wall -Wno-implicit-function-declaration -Wno-parentheses -finline-functions -fomit-frame-pointer") 253 endif (OSCamOperatingSystem MATCHES "Mac OS X") 250 254 251 255 # we don't want the '-rdynamic' in the link command … … 253 257 254 258 # we want to strip 259 if (OSCamOperatingSystem MATCHES "Mac OS X") 260 set (CMAKE_EXE_LINKER_FLAGS "-s -m32") 261 else (OSCamOperatingSystem MATCHES "Mac OS X") 255 262 set (CMAKE_EXE_LINKER_FLAGS "-s") 256 263 endif (OSCamOperatingSystem MATCHES "Mac OS X") 257 264 #----------------------- installation ----------------------------- 258 265 -
branches/monitor-improvement/Distribution/doc/example/oscam.conf
r206 r1020 45 45 [serial] 46 46 device = user2@/dev/ttyS0?delay=1&timeout=300 47 48 [dvbapi] 49 enabled = 1 50 user = user1 51 demux = /dev/dvb/adapter0/demux0 52 ca = /dev/dvb/adapter0/ca1 53 socket = /tmp/camd.socket -
branches/monitor-improvement/Distribution/doc/man/oscam.1
r885 r1020 35 35 \(bu 36 36 CCcam with AU support, cascading/remote server ECM support 37 .TP 3n 38 \(bu 39 DVB API support, localhost only 37 40 .TP 3n 38 41 OSCam works on the following plattforms: -
branches/monitor-improvement/Distribution/doc/man/oscam.conf.5
r885 r1020 330 330 example: locals = 01001234,02005678 331 331 .RE 332 .SS "The [dvbapi] section" 333 .PP 334 \fBenabled\fP = \fB0\fP|\fB1\fP 335 .RS 3n 336 1 = DVB API enabled, default:0 337 .RE 338 .PP 339 \fBuser\fP = \fBusername\fP 340 .RS 3n 341 user name for DVB API client, default:anonymous 342 .RE 343 .PP 344 \fBdemux\fP = \fBdevice\fP 345 .RS 3n 346 path to demux device, default:none 347 348 example: demux = /dev/dvb/adapter0/demux0 349 .RE 350 .PP 351 \fBca\fP = \fBdevice\fP 352 .RS 3n 353 path to CA device, default:none 354 355 example: ca = /dev/dvb/adapter0/ca0 356 .RE 357 .PP 358 \fBsocket\fP = \fBfilename\fP 359 .RS 3n 360 camd socket file, default:none 361 362 example: socket = /tmp/camd.socket 363 .RE 332 364 .SS "The [anticasc] section" 333 365 .PP 334 366 \fBenabled\fP = \fB0\fP|\fB1\fP 335 367 .RS 3n 336 1 =enabled anti-cascading, default:0368 1 = enabled anti-cascading, default:0 337 369 .RE 338 370 .PP -
branches/monitor-improvement/Distribution/doc/txt/oscam.conf.txt
r885 r1020 239 239 example: locals = 01001234,02005678 240 240 241 The [dvbapi] section 242 enabled = 0|1 243 1 = DVB API enabled, default:0 244 245 user = username 246 user name for DVB API client, default:anonymous 247 248 demux = device 249 path to demux device, default:none 250 251 example: demux = /dev/dvb/adapter0/demux0 252 253 ca = device 254 path to CA device, default:none 255 256 example: ca = /dev/dvb/adapter0/ca0 257 258 socket = filename 259 camd socket file, default:none 260 261 example: socket = /tmp/camd.socket 262 241 263 The [anticasc] section 242 264 enabled = 0|1 243 1 =enabled anti-cascading, default:0265 1 = enabled anti-cascading, default:0 244 266 245 267 numusers = quantity -
branches/monitor-improvement/Distribution/doc/txt/oscam.txt
r885 r1020 32 32 33 33 CCcam with AU support, cascading/remote server ECM support 34 35 DVB API support, localhost only 34 36 35 37 OSCam works on the following plattforms: -
branches/monitor-improvement/Maketype
r928 r1020 50 50 $(LIBFILE1)(module-newcamd.o) \ 51 51 $(LIBFILE1)(module-cccam.o) \ 52 $(LIBFILE1)(module-dvbapi.o) \ 52 53 $(LIBFILE1)(oscam-nano.o) \ 53 54 $(LIBFILE1)(oscam-chk.o) \ -
branches/monitor-improvement/README
r107 r1020 22 22 svn co http://streamboard.gmc.to/svn/oscam/trunk oscam 23 23 cd oscam 24 25 Compile options 26 --------------- 27 28 Enable features: 29 30 CS_ANTICASC - enable anti-cascading 31 CS_LOGHISTORY - enable log history 32 HAVE_DVBAPI_3 - enable DVB API 3 support 33 24 34 25 35 Build with CMake (new solution for building) -
branches/monitor-improvement/cscrypt/CMakeLists.txt
r811 r1020 14 14 endif (NOT HAVE_SHA) 15 15 16 add_definitions ("-O3 -Winline -Werror -finline-functions -fomit-frame-pointer -s") 16 if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 17 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32") 18 else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 19 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s") 20 endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 17 21 18 22 set (lib_name "cscrypt") -
branches/monitor-improvement/csctapi/CMakeLists.txt
r122 r1020 4 4 file (GLOB csctapi_hdrs "*.h") 5 5 6 add_definitions ("-O3 -Winline -Werror -finline-functions -fomit-frame-pointer -s") 6 if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 7 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s -m32") 8 else (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 9 add_definitions ("-O2 -Winline -Werror -finline-functions -fomit-frame-pointer -s") 10 endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") 7 11 8 12 set (lib_name "csctapi") -
branches/monitor-improvement/globals.h
r1019 r1020 144 144 #endif 145 145 146 #define CS_MAX_MOD 8146 #define CS_MAX_MOD 12 147 147 #define MOD_CONN_TCP 1 148 148 #define MOD_CONN_UDP 2 … … 573 573 unsigned long locals[CS_MAXLOCALS]; 574 574 //struct s_irdeto_quess *itab[0xff]; 575 #ifdef HAVE_DVBAPI_3 576 int dvbapi_enabled; 577 int dvbapi_au; 578 char dvbapi_usr[64]; 579 char dvbapi_demux[128]; 580 char dvbapi_ca[128]; 581 char dvbapi_socket[128]; 582 #endif 575 583 #ifdef CS_ANTICASC 576 584 char ac_enabled; … … 730 738 extern void cs_reinit_clients(void); 731 739 extern void cs_resolve(void); 740 extern void chk_dcw(int fd); 732 741 733 742 #ifdef CS_ANTICASC … … 870 879 extern void module_gbox(struct s_module *); 871 880 extern void module_cccam(struct s_module *); 881 #ifdef HAVE_DVBAPI_3 882 extern void module_dvbapi(struct s_module *); 883 #endif 872 884 extern struct timeval *chk_pending(struct timeb tp_ctimeout); 873 885 -
branches/monitor-improvement/oscam-config.c
r1019 r1020 30 30 TAG_CS378X, // camd 3.5x TCP 31 31 TAG_GBOX, // gbox 32 TAG_CCCAM // cccam 32 TAG_CCCAM, // cccam 33 TAG_DVBAPI 33 34 #ifdef CS_ANTICASC 34 35 ,TAG_ANTICASC // anti-cascading … … 37 38 38 39 static char *cctag[]={"global", "monitor", "camd33", "camd35", 39 "newcamd", "radegast", "serial", "cs357x", "cs378x", "gbox", "cccam", 40 "newcamd", "radegast", "serial", "cs357x", "cs378x", "gbox", "cccam", "dvbapi", 40 41 #ifdef CS_ANTICASC 41 42 "anticasc", … … 538 539 } 539 540 541 static void chk_t_dvbapi(char *token, char *value) 542 { 543 #ifndef HAVE_DVBAPI_3 544 fprintf(stderr, "Warning: OSCam compiled without DVB API support.\n"); 545 #else 546 if (!strcmp(token, "enabled")) { cfg->dvbapi_enabled=atoi(value); return; } 547 if (!strcmp(token, "au")) { cfg->dvbapi_au=atoi(value); return; } 548 if (!strcmp(token, "demux")) { strncpy(cfg->dvbapi_demux, value, sizeof(cfg->dvbapi_demux)-1); return; } 549 if (!strcmp(token, "ca")) { strncpy(cfg->dvbapi_ca, value, sizeof(cfg->dvbapi_ca)-1); return; } 550 if (!strcmp(token, "socket")) { strncpy(cfg->dvbapi_socket, value, sizeof(cfg->dvbapi_socket)-1); return; } 551 if (!strcmp(token, "user")) { strncpy(cfg->dvbapi_usr, value, sizeof(cfg->dvbapi_usr)-1); return; } 552 553 if (token[0] != '#') 554 fprintf(stderr, "Warning: keyword '%s' in dvbapi section not recognized\n",token); 555 #endif 556 } 557 540 558 static void chk_token(char *token, char *value, int tag) 541 559 { … … 553 571 case TAG_GBOX : chk_t_gbox(token, value); break; 554 572 case TAG_CCCAM : chk_t_cccam(token, value); break; 573 case TAG_DVBAPI : chk_t_dvbapi(token, value); break; 555 574 #ifdef CS_ANTICASC 556 575 case TAG_ANTICASC: chk_t_ac(token, value); break; -
branches/monitor-improvement/oscam-reader.c
r800 r1020 521 521 { 522 522 client[cs_idx].ip=cs_inet_addr("127.0.0.1"); 523 if (reader_device_init(reader[ridx].device, reader[ridx].typ))524 cs_exit(1);523 while (reader_device_init(reader[ridx].device, reader[ridx].typ)==2) 524 sleep(60); // wait 60 secs and try again 525 525 } 526 526 -
branches/monitor-improvement/oscam.c
r980 r1020 1594 1594 } 1595 1595 1596 staticvoid chk_dcw(int fd)1596 void chk_dcw(int fd) 1597 1597 { 1598 1598 ECM_REQUEST *er, *ert; … … 2179 2179 module_radegast, 2180 2180 module_oscam_ser, 2181 #ifdef HAVE_DVBAPI_3 2182 module_dvbapi, 2183 #endif 2181 2184 0 2182 2185 }; -
branches/monitor-improvement/reader-pcsc.c
r885 r1020 85 85 DWORD dwSendLength, dwRecvLength; 86 86 87 dwSendLength = l; 87 88 88 dwRecvLength = CTA_RES_LEN; 89 cs_debug("sending %d bytes to PCSC", dwSendLength); 90 91 if(pcsc_reader->dwActiveProtocol == SCARD_PROTOCOL_T0) 92 rv = SCardTransmit(pcsc_reader->hCard, SCARD_PCI_T0, buf, dwSendLength, &pioRecvPci, cta_res, &dwRecvLength); 93 else if(pcsc_reader->dwActiveProtocol == SCARD_PROTOCOL_T1) 94 rv = SCardTransmit(pcsc_reader->hCard, SCARD_PCI_T1, buf, dwSendLength, &pioRecvPci, cta_res, &dwRecvLength); 95 else { 96 cs_debug("PCSC invalid protocol (T=%d)", ( pcsc_reader->dwActiveProtocol == SCARD_PROTOCOL_T0 ? 0 : 1)); 97 return ERR_INVALID; 98 } 89 90 if(pcsc_reader->dwActiveProtocol == SCARD_PROTOCOL_T0) { 91 // explanantion as to why we do the test on buf[4] : 92 // Issuing a command without exchanging data : 93 //To issue a command to the card that does not involve the exchange of data (either sent or received), the send and receive buffers must be formatted as follows. 94 //The pbSendBuffer buffer must contain the CLA, INS, P1, and P2 values for the T=0 operation. The P3 value is not sent. (This is to differentiate the header from the case where 256 bytes are expected to be returned.) 95 //The cbSendLength parameter must be set to four, the size of the T=0 header information (CLA, INS, P1, and P2). 96 //The pbRecvBuffer will receive the SW1 and SW2 status codes from the operation. 97 //The pcbRecvLength should be at least two and will be set to two upon return. 98 if(buf[4]) 99 dwSendLength = l; 100 else 101 dwSendLength = l-1; 102 cs_debug("sending %d bytes to PCSC", dwSendLength); 103 rv = SCardTransmit(pcsc_reader->hCard, SCARD_PCI_T0, buf, dwSendLength, &pioRecvPci, cta_res, &dwRecvLength); 104 } 105 else if(pcsc_reader->dwActiveProtocol == SCARD_PROTOCOL_T1) { 106 dwSendLength = l; 107 cs_debug("sending %d bytes to PCSC", dwSendLength); 108 rv = SCardTransmit(pcsc_reader->hCard, SCARD_PCI_T1, buf, dwSendLength, &pioRecvPci, cta_res, &dwRecvLength); 109 } 110 else { 111 cs_debug("PCSC invalid protocol (T=%d)", pcsc_reader->dwActiveProtocol); 112 return ERR_INVALID; 113 } 99 114 100 115 *cta_lr=dwRecvLength;
Note:
See TracChangeset
for help on using the changeset viewer.