Talk:Network packet generator
Subversive Technologies & Countermeasures
Will flesh out the documentation when time permits. Jason Todd 20:58, 15 June 2006 (CDT)
[edit] Examples
Will release more packet examples as time permits, if you have any feel free to post them. Jason Todd 20:53, 16 June 2006 (CDT)
[edit] Bug Report
when trying to use -p <frame> -r <count> -t <interval> , npg ignores time interval , and gives a burst sized <count>
great tool beside , Thanks for your work
1.In File npgparser.c,
Function: char *ParsePacketID(char *line, int *Advanced), LINE 154: PktID = MAlloc(sizeof(char *)*AppendSize); should be changed into: PktID = MAlloc(sizeof(char)*AppendSize); LINE 166: WorkingPacketID = MAlloc(sizeof(char*)*(PktIDSize+AppendSize)); should be changed into: WorkingPacketID = MAlloc(sizeof(char)*(PktIDSize+AppendSize)); LINE 179: PktID = MAlloc(sizeof(char*)*strlen(WorkingPacketID)); should be changed into: PktID = MAlloc(sizeof(char*)*strlen(WorkingPacketID));
2.In File npgfile.c,
char HexByte[1]; should be changed into: char HexByte[2];
3.In File npgutils.c,
Function: u_int32_t Chars2Hex(char *chex, char cHexLength) LINE 102: if ( chex[i] > 0x29 && chex[i] < 0x40 ) Digit[i] = chex[i] & 0x0f; //if 0 to 9 should be changed into if ( chex[i] > 0x2F && chex[i] < 0x3A ) Digit[i] = chex[i] & 0x0f; //if 0 to 9
BUGFIXer :Peng zhicheng E_mail: pzc_xujia@163.com From: Beijing University of Posts and Telecommunications, Beijing, China

