added comments to indicate that the VTP filter stream is proprietary forma

Modified Files:
 Tag: v0_4
	client/filter.c server/livefilter.c
This commit is contained in:
schmirl 2009-02-13 13:02:33 +00:00
parent 3bd1dc556f
commit 421a0e113a
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: filter.c,v 1.12 2008/04/07 14:27:28 schmirl Exp $
* $Id: filter.c,v 1.12.2.1 2009/02/13 13:02:33 schmirl Exp $
*/
#include "client/filter.h"
@ -226,6 +226,7 @@ void cStreamdevFilters::Action(void) {
u_short pid = (((u_short)block[1] & PID_MASK_HI) << 8) | block[2];
u_char tid = block[3];
bool Pusi = block[1] & 0x40;
// proprietary extension
int len = block[4];
#if 0
if (block[1] == 0xff &&

View File

@ -1,5 +1,5 @@
/*
* $Id: livefilter.c,v 1.5.2.1 2009/02/13 10:39:42 schmirl Exp $
* $Id: livefilter.c,v 1.5.2.2 2009/02/13 13:02:34 schmirl Exp $
*/
#include "server/livefilter.h"
@ -26,6 +26,7 @@ void cStreamdevLiveFilter::Process(u_short Pid, u_char Tid, const u_char *Data,
buffer[1] = ((Pid >> 8) & 0x3f) | (pos==0 ? 0x40 : 0); /* bit 6: payload unit start indicator (PUSI) */
buffer[2] = Pid & 0xff;
buffer[3] = Tid;
// this makes it a proprietary stream
buffer[4] = (uchar)chunk;
memcpy(buffer + 5, Data + pos, chunk);
length -= chunk;