Fix the data offset for icmp_echoscan

This commit is contained in:
HD Moore 2013-08-17 15:08:32 -05:00
parent dc75ca2edd
commit 7455793d2d

View File

@ -181,6 +181,7 @@ int json_output_file_ip(ipaddr_n_t saddr, ipaddr_n_t daddr,
json_object_object_add(obj, "proto", json_object_new_string("icmp"));
json_object_object_add(obj, "icmp_type", json_object_new_int(icmp->type));
json_object_object_add(obj, "icmp_code", json_object_new_int(icmp->code));
data_offset = sizeof(struct ethhdr) + ip_hdr->ihl*4 + sizeof(struct icmphdr);
break;
case IPPROTO_IGMP: