Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as text by Avosya ( 18 years ago )
sub parse_config {
foreach $firstOpt ( keys %config ) {
if ( $firstOpt ne 'General' ) {
foreach $secondOpt ( keys %{ $config{$firstOpt} } ) {
if ( $secondOpt eq 'bpfCode' ) {
$bpfCode = $config{$firstOpt}->{$secondOpt};
}
elsif ( $secondOpt eq 'fileName' ) {
$fileName = $config{$firstOpt}->{$secondOpt};
}
elsif ( $secondOpt eq 'ifName' ) {
$ifName = $config{$firstOpt}->{$secondOpt};
}
}
dump_traff();
}
print "n";
}
}
sub dump_traff {
print `tcpdump -i $ifName -p -C $fileSize -s $snapLen -w /mnt/ramdisk/$fileName $bpfCode &`;
}
Revise this Paste