Decrease granularity to reduce the size of the dataset
[fprobe-ulog.git] / src / fprobe-ulog.c
index c825f5a..8c66067 100644 (file)
@@ -96,6 +96,7 @@ struct ipulog_handle {
 #include <mem.h>
 
 #define PIDFILE "/var/log/fprobe-ulog.pid"
+#define STD_NETFLOW_PDU
 
 enum {
        aflag,
@@ -818,7 +819,9 @@ void *emit_thread()
                        p = fill(netflow->HeaderFields, netflow->HeaderFormat, 0, &emit_packet);
                        size = netflow->HeaderSize + emit_count * netflow->FlowSize;
                        /* Netflow PDUs need to be padded to 1464 bytes - Sapan */
+#ifdef STD_NETFLOW_PDU
                        if (size < NETFLOW_PDU_SIZE) size = NETFLOW_PDU_SIZE;
+#endif
                        peer_rot_cur = 0;
                        for (i = 0; i < npeers; i++) {
                                if (peers[i].type == PEER_FILE) {
@@ -1283,7 +1286,7 @@ static int init_daemon() {
      3. change the file creation permission 
   */
   setsid();
-  chdir("/root");
+  chdir("/usr/local/fprobe");
   umask(0);
 
   return(0);