summaryrefslogtreecommitdiffstats
path: root/network/server.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:21:42 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:21:42 +0000
commita87f1daabf62c0f45dfb9e1c5f21cec75477d342 (patch)
tree9b53596bcaf69e42b21014429f9a4d7ef6086f99 /network/server.c
parent536cb174ec2d4937bf14fee7d713018e1bb31404 (diff)
Add support for script execution.
Diffstat (limited to 'network/server.c')
-rw-r--r--network/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/network/server.c b/network/server.c
index 76be55b3..b1257760 100644
--- a/network/server.c
+++ b/network/server.c
@@ -337,14 +337,14 @@ static void authorization_callback(DBusPendingCall *pcall, void *data)
info("Authorization succedded. New connection: %s", devname);
response = BNEP_SUCCESS;
- if (bridge_add_interface("pan0", devname) < 0) {
+ if (bridge_add_interface(ns->bridge, devname) < 0) {
error("Can't add %s to the bridge: %s(%d)",
devname, strerror(errno), errno);
goto failed;
}
- bnep_if_up(devname, TRUE);
- bnep_if_up("pan0", TRUE);
+ bnep_if_up(devname, NULL);
+ bnep_if_up(ns->bridge, NULL);
ns->clients = g_slist_append(ns->clients, g_strdup(s->address));