⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test0x1d.c

📁 dvbsnoop is a DVB/MPEG stream analyzer program. The program can be used to sniff, monitor, debug, d
💻 C
字号:
/*$Id: test0x1d.c,v 1.8 2004/10/17 22:20:39 rasc Exp $ DVBSNOOP a dvb sniffer  and mpeg2 stream analyzer tool http://dvbsnoop.sourceforge.net/ (c) 2001-2004   Rainer.Scherg@gmx.de   -- test data section   -- DVB test and measurement signalling channel   -- ETSI TR 101 291$Log: test0x1d.c,v $Revision 1.8  2004/10/17 22:20:39  rascsection decoding functions renamed due to preparation of private structuresRevision 1.7  2004/02/20 22:18:44  rascDII complete (hopefully)BIOP::ModuleInfo  (damned, who is spreading infos over several standards???)maybe someone give me a hint on the selector_byte info!!!some minor changes...Revision 1.6  2004/01/01 20:09:42  rascDSM-CC INT/UNT descriptorsPES-sync changed, TS sync changed,descriptor scopeother changesRevision 1.5  2003/12/28 00:01:15  rascsome minor changes/adds...Revision 1.4  2003/12/27 22:02:45  rascdsmcc INT UNT descriptors startedRevision 1.3  2003/11/26 20:31:51  rascno messageRevision 1.2  2003/11/26 16:27:48  rasc- mpeg4 descriptors- simplified bit decoding and output functionRevision 1.1  2003/10/29 21:00:22  rascmore PES stuff, DSM descriptors, testdata*/#include "dvbsnoop.h"#include "test0x1d.h"#include "misc/output.h"#include "misc/hexprint.h"void section_TESTDATA (u_char *b, int len){ typedef struct  _TESTDATA {    u_int      table_id;    u_int      priority_level;    u_int      section_syntax_indicator;		    unsigned long crc; } TESTDATA; TESTDATA   t;  t.table_id 			 = getBits (b, 0, 0, 6); t.priority_level		 = getBits (b, 0, 6, 2); t.section_syntax_indicator	 = getBits (b, 0, 8, 1); out_nl (3,"TESTDATA-decoding...."); out_SB_NL (3,"Table_ID: ",t.table_id); out_SB_NL (3,"priority_level: ",t.priority_level); out_SB_NL (3,"section_syntax_indicator: ",t.section_syntax_indicator); out_nl (3,"... $$$ TODO ...."); out_nl (3,"... Report!!! if you find a transponder with test data!!! ...."); // $$$ TODO   ... printhex_buf (5, b, len);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -