projects
/
darkstat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a823d7
)
Retire pktsummary.time - it isn't used.
author
Emil Mikulic
<emikulic@gmail.com>
Sat, 7 Jul 2012 06:41:50 +0000
(16:41 +1000)
committer
Emil Mikulic
<emikulic@gmail.com>
Sun, 8 Jul 2012 07:56:02 +0000
(17:56 +1000)
cap.c
patch
|
blob
|
history
decode.h
patch
|
blob
|
history
diff --git
a/cap.c
b/cap.c
index
d649d5d
..
3c8025d
100644
(file)
--- a/
cap.c
+++ b/
cap.c
@@
-277,7
+277,6
@@
static void callback(u_char *user _unused_,
if (opt_want_hexdump)
hexdump(pdata, pheader->caplen);
memset(&sm, 0, sizeof(sm));
- sm.time = pheader->ts.tv_sec;
if (linkhdr->decoder(pheader, pdata, &sm))
acct_for(&sm);
}
diff --git
a/decode.h
b/decode.h
index
30a409d
..
cc4bd55
100644
(file)
--- a/
decode.h
+++ b/
decode.h
@@
-27,7
+27,6
@@
struct pktsummary {
/* Fields are in host byte order (except IPs) */
struct addr src, dst;
- time_t time;
uint16_t len;
uint8_t proto; /* IPPROTO_INVALID means don't do proto accounting */
uint8_t tcp_flags; /* only for TCP */