Can someone run this .awk script?

Hi I'm new to do community and I've joined because I need a little help.

I'm working a on a school project and I am currently stuck because I must count number of protocol packets from wireshark .pcap file and in order to so I found this .awk script.

BEGIN {
}
{
vrijeme = $2;
if ($5 == "TCP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "DNS"){
printf("%.5f %d\n", vrijeme, 2000) >> "obrada.dat";
}

if ($5 == "SNMP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "SMB"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "UDP"){
printf("%.5f %d\n", vrijeme, 1500) >> "obrada.dat";
}

if ($5 == "ICMP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "NBSS"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "HTTP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "TNS"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "LDAP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}

if ($5 == "CLDAP"){
printf("%.5f %d\n", vrijeme, 1040) >> "obrada.dat";
}


}

END {

}

Then I have spent 2 hours trying to run this script on a selected file (via MATLAB, gawk etc) and I didn't succeed.

So I figured out that it would be very much easier for me if some else (more experienced .awk user) could run script for me and just post resulting file here.

I uploaded wireshark file (20MB) on
<link removed>

Thanks in advance.

Which layer protocols are you interested in?

I'm interested in protocols from third layer and onward. More precisely all protocols I'm looking for are listed in .awk script and I have to have them listed in txt file exactly as the script says.

Please find another way of getting the information you need without posting links to such websites.

Post it in the Homework forum, using the correct template.