Gleb Smirnoff
26cf4b53d9
netgraph: pass return value from callout_stop() unmodified to callers of
...
ng_uncallout. Most of them do not check it anyway, so very little node
changes are required.
Reviewed by: mjg, markj
Differential Revision: https://reviews.freebsd.org/D31476
2021-09-10 11:26:59 -07:00
Takanori Watanabe
14803ec8d1
Fix a use-after-free in an error case.
...
PR: 255872
Submitted by: lylgood
Differential Revision: https://reviews.freebsd.org/D30454
2021-05-26 18:23:33 +09:00
Mateusz Guzik
662c13053f
net: clean up empty lines in .c and .h files
2020-09-01 21:19:14 +00:00
Hans Petter Selasky
21eefd310a
Substitute le_read_supported_status with le_read_supported_states.
...
Refer to bluetooth core v5.2 specifications Vol4. Part E. 7.8.27.
PR: 245763
Submitted by: Marc Veldman <marc@bumblingdork.com>
MFC after: 1 week
Sponsored by: Mellanox Technologies
2020-04-20 13:44:14 +00:00
Hans Petter Selasky
3bc36313e4
Bring HCI error messages up-to-date.
...
See Bluetooth v5.6 core specification Vol.1 Part F: Controller error codes.
Submitted by: Marc Veldman <marc@bumblingdork.com>
PR: 245737
MFC after: 1 week
Sponsored by: Mellanox Technologies
2020-04-19 10:24:15 +00:00
Takanori Watanabe
3cba89e6f8
Fix mbuf handling in le advertize packet processing.
...
Submitted by: Marc Veldman <marc at bumblingdork.com>
2020-04-02 09:15:31 +00:00
Pedro F. Giffuni
fe267a5590
sys: general adoption of SPDX licensing ID tags.
...
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
No functional change intended.
2017-11-27 15:23:17 +00:00
Takanori Watanabe
4aa92fe2f3
Make cached Bluetooth LE host advertise information visible from userland.
...
Differential Revision: https://reviews.freebsd.org/D10362
2017-04-27 15:03:24 +00:00
Pedro F. Giffuni
053359b7f4
sys/netgraph: spelling fixes in comments.
...
No functional change.
2016-04-29 21:25:05 +00:00
Takanori Watanabe
483ed39512
Fix encryption error handling.
...
Close l2cap connection on encryption error.
2015-11-07 12:15:02 +00:00
Takanori Watanabe
3a601a2381
Bluetooth LE Security Management channel support.
...
Add a socket option to block until underlying HCI connection encrypted.
Differential Revision: https://reviews.freebsd.org/D3981
2015-10-27 03:42:26 +00:00
Takanori Watanabe
fbc48c2bfb
Initial Bluetooth LE support.
...
Note that sockaddr_l2cap structure is changed , check socket address
to initialize new structure member and define L2CAP_SOCKET_CHECKED
before including ng_btsocket.h
Differential Revision: https://reviews.freebsd.org/D2021
Reviewed by:emax
2015-04-07 10:22:56 +00:00
Eitan Adler
a164074fc4
Fix several typos
...
PR: kern/176054
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 3 days
2013-05-12 16:43:26 +00:00
Gleb Smirnoff
eb1b1807af
Mechanically substitute flags from historic mbuf allocator with
...
malloc(9) flags within sys.
Exceptions:
- sys/contrib not touched
- sys/mbuf.h edited manually
2012-12-05 08:04:20 +00:00
Gleb Smirnoff
674d86bf91
Node constructor methods are supposed to be called in syscall
...
context always. Convert nodes to consistently use M_WAITOK flag
for memory allocation.
Reviewed by: julian
2011-04-18 09:12:27 +00:00
Maksim Yevmenkin
8c975889a8
Change message severity level from WARN to INFO. This should reduce
...
amount of messages sent to syslog
MFC after: 1 week
2008-12-24 00:00:52 +00:00
Dag-Erling Smørgrav
1ede983cc9
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
...
MFC after: 3 months
2008-10-23 15:53:51 +00:00
Warner Losh
c398230b64
/* -> /*- for license, minor formatting changes
2005-01-07 01:45:51 +00:00
Gleb Smirnoff
f9d9e1b4ec
Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.
...
This is done to keep both versions in RELENG_5 and support both APIs.
Reviewed by: scottl
Approved by: julian (mentor), implicitly
2004-12-01 11:56:32 +00:00
Maksim Yevmenkin
b81d7730f3
Fix kernel build (caused by recent ng_{un}timeout API change)
...
Submitted by: glebius
2004-11-03 18:00:49 +00:00
Julian Elischer
f8aae7776f
Switch to using C99 sparse initialisers for the type methods array.
...
Should make no binary difference.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Reviewed by: Harti Brandt <harti@freebsd.org>
MFC after: 1 week
2004-05-29 00:51:19 +00:00
Maksim Yevmenkin
b84b10f92f
Address few style issues pointed out by bde
...
Reviewed by: bde, ru
2004-04-27 16:38:15 +00:00
Maksim Yevmenkin
4ae439a316
Make sure Bluetooth stuff can be compiled on amd64
...
Submitted by: ps
2004-04-09 23:01:42 +00:00
Maksim Yevmenkin
f21fff6cf2
Change double include protection style in headers to match
...
the rest of Netgraph code.
Reviewed by: imp, ru
Approved by: imp (mentor)
2003-11-14 03:45:29 +00:00
Maksim Yevmenkin
0986ab12e4
Update Bluetooth code.
...
Reviewed by: M. Warner Losh <imp@bsdimp.com>; John Hay <jhay@freebsd.org>
Approved by: M. Warner Losh <imp@bsdimp.com> (mentor)
2003-10-12 22:04:24 +00:00
Julian Elischer
f2bb1cae36
Part one of undating the bluetooth code to the newest version
...
Submitted by: Maksim Yevmenkin <m_evmenkin@yahoo.com>
Approved by: re@
2003-05-10 21:44:42 +00:00
Warner Losh
a163d034fa
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
Alfred Perlstein
44956c9863
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
...
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
2003-01-21 08:56:16 +00:00
Julian Elischer
878ed22696
The second try a committing the bluetooth code
...
Has been seen to work on several cards and communicating with
several mobile phones to use them as modems etc.
We are still talking with 3com to try get them to allow us to include
the firmware for their pccard in the driver but the driver is here..
In the mean time
it can be downloaded from the 3com website and loaded using the utility
bt3cfw(8) (supplied) (instructions in the man page)
Not yet linked to the build
Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
Approved by: re
2002-11-20 23:01:59 +00:00