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.
show more ...
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. T
Remove ifq_drops from struct ifqueue. Now queue drops are accounted instruct ifnet if_oqdrops.Some netgraph modules used ifqueue w/o ifnet. Accounting of queue dropsis simply removed from them. There were no API to read this statistic.Sponsored by: NetflixSponsored by: Nginx, Inc.
Mechanically substitute flags from historic mbuf allocator withmalloc(9) flags within sys.Exceptions:- sys/contrib not touched- sys/mbuf.h edited manually
Retire the MALLOC and FREE macros. They are an abomination unto style(9).MFC after: 3 months
Make ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.Reconnect ng_h(4) back to the build.Reviewed by: kensmithApproved by: re (kensmith)MFC after: 1 month
Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.Approved by: re (rwatson)
Sweep kernel replacing suser(9) calls with priv(9) calls, assigningspecific privilege names to a broad range of privileges. These mayrequire some future tweaking.Sponsored by: nCircle
Sweep kernel replacing suser(9) calls with priv(9) calls, assigningspecific privilege names to a broad range of privileges. These mayrequire some future tweaking.Sponsored by: nCircle Network Security, Inc.Obtained from: TrustedBSD ProjectDiscussed on: arch@Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net>
Use new (inline) functions for calls into driver.
- Use ng_callout() instead of home-grown implementation.Submitted by: emax
/* -> /*- for license, minor formatting changes
Fix broken ng_h4(4). Basically, do not abuse t_sc field and use new t_lscfield created for line disciplne drivers private use. Also add NET_NEEDS_GIANTwarning. For whatever reason ng_tty(4) was fix
Fix broken ng_h4(4). Basically, do not abuse t_sc field and use new t_lscfield created for line disciplne drivers private use. Also add NET_NEEDS_GIANTwarning. For whatever reason ng_tty(4) was fixed but ng_h4(4) was not :(
Fix line discipline switching issues: If opening a new ldisc fails,we have to revert to TTYDISC which we know will successfully openrather than try the previous ldisc which might also fail to open.
Fix line discipline switching issues: If opening a new ldisc fails,we have to revert to TTYDISC which we know will successfully openrather than try the previous ldisc which might also fail to open.Do not let ldisc implementations muck about with ->t_line, and removecode which checks for reopens, it should never happen.Move ldisc->l_hotchar to tty->t_hotchar and have ldisc implementationinitialize it in their open routines. Reset to zero when we enterTTYDISC. ("no" should really be -1 since zero could be a validhotchar for certain old european mainframe protocols.)
Do the dreaded s/dev_t/struct cdev */Bump __FreeBSD_version accordingly.
Missed these in the last commit.Change to C99 structure initialisation for the type method structure.
Address few style issues pointed out by bdeReviewed by: bde, ru
Replace deprecated NG_NODELEN with the new NG_NODESIZ. There is oneproblem here still to be solved: the sockaddr_hci has still a 16 bytefield for the node name. The code currently does not correctl
Replace deprecated NG_NODELEN with the new NG_NODESIZ. There is oneproblem here still to be solved: the sockaddr_hci has still a 16 bytefield for the node name. The code currently does not correctly use thelength field in the sockaddr to handle the address length, sonode names get truncated to 15 characters when put into a sockaddr_hci.
Change double include protection style in headers to matchthe rest of Netgraph code.Reviewed by: imp, ruApproved by: imp (mentor)
Last commit of the bluetooth upgrade. (this patch was forgotten in the firstcommit)Submitted by: Maksim Yevmenkin <[email protected]>Approved by: re@
Part one of undating the bluetooth code to the newest versionSubmitted by: Maksim Yevmenkin <[email protected]>Approved by: re@
Back out M_* changes, per decision of the TRB.Approved by: trb
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
The second try a committing the bluetooth codeHas been seen to work on several cards and communicating withseveral mobile phones to use them as modems etc.We are still talking with 3com to try ge
The second try a committing the bluetooth codeHas been seen to work on several cards and communicating withseveral mobile phones to use them as modems etc.We are still talking with 3com to try get them to allow us to includethe firmware for their pccard in the driver but the driver is here..In the mean timeit can be downloaded from the 3com website and loaded using the utilitybt3cfw(8) (supplied) (instructions in the man page)Not yet linked to the buildSubmitted by: Maksim Yevmenkin <[email protected]>Approved by: re