summaryrefslogtreecommitdiffstats
path: root/usr.bin/bluetooth/rfcomm_sppd
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-12-07 19:41:58 +0000
committeremax <emax@FreeBSD.org>2005-12-07 19:41:58 +0000
commite58f0162eff9204876c0a85d2392eedde2c57425 (patch)
tree9f0e51756575b9059d96c400c5aa23af34090d76 /usr.bin/bluetooth/rfcomm_sppd
parentcdc727ff2428b326134098b6078a41598c95e31a (diff)
downloadFreeBSD-src-e58f0162eff9204876c0a85d2392eedde2c57425.zip
FreeBSD-src-e58f0162eff9204876c0a85d2392eedde2c57425.tar.gz
Teach rfcomm_sppd(8) to recognize "lan" (for LAN Access Using PPP) service
name in '-c' (RFCOMM channel) option. MFC after: 3 days
Diffstat (limited to 'usr.bin/bluetooth/rfcomm_sppd')
-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 b2b4dea..2f7d3f5 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 d5f0bf5..4ce893d 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;
OpenPOWER on IntegriCloud