make e1cap format portable
The original format included a 'struct timeval' into the packet header,
which unfortunately is non-potrable between e.g. i386 and amd64.
Change-Id: I0d22ad8f772d173c2252c2f6c562faee2e578806
diff --git a/src/storage.h b/src/storage.h
index c7c1890..0ea9937 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -11,7 +11,10 @@
/* header for each frame we store */
struct osmo_e1cap_pkthdr {
/* Timestamp at which frame was received */
- struct timeval ts;
+ struct {
+ uint32_t tv_sec;
+ uint32_t tv_usec;
+ } ts;
/* length of frame data after this header */
uint32_t len;
/* line/span number on which frame was received */