diff --git a/src/output_modules/module_json.c b/src/output_modules/module_json.c index f46def6..73ae1e6 100644 --- a/src/output_modules/module_json.c +++ b/src/output_modules/module_json.c @@ -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: