Changeset 5060 for trunk/module-cccam.c
- Timestamp:
- 04/20/11 18:58:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r5058 r5060 3222 3222 ph->c_card_info = cc_card_info; 3223 3223 static PTAB ptab; //since there is always only 1 cccam server running, this is threadsafe 3224 ptab.ports[0].s_port = cfg.cc_port; 3224 memset(&ptab, 0, sizeof(PTAB)); 3225 int32_t i; 3226 for (i=0;i<CS_MAXPORTS;i++) { 3227 if (!cfg.cc_port[i]) break; 3228 ptab.ports[i].s_port = cfg.cc_port[i]; 3229 ptab.nports++; 3230 } 3231 3225 3232 ph->ptab = &ptab; 3226 ph->ptab->nports = 1;3227 3233 ph->num = R_CCCAM; 3228 3234 … … 3230 3236 init_rnd(); 3231 3237 uint16_t sum = 0x1234; //This is our checksum 3232 int32_t i;3233 3238 for (i = 0; i < 6; i++) { 3234 3239 cc_node_id[i] = fast_rnd();
Note:
See TracChangeset
for help on using the changeset viewer.