Changeset 4700 for trunk/module-gbox.c
- Timestamp:
- 02/10/11 09:57:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-gbox.c
r4654 r4700 14 14 MSG_ECM = 0x445c, 15 15 MSG_CW = 0x4844, 16 MSG_CW_NOK = 0, // todo17 16 MSG_HELLO = 0xddab, 18 MSG_CHECKCODE = 0x41c0 17 MSG_CHECKCODE = 0x41c0, 18 MSG_GOODBYE = 0x9091, 19 MSG_GSMS_ACK = 0x9098, 20 MSG_GSMS = 0xff0, 21 MSG_BOXINFO = 0xa0a1 19 22 }; 20 23 … … 23 26 uint16 caid; 24 27 uint32 provid; 25 ucharslot;26 uchardist;27 ucharlvl;28 int slot; 29 int dist; 30 int lvl; 28 31 }; 29 32 … … 412 415 card->provid = provid; 413 416 card->slot = ptr[0]; 414 card-> lvl= ptr[1] & 0xf;415 card-> dist = (ptr[1] & 0xf0) >> 4;417 card->dist = ptr[1] & 0xf; 418 card->lvl = ((ptr[1] & 0xf0) >> 4) - 1; 416 419 card->peer_id = ptr[2] << 8 | ptr[3]; 417 420 … … 455 458 card->provid = provid; 456 459 card->slot = ptr[0]; 457 card-> lvl= ptr[1] & 0xf;458 card-> dist = (ptr[1] & 0xf0)>> 4;460 card->dist = ptr[1] & 0xf; 461 card->lvl = ptr[1] >> 4; 459 462 card->peer_id = ptr[2] << 8 | ptr[3]; 460 463 … … 625 628 626 629 return gbox->ecm_idx; 627 } else if (gbox_decode_cmd(buf) == MSG_CW_NOK) {628 *rc = 0;629 630 } 630 631
Note:
See TracChangeset
for help on using the changeset viewer.