ipaccess-config: Fix writing pcap output to fd=0 (stdin)

It ended up in seeing lots of garbage in my terminal every time I run
the program.

Change-Id: I9ee0a4c51f4f10bf71390f884d67d87b623773df
This commit is contained in:
Pau Espin 2022-09-16 20:33:11 +02:00 committed by pespin
parent cb2c6fc0ba
commit fe5fefa4ac
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ static int ia_config_connect(struct gsm_bts *bts, struct sockaddr_in *sin)
return -EINVAL;
}
e1inp_line_bind_ops(line, &ipaccess_e1inp_line_ops);
e1_set_pcap_fd2(line, -1); /* Disable writing to pcap */
sign_ts = e1inp_line_ipa_oml_ts(line);
rsl_ts = e1inp_line_ipa_rsl_ts(line, 0);