blob: 571a043abb0482e6ca750fecf1937cfcdc7da3c0 [file] [log] [blame]
Harald Welte39cfbf42016-07-28 09:04:11 +02001#include <osmocom/core/msgb.h>
2#include <osmocom/abis/e1_input.h>
3
4#include "storage.h"
5
6int e1frame_store(struct e1inp_ts *ts, struct msgb *msg, enum osmo_e1cap_capture_mode mode)
7{
8 struct osmo_e1cap_pkthdr *h;
9 uint32_t len = msg->len;
10
11 h = (struct osmo_e1cap_pkthdr *) msgb_push(msg, sizeof(*h));
12 h->len = htonl(len);
13 h->line_nr = ts->line->num;
14 h->ts_nr = ts->num;
15 h->capture_mode = mode;
16 h->flags = 0;
17
18 /* FIXME: Write */
19 return 0;
20}