Changeset 5345 for trunk/module-cccam.c
- Timestamp:
- 06/02/11 23:43:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r5340 r5345 1576 1576 } 1577 1577 1578 #define TIMEOUT_SECONDS 3600 1579 1580 void set_card_timeout(struct cc_card *card) 1581 { 1582 card->timeout = time(NULL)+TIMEOUT_SECONDS+(fast_rnd()-128)*2; 1583 } 1584 1578 1585 struct cc_card *read_card(uint8_t *buf, int32_t ext) { 1579 1586 struct cc_card *card = cs_malloc(&card, sizeof(struct cc_card), QUITERROR); … … 1591 1598 card->hop = buf[10]; 1592 1599 card->reshare = buf[11]; 1600 set_card_timeout(card); 1593 1601 memcpy(card->hexserial, buf + 12, 8); //HEXSERIAL!! 1594 1602
Note:
See TracChangeset
for help on using the changeset viewer.