diff options
-rw-r--r-- | src/input/ipaccess.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c index 418606e..4f6353b 100644 --- a/src/input/ipaccess.c +++ b/src/input/ipaccess.c @@ -639,15 +639,15 @@ static void update_fd_settings(struct e1inp_line *line, int fd) LOGP(DLINP, LOGL_ERROR, "Failed to set keepalive count: %s\n", strerror(errno)); - val = 1000 * line->keepalive_num_probes * - line->keepalive_probe_interval + - line->keepalive_idle_timeout; - ret = setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, - &val, sizeof(val)); - if (ret < 0) + val = 1000 * line->keepalive_num_probes * + line->keepalive_probe_interval + + line->keepalive_idle_timeout; + ret = setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, + &val, sizeof(val)); + if (ret < 0) LOGP(DLINP, LOGL_ERROR, - "Failed to set user timoeut: %s\n", - strerror(errno)); + "Failed to set user timoeut: %s\n", + strerror(errno)); } val = 1; @@ -718,8 +718,8 @@ static int ipaccess_bsc_rsl_cb(struct ipa_server_link *link, int fd) struct osmo_fd *bfd; int i, ret; - /* We don't know yet which OML link to associate it with. Thus, we - * allocate a temporary E1 line until we have received ID. */ + /* We don't know yet which OML link to associate it with. Thus, we + * allocate a temporary E1 line until we have received ID. */ line = e1inp_line_clone(tall_ipa_ctx, link->line, "ipa_bfd"); if (line == NULL) { LOGP(DLINP, LOGL_ERROR, "could not clone E1 line\n"); |