aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-11-24 18:02:51 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-04 14:15:47 +0100
commit456888a273412f9a1021981f9e9f62cfe71ea159 (patch)
tree8b26401943a6b0d05fb408a3bc93ab481431a61b
parent8486938efb80b94cdf723056c8769627380881f6 (diff)
make e1cap format portableHEADmaster
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
-rw-r--r--src/storage.h5
1 files changed, 4 insertions, 1 deletions
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 @@ enum osmo_e1cap_capture_mode {
/* 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 */