📄 dsmcc_ddb.c
字号:
/*$Id: dsmcc_ddb.c,v 1.2 2004/02/15 18:58:27 rasc Exp $ DVBSNOOP a dvb sniffer and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004 Rainer.Scherg@gmx.de (rasc) -- dsmcc download Data Block Message$Log: dsmcc_ddb.c,v $Revision 1.2 2004/02/15 18:58:27 rascDSM-CC data/object carousell continued (DSI, DII, DDB, DCancel)Revision 1.1 2004/02/15 01:02:10 rascDSM-CC DDB (DownloadDataBlock Message)DSM-CC U-N-Message startedCarousel Descriptors completed*/#include "dvbsnoop.h"#include "dsmcc_ddb.h"#include "dsmcc_misc.h"#include "misc/output.h"#include "misc/hexprint.h"/* * ISO/IEC 13818-6 * dsmcc_downloadDataMessage * Download Data Block */int dsmcc_DownloadDataMessage (int v, u_char *b, u_int len){ int x; int len_org = len; DSMCC_MSG_HD dmh; x = dsmcc_MessageHeader (v, b, len, &dmh); b += x; len -= x; outBit_Sx_NL (v,"moduleId: ", b, 0, 16); outBit_Sx_NL (v,"moduleVersion: ", b, 16, 8); outBit_Sx_NL (v,"reserved: ", b, 24, 8); outBit_Sx_NL (v,"blockNumber: ", b, 32, 16); b += 6; len -= 6; print_databytes (v, "Block Data: ", b, len); // $$$ Save Blockdata if option set to file return len_org;}// $$$ TODO//// 11.2.4 Transport of BIOP Messages//// BIOP messages are transported in Modules of DSM-CC Data Carousels.// Multiple BIOP messages may be carried in one Module. The Modules of// the Data Carousel are fragmented into Blocks. These Blocks are// transported in DownloadDataBlock() messages (described in clause 7).// Figure 11-3 illustrates the applied encapsulation and fragmentation// methods.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -