Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
rude
rude
Commits
b414a1ae
Commit
b414a1ae
authored
Oct 06, 2015
by
Olav Kvittem
Browse files
missing clearing time every packet
parent
449cdb87
Changes
2
Hide whitespace changes
Inline
Side-by-side
crude/main.c
View file @
b414a1ae
...
@@ -1022,6 +1022,8 @@ static int rec_to_file(unsigned short port, unsigned long limit)
...
@@ -1022,6 +1022,8 @@ static int rec_to_file(unsigned short port, unsigned long limit)
}
}
else
else
{
{
time1
=
(
struct
timeval
){
0
};
// new packet - blank
if
(
opt_pcap
||
opt_af_packet
){
// raw packets unwrap
if
(
opt_pcap
||
opt_af_packet
){
// raw packets unwrap
if
(
opt_pcap
)
{
// ether header
if
(
opt_pcap
)
{
// ether header
rude_data
=
(
struct
udp_data
*
)
(
packet
+
14
)
;
// compile error : sizeof(struct ether_header);
rude_data
=
(
struct
udp_data
*
)
(
packet
+
14
)
;
// compile error : sizeof(struct ether_header);
...
...
include/rude.h
View file @
b414a1ae
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#define PMAXSIZE 32768
/* Maximum accepted UDP-data field/packet size */
#define PMAXSIZE 32768
/* Maximum accepted UDP-data field/packet size */
#define MINDURAT 0.001
/* Minimum allowed flow duration in seconds (float) */
#define MINDURAT 0.001
/* Minimum allowed flow duration in seconds (float) */
#define VERSION "0.9.
0
"
#define VERSION "0.9.
1
"
/*
/*
* Enumeration definition for different (known) flow types
* Enumeration definition for different (known) flow types
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment