aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/input/ipaccess.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-07 12:04:07 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-07 13:21:51 +0100
commit3bc856bc16d47ab8785dcb5b96716f6b984ea90b (patch)
tree4f22feee1dcd4a054fe8be6219ca662e625719e8 /openbsc/src/input/ipaccess.c
parent301e6287610345f6aca6b98ae2a1d5e1fcf956ef (diff)
[ipa] Make sending of ID REQ public...
Make sending of the ID Request message public. We are going to use this in the BSC NAT code to ask for querying the BSC.
Diffstat (limited to 'openbsc/src/input/ipaccess.c')
-rw-r--r--openbsc/src/input/ipaccess.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsc/src/input/ipaccess.c b/openbsc/src/input/ipaccess.c
index 6c7ab03ac..7fc75784b 100644
--- a/openbsc/src/input/ipaccess.c
+++ b/openbsc/src/input/ipaccess.c
@@ -170,6 +170,11 @@ int ipaccess_send_id_ack(int fd)
return write(fd, id_ack, sizeof(id_ack));
}
+int ipaccess_send_id_req(int fd)
+{
+ return write(fd, id_req, sizeof(id_req));
+}
+
/* base handling of the ip.access protocol */
int ipaccess_rcvmsg_base(struct msgb *msg,
struct bsc_fd *bfd)
@@ -536,7 +541,7 @@ static int listen_fd_cb(struct bsc_fd *listen_bfd, unsigned int what)
}
/* Request ID. FIXME: request LOCATION, HW/SW VErsion, Unit Name, Serno */
- ret = write(bfd->fd, id_req, sizeof(id_req));
+ ret = ipaccess_send_id_req(bfd->fd);
return ret;
//return e1inp_line_register(line);