summaryrefslogtreecommitdiff
path: root/usr.bin/bluetooth
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2005-12-07 19:41:58 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2005-12-07 19:41:58 +0000
commita9412967a2136257a6893c72b19ff0284ab55495 (patch)
tree9f0e51756575b9059d96c400c5aa23af34090d76 /usr.bin/bluetooth
parent21c4855ebef3812705bf59f79e6164764caea13b (diff)
downloadsrc-test-a9412967a2136257a6893c72b19ff0284ab55495.tar.gz
src-test-a9412967a2136257a6893c72b19ff0284ab55495.zip
Teach rfcomm_sppd(8) to recognize "lan" (for LAN Access Using PPP) service
name in '-c' (RFCOMM channel) option. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=153209
Diffstat (limited to 'usr.bin/bluetooth')
-rw-r--r--usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.14
-rw-r--r--usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1 b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
index b2b4deac403a6..2f7d3f5328a1b 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
+++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.1
@@ -86,7 +86,9 @@ Supported service names are:
.Cm DUN
(for DialUp Networking service),
.Cm FAX
-(for Fax service) and
+(for Fax service),
+.Cm LAN
+(for LAN Access Using PPP service) and
.Cm SP
(for Serial Port service).
If channel was not specified then
diff --git a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
index d5f0bf57d9d5f..4ce893da22c55 100644
--- a/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
+++ b/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c
@@ -107,6 +107,10 @@ main(int argc, char *argv[])
service = SDP_SERVICE_CLASS_FAX;
break;
+ case 'l': /* LAN */
+ service = SDP_SERVICE_CLASS_LAN_ACCESS_USING_PPP;
+ break;
+
case 's': /* Serial Port */
service = SDP_SERVICE_CLASS_SERIAL_PORT;
break;