Fix the data offset for icmp_echoscan
This commit is contained in:
parent
dc75ca2edd
commit
7455793d2d
@ -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, "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_type", json_object_new_int(icmp->type));
|
||||||
json_object_object_add(obj, "icmp_code", json_object_new_int(icmp->code));
|
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;
|
break;
|
||||||
|
|
||||||
case IPPROTO_IGMP:
|
case IPPROTO_IGMP:
|
||||||
|
Loading…
Reference in New Issue
Block a user