Changeset 5194 for trunk/globals.h
- Timestamp:
- 05/07/11 19:58:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals.h
r5192 r5194 480 480 struct s_module 481 481 { 482 int 32_t active;483 int 32_t multi;484 int 32_t type;485 int 32_t watchdog;482 int8_t active; 483 int8_t multi; 484 int8_t type; 485 int8_t watchdog; 486 486 char desc[16]; 487 487 char *logtxt; … … 492 492 void (*send_dcw)(struct s_client*, struct ecm_request_t *); 493 493 void (*cleanup)(struct s_client*); 494 int 32_t c_multi;494 int8_t c_multi; 495 495 int32_t (*c_recv_chk)(struct s_client*, uchar *, int32_t *, uchar *, int32_t); 496 496 int32_t (*c_init)(struct s_client*); … … 514 514 struct s_cardreader 515 515 { 516 int 32_t active;516 int8_t active; 517 517 char desc[16]; 518 518 int32_t (*reader_init)(struct s_reader*); … … 528 528 int32_t typ; //fixme: workaround, remove when all old code is converted 529 529 530 int 32_t max_clock_speed; // 1 for reader->typ > R_MOUSE531 int 32_t need_inverse; //0 = reader does inversing; 1 = inversing done by oscam530 int8_t max_clock_speed; // 1 for reader->typ > R_MOUSE 531 int8_t need_inverse; //0 = reader does inversing; 1 = inversing done by oscam 532 532 //io_serial config 533 int 32_t flush;534 int 32_t read_written; // 1 = written bytes has to read from device533 int8_t flush; 534 int8_t read_written; // 1 = written bytes has to read from device 535 535 }; 536 536 537 537 struct s_cardsystem 538 538 { 539 int 32_t active;539 int8_t active; 540 540 char *desc; 541 541 int32_t (*card_init)(); … … 626 626 time_t expirationdate; 627 627 int32_t allowedtimeframe[2]; 628 int 32_t c35_suppresscmd08;629 int32_t c35_sleepsend;630 int 32_t ncd_keepalive;631 int 32_t disabled;628 int8_t c35_suppresscmd08; 629 uint8_t c35_sleepsend; 630 int8_t ncd_keepalive; 631 int8_t disabled; 632 632 uint64_t grp; 633 int 32_t crypted;634 int 32_t dup;633 int8_t crypted; 634 int8_t dup; 635 635 LLIST *aureader_list; 636 int 32_t autoau;637 int 32_t monlvl;636 int8_t autoau; 637 int8_t monlvl; 638 638 CAIDTAB ctab; 639 639 TUNTAB ttab; … … 667 667 int32_t pending; // number of ECMs pending 668 668 #ifdef WEBIF 669 int 32_t wihidden; // hidden in webinterface status669 int8_t wihidden; // hidden in webinterface status 670 670 char lastreader[64]; // last cw got from this reader 671 671 #endif … … 711 711 //camd35 712 712 uchar upwd[64]; 713 int 32_t is_udp;714 int 32_t stopped;713 int8_t is_udp; 714 int8_t stopped; 715 715 int32_t lastcaid; 716 716 int32_t lastsrvid; 717 717 int32_t lastpid; 718 718 time_t emm_last; 719 int 32_t disable_counter;719 int8_t disable_counter; 720 720 uchar lastserial[8]; 721 721 … … 732 732 //an iterator to be used across OSCam; threadspecific 733 733 LL_ITER it; 734 int 32_t itused;734 int8_t itused; 735 735 736 736 //oscam.c … … 739 739 //failban value set bitwise - compared with BAN_ 740 740 int32_t failban; 741 int 32_t cleaned;741 int8_t cleaned; 742 742 struct s_client *next; //make client a linked list 743 743 }; … … 795 795 { 796 796 uint32_t auprovid; // AU only for this provid 797 int 32_t audisabled; // exclude reader from auto AU798 int 32_t smargopatch;797 int8_t audisabled; // exclude reader from auto AU 798 int8_t smargopatch; 799 799 struct s_client * client; //pointer to 'r'client this reader is running in 800 int 32_t enable;801 int 32_t available; //Schlocke: New flag for loadbalancing. Only reader if reader supports ph.c_available function800 int8_t enable; 801 int8_t available; //Schlocke: New flag for loadbalancing. Only reader if reader supports ph.c_available function 802 802 int32_t fd_error; 803 803 int32_t fd; … … 815 815 #endif 816 816 char pcsc_name[128]; 817 int 32_t pcsc_has_card;817 int8_t pcsc_has_card; 818 818 int32_t detect; 819 819 int32_t mhz; //actual clock rate of reader in 10khz steps … … 823 823 char r_pwd[64]; 824 824 char l_pwd[64]; 825 int32_t r_crypted;826 825 int32_t l_port; 827 826 int32_t log_port; 828 827 CAIDTAB ctab; 829 828 uint32_t boxid; 830 int 32_t nagra_read; // read nagra ncmed records: 0 disabled (default), 1 read all records, 2 read valid records only829 int8_t nagra_read; // read nagra ncmed records: 0 disabled (default), 1 read all records, 2 read valid records only 831 830 uchar nagra_boxkey[16]; //n3 boxkey 8byte or tiger idea key 16byte 832 831 char country_code[3]; // irdeto country code. 833 int 32_t force_irdeto;832 int8_t force_irdeto; 834 833 uchar rsa_mod[120]; //rsa modulus for nagra cards. 835 834 uchar atr[64]; … … 853 852 int32_t cachemm; 854 853 int32_t rewritemm; 855 int 32_t card_status;856 int 32_t deprecated; //if 0 ATR obeyed, if 1 default speed (9600) is chosen; for devices that cannot switch baudrate854 int8_t card_status; 855 int8_t deprecated; //if 0 ATR obeyed, if 1 default speed (9600) is chosen; for devices that cannot switch baudrate 857 856 struct s_module ph; 858 857 struct s_cardreader crdr; … … 860 859 uchar ncd_key[16]; 861 860 uchar ncd_skey[16]; 862 int 32_t ncd_disable_server_filt;861 int8_t ncd_disable_server_filt; 863 862 uint16_t ncd_msgid; 864 863 int32_t ncd_proto; … … 868 867 int32_t cc_mindown; // cccam min downhops 869 868 int32_t cc_currenthops; // number of hops for CCCam 870 int 32_t cc_want_emu; //Schlocke: Client want to have EMUs, 0 - NO; 1 - YES869 int8_t cc_want_emu; //Schlocke: Client want to have EMUs, 0 - NO; 1 - YES 871 870 uint32_t cc_id; 872 int 32_t cc_keepalive;871 int8_t cc_keepalive; 873 872 uchar tcp_connected; 874 873 int32_t tcp_ito; // inactivity timeout … … 922 921 unsigned char provider; 923 922 ////variables from reader-nagra.c 924 925 int 32_t is_pure_nagra;926 int 32_t is_tiger;927 int 32_t is_n3_na;928 int 32_t has_dt08;929 int 32_t swapCW;930 931 923 IDEA_KEY_SCHEDULE ksSession; 924 int8_t is_pure_nagra; 925 int8_t is_tiger; 926 int8_t is_n3_na; 927 int8_t has_dt08; 928 int8_t swapCW; 929 uint8_t ExpiryDate[2]; 930 uint8_t ActivationDate[2]; 932 931 unsigned char rom[15]; 933 932 unsigned char plainDT08RSA[64]; … … 953 952 // multi AES linked list 954 953 AES_ENTRY *aes_list; 955 956 int32_t ndsversion; // 0 auto (default), 1 NDS1, 12 NDS1+, 2 NDS2957 958 959 960 961 962 963 964 965 954 // variables from reader-videoguard* 955 int8_t ndsversion; // 0 auto (default), 1 NDS1, 12 NDS1+, 2 NDS2 956 const char * card_desc; 957 int32_t card_baseyear; 958 int32_t card_tierstart; 959 int32_t card_system_version; 960 struct s_CmdTab *cmd_table; 961 uint16_t cardkeys[3][32]; 962 unsigned char stateD3A[16]; 963 AES_KEY ekey; 964 AES_KEY astrokey; 966 965 //ratelimit 967 966 int32_t ratelimitecm; 968 967 int32_t ratelimitseconds; 969 968 struct ecmrl rlecmh[MAXECMRATELIMIT]; 970 int 32_t fix_9993;969 int8_t fix_9993; 971 970 struct s_reader *next; 972 971 }; … … 991 990 char description[64]; 992 991 #endif 993 int 32_t uniq;992 int8_t uniq; 994 993 LLIST *aureader_list; 995 int 32_t autoau;996 int 32_t monlvl;994 int8_t autoau; 995 int8_t monlvl; 997 996 uint64_t grp; 998 997 int32_t tosleep; … … 1014 1013 time_t firstlogin; 1015 1014 int32_t allowedtimeframe[2]; 1016 int 32_t c35_suppresscmd08;1017 int32_t c35_sleepsend;1018 int 32_t ncd_keepalive;1015 int8_t c35_suppresscmd08; 1016 uint8_t c35_sleepsend; 1017 int8_t ncd_keepalive; 1019 1018 int32_t cccmaxhops; 1020 1019 int32_t cccreshare; 1021 int 32_t cccignorereshare;1022 int 32_t cccstealth;1023 int 32_t disabled;1020 int8_t cccignorereshare; 1021 int8_t cccstealth; 1022 int8_t disabled; 1024 1023 int32_t failban; 1025 1024 … … 1093 1092 uint8_t logtosyslog; 1094 1093 uint32_t loghistorysize; 1095 int 32_t disablelog;1096 int 32_t disableuserfile;1097 int 32_t usrfileflag;1094 int8_t disablelog; 1095 int8_t disableuserfile; 1096 int8_t usrfileflag; 1098 1097 struct s_auth *account; 1099 1098 struct s_srvid *srvid[16]; … … 1118 1117 char http_script[128]; 1119 1118 int32_t http_refresh; 1120 int 32_t http_hide_idle_clients;1119 int8_t http_hide_idle_clients; 1121 1120 struct s_ip *http_allowed; 1122 int 32_t http_readonly;1121 int8_t http_readonly; 1123 1122 in_addr_t http_dynip; 1124 1123 uchar http_dyndns[64]; 1125 int 32_t http_use_ssl;1124 int8_t http_use_ssl; 1126 1125 char http_cert[128]; 1127 1126 char http_help_lang[3]; 1128 1127 #endif 1129 int 32_t http_full_cfg;1128 int8_t http_full_cfg; 1130 1129 int32_t failbantime; 1131 1130 int32_t failbancount; … … 1139 1138 int32_t c35_port; 1140 1139 in_addr_t c35_srvip; 1141 int 32_t c35_suppresscmd08;1142 int 32_t c35_tcp_suppresscmd08;1143 int 32_t c35_udp_suppresscmd08;1140 int8_t c35_suppresscmd08; 1141 int8_t c35_tcp_suppresscmd08; 1142 int8_t c35_udp_suppresscmd08; 1144 1143 PTAB c35_tcp_ptab; 1145 1144 in_addr_t c35_tcp_srvip; … … 1148 1147 uchar ncd_key[16]; 1149 1148 int32_t ncd_keepalive; 1150 int 32_t ncd_mgclient;1149 int8_t ncd_mgclient; 1151 1150 struct s_ip *ncd_allowed; 1152 1151 PTAB cc_ptab; … … 1161 1160 int32_t cc_minimize_cards; 1162 1161 int32_t cc_keep_connected; 1163 int 32_t cc_stealth;1162 int8_t cc_stealth; 1164 1163 int32_t cc_reshare_services; 1165 1164 int32_t cc_forward_origin_card; … … 1173 1172 uint32_t srtimeout; // SerialReaderTimeount in millisec 1174 1173 int32_t max_log_size; 1175 int 32_t waitforcards;1174 int8_t waitforcards; 1176 1175 int32_t waitforcards_extra_delay; 1177 int 32_t preferlocalcards;1178 int 32_t saveinithistory;1176 int8_t preferlocalcards; 1177 int8_t saveinithistory; 1179 1178 int32_t reader_restart_seconds; //schlocke: reader restart auf x seconds, disable = 0 1180 int 32_t dropdups; //drop duplicate logins1179 int8_t dropdups; //drop duplicate logins 1181 1180 1182 1181 … … 1200 1199 int32_t lb_auto_betatunnel; //automatic selection of betatunnel convertion based on learned data 1201 1200 1202 int32_t 1201 int32_t resolve_gethostbyname; 1203 1202 1204 1203 #ifdef CS_WITH_DOUBLECHECK 1205 int32_tdouble_check; //schlocke: Double checks each ecm+dcw from two (or more) readers1204 int8_t double_check; //schlocke: Double checks each ecm+dcw from two (or more) readers 1206 1205 #endif 1207 1206 … … 1211 1210 1212 1211 #ifdef HAVE_DVBAPI 1213 int 32_t dvbapi_enabled;1214 int 32_t dvbapi_au;1212 int8_t dvbapi_enabled; 1213 int8_t dvbapi_au; 1215 1214 char dvbapi_usr[64]; 1216 int 32_t dvbapi_boxtype;1217 int 32_t dvbapi_pmtmode;1218 int 32_t dvbapi_requestmode;1215 int8_t dvbapi_boxtype; 1216 int8_t dvbapi_pmtmode; 1217 int8_t dvbapi_requestmode; 1219 1218 SIDTABBITS dvbapi_sidtabok; // positiv services 1220 1219 SIDTABBITS dvbapi_sidtabno; // negative services … … 1234 1233 1235 1234 #ifdef QBOXHD_LED 1236 int 32_t disableqboxhdled; // disable qboxhd led , default = 01235 int8_t disableqboxhdled; // disable qboxhd led , default = 0 1237 1236 #endif 1238 1237 };
Note:
See TracChangeset
for help on using the changeset viewer.