summaryrefslogtreecommitdiffstats
path: root/dund
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-11-18 08:26:06 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-11-18 08:26:06 +0000
commit1b876422a5d3464c3a7ddad14956542adb2c1e53 (patch)
tree8b5c78f26bb93cc8859cb34ff6c8483ea5bb4046 /dund
parent6f6c722d1fc37d94f45c438f1b611c2d885e62f3 (diff)
Use --device for selecting the source device
Diffstat (limited to 'dund')
-rw-r--r--dund/dund.12
-rw-r--r--dund/main.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/dund/dund.1 b/dund/dund.1
index 3ac0f03d..7b4e7cd9 100644
--- a/dund/dund.1
+++ b/dund/dund.1
@@ -29,7 +29,7 @@ Kill all DUN connections
\fB\-\-channel\fR \fB\-C\fR <channel>
RFCOMM channel
.TP
-\fB\-\-source\fR \fB\-S\fR <bdaddr>
+\fB\-\-device\fR \fB\-i\fR <bdaddr>
Source bdaddr
.TP
\fB\-\-nosdp\fR \fB\-D\fR
diff --git a/dund/main.c b/dund/main.c
index 51ad1db3..b7d2b356 100644
--- a/dund/main.c
+++ b/dund/main.c
@@ -45,9 +45,9 @@
#include <sys/poll.h>
#include <bluetooth/bluetooth.h>
-#include <bluetooth/rfcomm.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
+#include <bluetooth/rfcomm.h>
#include "dund.h"
#include "lib.h"
@@ -369,7 +369,7 @@ static struct option main_lopts[] = {
{ "kill", 1, 0, 'k' },
{ "killall", 0, 0, 'K' },
{ "channel", 1, 0, 'P' },
- { "source", 1, 0, 'S' },
+ { "device", 1, 0, 'i' },
{ "nosdp", 0, 0, 'D' },
{ "list", 0, 0, 'l' },
{ "show", 0, 0, 'l' },
@@ -384,7 +384,7 @@ static struct option main_lopts[] = {
{ 0, 0, 0, 0 }
};
-static char main_sopts[] = "hsc:k:Kr:S:lnp::DQ::EMP:C::P:X";
+static char main_sopts[] = "hsc:k:Kr:i:lnp::DQ::EMP:C::P:X";
static char main_help[] =
"Bluetooth LAP (LAN Access over PPP) daemon version " VERSION " \n"
@@ -399,7 +399,7 @@ static char main_help[] =
"\t--kill -k <bdaddr> Kill LAP connection\n"
"\t--killall -K Kill all LAP connections\n"
"\t--channel -P <channel> RFCOMM channel\n"
- "\t--source -S <bdaddr> Source bdaddr\n"
+ "\t--device -i <bdaddr> Source bdaddr\n"
"\t--nosdp -D Disable SDP\n"
"\t--nodetach -n Do not become a daemon\n"
"\t--persist -p[interval] Persist mode\n"
@@ -453,7 +453,7 @@ int main(int argc, char **argv)
channel = atoi(optarg);
break;
- case 'S':
+ case 'i':
src = strdup(optarg);
break;