📄 emm_ecm.c
字号:
/*$Id: emm_ecm.c,v 1.10 2004/10/17 22:20:36 rasc Exp $ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de (rasc) DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de -- EMM / ECM Data packet$Log: emm_ecm.c,v $Revision 1.10 2004/10/17 22:20:36 rascsection decoding functions renamed due to preparation of private structuresRevision 1.9 2004/01/02 16:40:39 rascDSM-CC INT/UNT descriptors completeminor changes and fixesRevision 1.8 2004/01/01 20:09:31 rascDSM-CC INT/UNT descriptorsPES-sync changed, TS sync changed,descriptor scopeother changesRevision 1.7 2003/10/24 22:17:21 rasccode reorg...Revision 1.6 2003/07/06 05:49:25 obiCAMT fix and indentationRevision 1.5 2003/07/05 21:22:45 rascTypoFix - Tnx MWSRevision 1.4 2002/08/17 20:36:12 obino more compiler warningsRevision 1.3 2001/10/16 18:05:43 rascno messageRevision 1.2 2001/10/06 18:19:18 ToerliSteuerzeichen entfernt. rasc wuerdest du mal bitte nen gescheiten unix-konformen Editor verwenden... windows editoren sind ungeeignetRevision 1.1 2001/09/30 13:05:20 rascdvbsnoop v0.7 -- Commit to CVS*/#include "dvbsnoop.h"#include "emm_ecm.h"#include "descriptors/descriptor.h"#include "strings/dvb_str.h"#include "misc/helper.h"#include "misc/output.h"void section_EMM_ECM (u_char *b, int len){ /* */ typedef struct _EMM_ECM { u_int table_id; u_int section_syntax_indicator; u_int reserved_1; u_int reserved_2; u_int section_length; } EMM_ECM; EMM_ECM e; //int n; e.table_id = b[0]; e.section_syntax_indicator = getBits (b, 0, 8, 1); e.reserved_1 = getBits (b, 0, 9, 1); e.reserved_2 = getBits (b, 0, 10, 2); e.section_length = getBits (b, 0, 12, 12); out_nl (3,"CAMT-decoding...."); out_S2B_NL (3,"Table_ID: ",e.table_id, dvbstrTableID (e.table_id)); out_SB_NL (3,"section_syntax_indicator: ",e.section_syntax_indicator); out_SB_NL (6,"reserved_1: ",e.reserved_1); out_SB_NL (6,"reserved_2: ",e.reserved_2); out_SW_NL (5,"Section_length: ",e.section_length); print_databytes(3,"CA_message_section_data:",b+3,e.section_length); // !!! decoding the complete ECM/EMM stream may be illegal // so we don't do this! // secrets are secrets even if they are openly transmitted! // you are not allowed to enhance this section!}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -