ip_traffic_template.fieldInfo[3].offset = 0
ip_traffic_template.fieldInfo[3].offset = 0;
void sampler_hook_entry(void *ctx, void *data){	int transport_offset;	struct packet_hook *ph=(struct packet_hook *)data;        void *aggregator=ctx;	FieldData *fdata=(FieldData *)ph->ip_header;		/*	 because of IP options we need to re-calculate the offsets to srcport and dstport every time	 now we do need some serious pointer arithmetic:	 - calculate the offset of transport header to ip header	 - use this offset and add to src/dst_port offset	 */	transport_offset=abs(ph->transport_header - ph->ip_header);	DPRINTF("hook_enty: transport_offset is %d\n", transport_offset);	ip_traffic_template.fieldInfo[3].offset += transport_offset;	ip_traffic_template.fieldInfo[4].offset += transport_offset;	aggregateDataRecord(aggregator, HOOK_SOURCE_ID, &ip_traffic_template, ph->length, fdata);	/* reset ip_traffic_fi, offsets for srcport/dstport to starting values */	ip_traffic_template.fieldInfo[3].offset = 0	ip_traffic_template.fieldInfo[4].offset = 2;}