$OpenBSD: patch-include_Flow_h,v 1.1.1.1 2016/04/26 20:56:01 sthen Exp $
--- include/Flow.h.orig	Mon Apr 25 09:27:48 2016
+++ include/Flow.h	Tue Apr 26 17:53:54 2016
@@ -137,7 +137,7 @@ class Flow : public GenericHashEntry {
   void checkFlowCategory();
   void setBittorrentHash(char *hash);
   bool isLowGoodput();
-  void updatePacketStats(InterarrivalStats *stats, const struct timeval *when);
+  void updatePacketStats(InterarrivalStats *stats, const struct bpf_timeval *when);
   void dumpPacketStats(lua_State* vm, bool cli2srv_direction);
 
  public:
@@ -182,8 +182,8 @@ class Flow : public GenericHashEntry {
   void setDetectedProtocol(ndpi_protocol proto_id);
   void setJSONInfo(const char *json);
   bool isFlowPeer(char *numIP, u_int16_t vlanId);
-  void incStats(bool cli2srv_direction, u_int pkt_len,
-		u_int payload_len, const struct bpf_timeval *when);
+  void incStats(bool cli2srv_direction, u_int32_t pkt_len,
+		u_int16_t payload_len, const struct bpf_timeval *when);
   void updateActivities();
   void addFlowStats(bool cli2srv_direction, u_int in_pkts, u_int in_bytes, u_int in_goodput_bytes,
 		    u_int out_pkts, u_int out_bytes, u_int out_goodput_bytes, time_t last_seen);
