aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-03-31 12:14:16 +0000
committerHolger Freyther <zecke@selfish.org>2009-03-31 12:14:16 +0000
commit0469cf608b55003666359eeb0b9376540bcae7dd (patch)
tree45fa2a130195c5f48bc1299eee3cd1bfd65bd813 /include
parent66e092bbd6fae0bdace7921af5fbd92c7562614d (diff)
[e1] Enable dumping of LAPD frames again
Kill mi_set_pcap_fd from the header, introduce e1_set_pcap_fd and call it from bsc_hack.c. Hook into abis_rsl_sendmsg and _abis_nm_sendmsg for sending and e1inp_rx_ts for reading. It compiles and should not cause a regression.
Diffstat (limited to 'include')
-rw-r--r--include/openbsc/e1_input.h3
-rw-r--r--include/openbsc/misdn.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/include/openbsc/e1_input.h b/include/openbsc/e1_input.h
index e127c276d..61c3e7a6d 100644
--- a/include/openbsc/e1_input.h
+++ b/include/openbsc/e1_input.h
@@ -138,6 +138,9 @@ struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts,
/* called by driver in case some kind of link state event */
int e1inp_event(struct e1inp_ts *ts, int evt, u_int8_t tei, u_int8_t sapi);
+/* Write LAPD frames to the fd. */
+void e1_set_pcap_fd(int fd);
+
/* called by TRAU muxer to obtain the destination mux entity */
struct subch_mux *e1inp_get_mux(u_int8_t e1_nr, u_int8_t ts_nr);
diff --git a/include/openbsc/misdn.h b/include/openbsc/misdn.h
index 5d9013a83..b6bd391ad 100644
--- a/include/openbsc/misdn.h
+++ b/include/openbsc/misdn.h
@@ -23,7 +23,6 @@
#include "e1_input.h"
int mi_setup(int cardnr, struct e1inp_line *line);
-void mi_set_pcap_fd(int fd);
int _abis_nm_sendmsg(struct msgb *msg);
#endif