diff options
author | Holger Freyther <zecke@selfish.org> | 2009-03-31 12:14:16 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-03-31 12:14:16 +0000 |
commit | 0469cf608b55003666359eeb0b9376540bcae7dd (patch) | |
tree | 45fa2a130195c5f48bc1299eee3cd1bfd65bd813 /src/bsc_hack.c | |
parent | 66e092bbd6fae0bdace7921af5fbd92c7562614d (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 'src/bsc_hack.c')
-rw-r--r-- | src/bsc_hack.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/bsc_hack.c b/src/bsc_hack.c index 6967afa14..ac109f1fe 100644 --- a/src/bsc_hack.c +++ b/src/bsc_hack.c @@ -927,7 +927,6 @@ static int bootstrap_network(void) static void create_pcap_file(char *file) { -#if 0 mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; int fd = open(file, O_WRONLY|O_TRUNC|O_CREAT, mode); @@ -936,10 +935,7 @@ static void create_pcap_file(char *file) return; } - mi_set_pcap_fd(fd); -#else - fprintf(stderr, "PCAP support currently disabled!!\n"); -#endif + e1_set_pcap_fd(fd); } static void print_usage() |