1 .\" $NetBSD: btpand.8,v 1.3 2008/08/17 14:43:07 plunky Exp $
3 .\" Copyright (c) 2008 Iain Hibbert
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 .Nd Bluetooth PAN daemon
38 .Brq Fl s Ar service | Fl S Ar service Op Fl p Ar psm
46 .Brq Fl s Ar service | Fl S Ar service
50 daemon handles Bluetooth Personal Area Networking services
52 It can operate in client mode as a Personal Area Networking User
54 or in server mode as Network Access Point
60 connects to the system via a
62 virtual Ethernet device and forwards Ethernet packets to
63 remote Bluetooth devices using the Bluetooth Network Encapsulation
67 The PANU client is the device that uses either the NAP or GN
68 service, or can talk directly to a PANU host in a crossover
71 A GN host forwards Ethernet packets to each of the connected PAN
72 users as needed but does not provide access to any additional networks.
74 The NAP service provides some of the features of an Ethernet bridge,
75 with the NAP host forwarding Ethernet packets between each of the
76 connected PAN users, and a different network
79 Note, the only differences between NAP and GN services as implemented by
81 are in the SDP service record.
82 The bridging of packets by the NAP must be configured separately with
85 The options are as follows:
86 .Bl -tag -width ".Fl a Ar address"
88 In client mode, address of remote server.
89 May be given as BDADDR or name, in which case
91 will attempt to resolve the address via the
92 .Xr bt_gethostbyname 3
95 In server mode, specify
103 Restrict connections to the local
105 May be given as BDADDR or name, in which case
107 will attempt to resolve the address via the
113 interface physical address to the BDADDR
114 of the Bluetooth radio.
119 driver to create a new network interface for use.
120 Use this option to select a specific
122 device interface which must already be created.
124 In server mode, limit the number of simultaneous connections.
125 The default limit is 7 for NAP and GN servers,
126 and 1 for a PANU server.
128 Set L2CAP connection link mode.
133 require devices to be paired.
135 auth, plus enable encryption.
137 encryption, plus change of link key.
140 Use an alternative L2CAP Protocol/Service Multiplexer
142 for server mode or client mode
143 .Pq when not using Service Discovery .
144 The default PSM for BNEP is 15
149 to provide or connect to, the following services are recognised:
153 Group ad-hoc Network.
155 Network Access Point.
157 Personal Area Networking User.
165 will not use SDP services for connection setup.
168 When providing networking services, the Bluetooth PAN profile says that the
170 property of the bluetooth controller SHALL include Networking capability
171 .Pq set bit 0x020000 .
178 has set up the client or server connection and opened the
180 interface, it will create a pid file and detach.
186 .It Pa /etc/bluetooth/hosts
188 .It Pa /var/run/tap Ns Em N Ns No .pid
191 .Dl ifconfig tap1 create
192 .Dl btpand -a host -d ubt0 -s NAP -m encrypt -i tap1
193 .Dl dhclient -q -o -w -nw tap1
195 Will create an encrypted connection to the NAP on
201 .Dl btpand -d ubt0 -s GN -m auth
203 Will create a Group Network requiring authentication to join and register
204 the GN service with the local SDP server.
218 .Qq Personal Area Networking Profile
220 .Qq Bluetooth Network Encapsulation Protocol
221 specifications are available at
222 .Dl http://www.bluetooth.com/
226 There is no way to supply alternative values for the SDP record.
228 There is no way to set net type or multicast address filters.
231 does not do any address routing except to directly connected
233 All other packets are multicast.
237 uses the BDADDR of the Bluetooth radio as the physical address
238 of the tap, only one instance can be run per radio.
241 can only provide a single service.