Yep u right in
function.pl we got:
Code:
Settings::addTableFile(Settings::getRecvPacketsFilename(),
loader => [\&parseRecvpackets, \%rpackets]);
This means
%rpackets contains all packets from
recvpacket file. So we need to look in
FileParser.pm and find it structure:
Code:
my ($packetID, $length, $minLength, $repeat, $function) = split /\s+/, $line, 5;
$packetID =~ s/^(0x[0-9a-f]+)$/hex $1/e;
$r_hash->{$packetID}{length} = $length;
$r_hash->{$packetID}{minLength} = $minLength;
$r_hash->{$packetID}{repeat} = $repeat;
$r_hash->{$packetID}{function} = $function;
Boom here it is.
And u no need to push in hash.... it is hash

If u need only packet and size do this:
Code:
$rpackets->{your_packet_here}{length} = your_length_here;
example:
Code:
$rpackets->{08AF}{length} = 4;