? pfflowd
Index: pfflowd.c
===================================================================
RCS file: /var/cvs/pfflowd/pfflowd.c,v
retrieving revision 1.18
diff -u -p -r1.18 pfflowd.c
--- pfflowd.c	6 Sep 2004 12:25:57 -0000	1.18
+++ pfflowd.c	30 Apr 2005 13:00:41 -0000
@@ -319,6 +319,9 @@ send_netflow_v1(const struct _PFSYNC_STA
 			flw->flow_finish = htonl(uptime_ms);
 			flw->protocol = st[i].proto;
 			flw->tcp_flags = 0;
+			/* XXX: hack */
+			flw->if_index_in = htons(1);
+			flw->if_index_out = htons(2);
 			offset += sizeof(*flw);
 			j++;
 			hdr->flows++;
@@ -335,6 +338,9 @@ send_netflow_v1(const struct _PFSYNC_STA
 			flw->flow_finish = htonl(uptime_ms);
 			flw->protocol = st[i].proto;
 			flw->tcp_flags = 0;
+			/* XXX: hack */
+			flw->if_index_in = htons(2);
+			flw->if_index_out = htons(1);
 			offset += sizeof(*flw);
 			j++;
 			hdr->flows++;
@@ -491,6 +497,9 @@ send_netflow_v5(const struct _PFSYNC_STA
 			flw->flow_finish = htonl(uptime_ms);
 			flw->tcp_flags = 0;
 			flw->protocol = st[i].proto;
+			/* XXX: hack */
+			flw->if_index_in = htons(1);
+			flw->if_index_out = htons(2);
 			offset += sizeof(*flw);
 			j++;
 			hdr->flows++;
@@ -507,6 +516,9 @@ send_netflow_v5(const struct _PFSYNC_STA
 			flw->flow_finish = htonl(uptime_ms);
 			flw->tcp_flags = 0;
 			flw->protocol = st[i].proto;
+			/* XXX: hack */
+			flw->if_index_in = htons(2);
+			flw->if_index_out = htons(1);
 			offset += sizeof(*flw);
 			j++;
 			hdr->flows++;
