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
This commit is contained in:
Harald Welte 2019-11-24 18:02:51 +01:00
parent 8486938efb
commit 456888a273
1 changed files with 4 additions and 1 deletions

View File

@ -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 */