Harald Welte | 39cfbf4 | 2016-07-28 09:04:11 +0200 | [diff] [blame^] | 1 | #include <osmocom/core/msgb.h> |
| 2 | #include <osmocom/abis/e1_input.h> |
| 3 | |
| 4 | #include "storage.h" |
| 5 | |
| 6 | int 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 | } |