summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-11-18 08:17:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-11-18 08:17:50 +0000
commite3c755f8a89c8dab5f902d1c6f332c2c03348291 (patch)
treee5a49590c6342494db6892efcefd70d35df0d353
parent27bcb4ea2983a5ee437704dece36067653b7c22e (diff)
downloadbluez-e3c755f8a89c8dab5f902d1c6f332c2c03348291.tar.gz
Use --device for selecting the source device
-rw-r--r--pand/main.c14
-rw-r--r--pand/pand.14
2 files changed, 9 insertions, 9 deletions
diff --git a/pand/main.c b/pand/main.c
index 9165bf92f..725ee5533 100644
--- a/pand/main.c
+++ b/pand/main.c
@@ -47,9 +47,9 @@
#include <sys/stat.h>
#include <bluetooth/bluetooth.h>
-#include <bluetooth/l2cap.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
+#include <bluetooth/l2cap.h>
#include <bluetooth/bnep.h>
#include "pand.h"
@@ -485,8 +485,8 @@ static struct option main_lopts[] = {
{ "killall", 0, 0, 'K' },
{ "role", 1, 0, 'r' },
{ "service", 1, 0, 'd' },
+ { "ethernet", 1, 0, 'e' },
{ "device", 1, 0, 'i' },
- { "source", 1, 0, 'S' },
{ "nosdp", 0, 0, 'D' },
{ "list", 0, 0, 'l' },
{ "show", 0, 0, 'l' },
@@ -500,7 +500,7 @@ static struct option main_lopts[] = {
{ 0, 0, 0, 0 }
};
-static char main_sopts[] = "hsc:k:Kr:i:S:lnp::DQ::EMC::P:z";
+static char main_sopts[] = "hsc:k:Kr:e:i:lnp::DQ::EMC::P:z";
static char main_help[] =
"Bluetooth PAN daemon version " VERSION " \n"
@@ -516,8 +516,8 @@ static char main_help[] =
"\t--killall -K Kill all PAN connections\n"
"\t--role -r <role> Local PAN role (PANU, NAP, GN)\n"
"\t--service -d <role> Remote PAN service (PANU, NAP, GN)\n"
- "\t--device -i <name> Network interface name\n"
- "\t--source -S <bdaddr> Source bdaddr\n"
+ "\t--ethernet -e <name> Network interface name\n"
+ "\t--device -i <bdaddr> Source bdaddr\n"
"\t--nosdp -D Disable SDP\n"
"\t--encrypt -E Enable encryption\n"
"\t--master -M Become the master of a piconet\n"
@@ -566,7 +566,7 @@ int main(int argc, char **argv)
detach = 0;
break;
- case 'S':
+ case 'i':
src = strdup(optarg);
break;
@@ -590,7 +590,7 @@ int main(int argc, char **argv)
master = 1;
break;
- case 'i':
+ case 'e':
strcpy(netdev, optarg);
break;
diff --git a/pand/pand.1 b/pand/pand.1
index fbcc1ddd1..c6c32dfcc 100644
--- a/pand/pand.1
+++ b/pand/pand.1
@@ -33,10 +33,10 @@ Local PAN role (PANU, NAP, GN)
\fB\-\-service\fR \fB\-d\fR <role>
Remote PAN service (PANU, NAP, GN)
.TP
-\fB\-\-device\fR \fB\-i\fR <name>
+\fB\-\-ethernet\fR \fB\-e\fR <name>
Network interface name
.TP
-\fB\-\-source\fR \fB\-S\fR <bdaddr>
+\fB\-\-device\fR \fB\-i\fR <bdaddr>
Source bdaddr
.TP
\fB\-\-nosdp\fR \fB\-D\fR