summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libgb/gprs_ns.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-04-05 18:33:24 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-04-05 18:33:24 +0200
commitc0d04310f3867cf48eadefe0ce01c4fc3eead036 (patch)
tree85bca98debd7dbb80897b7f2e75aa1b9673ea365 /openbsc/src/libgb/gprs_ns.c
parent167281ec500cff6b0c00e47d1478359bc3f9c7d0 (diff)
libcommon: socket: extend make_sock() prototype
This patch extends the make_sock() prototype so you can fully set the fields priv_nr and data of the bsc_fd structure. This is the first step to get rid of the internal make_sock() implementation that ipaccess-proxy uses. This patch includes a minor cleanup to pass INADDR_ANY instead of zero, if you do not want to bind the socket to one specific address.
Diffstat (limited to 'openbsc/src/libgb/gprs_ns.c')
-rw-r--r--openbsc/src/libgb/gprs_ns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libgb/gprs_ns.c b/openbsc/src/libgb/gprs_ns.c
index 877a0654..95e5a55d 100644
--- a/openbsc/src/libgb/gprs_ns.c
+++ b/openbsc/src/libgb/gprs_ns.c
@@ -946,7 +946,7 @@ int gprs_ns_nsip_listen(struct gprs_ns_inst *nsi)
int ret;
ret = make_sock(&nsi->nsip.fd, IPPROTO_UDP, nsi->nsip.local_ip,
- nsi->nsip.local_port, nsip_fd_cb);
+ nsi->nsip.local_port, 0, nsip_fd_cb, NULL);
if (ret < 0)
return ret;