net: clean up empty lines in .c and .h files
Fix L2CAP ACL packet PB(Packet Boundary) flag for LE PDU.ACL packet boundary flag should be 0 instead of 2 for LE PDU.Some HCI will drop LE packet with PB flag is 2, and if sent,some target may r
Fix L2CAP ACL packet PB(Packet Boundary) flag for LE PDU.ACL packet boundary flag should be 0 instead of 2 for LE PDU.Some HCI will drop LE packet with PB flag is 2, and if sent,some target may reject the packet.PR: 248024Reported by: Greg VReviewed by: Greg V, emaxDifferential Revision: https://reviews.freebsd.org/D25704
show more ...
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorpro
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
Disconnect LE socket when the HCI connection associated is disconnected.
sys/netgraph: spelling fixes in comments.No functional change.
Bluetooth LE Security Management channel support.Add a socket option to block until underlying HCI connection encrypted.Differential Revision: https://reviews.freebsd.org/D3981
Fix rfcomm_sppd regression I could reproduced.To reproduce it, Two machine running FreeBSD andrunrfcomm_sppd -c 3 -Srfcomm_sppd -a ${PEER} -c 3on each side.
Initial Bluetooth LE support.Note that sockaddr_l2cap structure is changed , check socket addressto initialize new structure member and define L2CAP_SOCKET_CHECKEDbefore including ng_btsocket.h
Initial Bluetooth LE support.Note that sockaddr_l2cap structure is changed , check socket addressto initialize new structure member and define L2CAP_SOCKET_CHECKEDbefore including ng_btsocket.hDifferential Revision: https://reviews.freebsd.org/D2021Reviewed by:emax
Fxi a bunch of typos.PR: misc/174625Submitted by: Jeremy Chadwick <[email protected]>
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags within sys.Exceptions:- sys/contrib not touched- sys/mbuf.h edited manually
Node constructor methods are supposed to be called in syscallcontext always. Convert nodes to consistently use M_WAITOK flagfor memory allocation.Reviewed by: julian
Fix typoPR: kern/140590MFC after: 3 days
Properly return error code to the caller. This should fix the followingpanic in ng_l2cap(4).panic: ng_l2cap_l2ca_con_req: ubt0l2cap - could not find connection!While i'm here get rid of few goto
Properly return error code to the caller. This should fix the followingpanic in ng_l2cap(4).panic: ng_l2cap_l2ca_con_req: ubt0l2cap - could not find connection!While i'm here get rid of few goto's.MFC after: 1 week
Retire the MALLOC and FREE macros. They are an abomination unto style(9).MFC after: 3 months
Try to silence Coverity by adding (void) in front of function call.Also add a comment, explaining why return value is not being checked.Requested by: netchildMFC after: 1 week
Fix dangling callout problem in the Bluetooth L2CAP code that leads topanic. The panic happens when outgoing L2CAP connection descriptor isdeleted with the L2CAP command(s) pending in the queue. In
Fix dangling callout problem in the Bluetooth L2CAP code that leads topanic. The panic happens when outgoing L2CAP connection descriptor isdeleted with the L2CAP command(s) pending in the queue. In this case whenthe last L2CAP command is deleted (due to cleanup) and reference counterfor the L2CAP connection goes down to zero the auto disconnect timeoutis incorrectly set. pjd gets credit for tracking this down and committingbandaid.Reported by: Jonatan B <onatan at gmail dot com>MFC after: 3 days
Stop callout before freeing memory, so it won't panic from softclock.Reported by: Jonatan B <[email protected]>MFC after: 3 days
Before freeing memory, assert that there is no pending callout.MFC after: 3 days
Fix typo and check correct (rsp) pointer against the NULL value.Submitted by: Oliver < urnenfel at tiscali dot es >MFC after: 1 day
/* -> /*- for license, minor formatting changes
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: scottlApproved by: julian (mentor),
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: scottlApproved by: julian (mentor), implicitly
Fix kernel build (caused by recent ng_{un}timeout API change)Submitted by: glebius
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>
Switch to using C99 sparse initialisers for the type methods array.Should make no binary difference.Submitted by: Gleb Smirnoff <[email protected]>Reviewed by: Harti Brandt <[email protected]>MFC after: 1 week
Address few style issues pointed out by bdeReviewed by: bde, ru
Make sure Bluetooth stuff can be compiled on amd64Submitted by: ps
12