summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/osfp_example.c2
-rw-r--r--example/sample.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/example/osfp_example.c b/example/osfp_example.c
index 9d94015..28194b7 100644
--- a/example/osfp_example.c
+++ b/example/osfp_example.c
@@ -534,7 +534,7 @@ void process_packet(char *user, struct pcap_pkthdr *h, u_char *pkt)
// tcp/ip header detect example for user
int i;
- for (i = 0; i < 1; i++) {
+ for (i = 0; i < 1000; i++) {
example_detect(osfp_db, p);
}
diff --git a/example/sample.c b/example/sample.c
index 4c926a9..f586759 100644
--- a/example/sample.c
+++ b/example/sample.c
@@ -1,4 +1,5 @@
-#include "stdio.h"
+#include <stdio.h>
+#include <stdlib.h>
#include "osfp.h"
char iph[] = {