aboutsummaryrefslogtreecommitdiff
path: root/tools/tools
Commit message (Collapse)AuthorAgeFilesLines
* Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"Cy Schubert3 days1-1/+0
| | | | | | | | This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversing changes made to a10253cffea84c0c980a36ba6776b00ed96c3e3b. A mismerge of a merge to catch up to main resulted in files being committed which should not have been.
* wpa: Import wpa_supplicant/hostapd commit 14ab4a816Cy Schubert3 days1-0/+1
| | | | | | This is the November update to vendor/wpa committed upstream 2021-11-26. MFC after: 1 month
* git hooks: Remove MFHMateusz Piotrowski3 days1-1/+0
| | | | | | | The ports tree now has its own prepare-commit-msg Git hook, so there is not need to keep ports-specific metadata fields around in the src tree. Differential Revision: https://reviews.freebsd.org/D29860
* syscalls: struct ucontext4 -> struct freebsd4_ucontextBrooks Davis13 days1-1/+1
| | | | | | This aligns with struct freebsd4_ucontext32 in freebsd32. Reviewed by: kib
* nanobsd/rescue: Catch up to 20210907 OpenSSH importWarner Losh2021-11-192-9/+9
| | | | Sponsored by: Netflix
* nanobsd: remove psuedo-terminals from ttysWarner Losh2021-11-192-1026/+0
| | | | | | Yowsa! Another review mentioned this in passing... Only 10 years late. Sponsored by: Netflix
* NanoBSD/rescue: Update to 20200214 OpenSSH configuration filesJose Luis Duran2021-11-192-32/+39
| | | | No functional change intended.
* git-arc: with "create" allow to specify parent of the first commitGleb Smirnoff2021-11-192-3/+11
| | | | | Reviewed by: markj Differential revision: https://reviews.freebsd.org/D33045
* git-arc: document "create" command optionsGleb Smirnoff2021-11-191-0/+12
| | | | Differential revision: https://reviews.freebsd.org/D33045
* crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes.John Baldwin2021-10-061-2/+2
| | | | | | | | | | | | | | This is useful for WireGuard which uses a nonce of 8 bytes rather than the 12 bytes used for IPsec and TLS. Note that this also fixes a (should be) harmless bug in ossl(4) where the counter was incorrectly treated as a 64-bit counter instead of a 32-bit counter in terms of wrapping when using a 12 byte nonce. However, this required a single message (TLS record) longer than 64 * (2^32 - 1) bytes (about 256 GB) to trigger. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32122
* cryptocheck: Support multiple IV sizes for AES-CCM.John Baldwin2021-10-061-80/+156
| | | | | | | | | | By default, the "normal" IV size (12) is used, but it can be overriden via -I. If -I is not specified and -z is specified, issue requests for all possible IV sizes. Reviewed by: markj Sponsored by: Chelsio Communications, The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32110
* ncurses: chase dependency changes in the source treeBaptiste Daroussin2021-10-042-2/+2
| | | | Differential Revision: https://reviews.freebsd.org/D32098
* nemtap: lb app: Validate ihl field when hashing packetVincenzo Maffione2021-09-261-1/+3
| | | | MFC after: 1 week
* nanobsd: Provide empty routines for new embedded schemeWarner Losh2021-09-161-0/+8
| | | | | | | | | calculate_partitioning and create_code_slice are now required in nanobsd.sh. While things work with the ones provided by legacy.sh, it's fighting embedded/common's other actions. Instead, replace them with stubs. Sponsored by: Netflix
* git-arc: allow word splitting in build_commit_list()Robert Wing2021-09-061-1/+2
| | | | | | | | | | git-rev-list expects commits to be listed separately, allow word splitting and disable shellcheck SC2086 when using git-rev-list to build the commit list. Fixes: 4fd0c6ab1a9e ("Fix most shellcheck warnings in git-arc.sh") Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D31838
* nanobsd: Correct a typo in a commentGordon Bergling2021-08-091-1/+1
| | | | | | - s/partion/partition/ MFC after: 3 days
* pkgbase: move locales into their own packageBaptiste Daroussin2021-08-031-0/+2
| | | | | | | | The only exception here being C.UTF-8 as this is the default locales so it needs to always be installed Reviewed by: pkgbase (emaste) Differential Revision: https://reviews.freebsd.org/D31397
* locales: fix abuse of bsd.dirs.mkBaptiste Daroussin2021-08-031-2/+2
| | | | | | | | the way SAMEDIRS was defined was an abuse of bsd.dirs.mk resulting in all the directory to be created in one single command, but DESTDIR is only prepend once on the first element of the list Switch to the properway to use bsd.dirs.mk
* locales: stop hardcoding the directories in the mtreeBaptiste Daroussin2021-08-031-0/+2
| | | | | | | | | The framework knows how to create directories and tag them properly for a the creation of a mtree, not need to hardcode all the locales entries in bsd.usr.mk This simplifies addition of new locales but also allow people building with WITHOUT_LOCALES to end up with a directory full of empty files
* nanobsd: adopt dhcpd to latest conventionsWarner Losh2021-07-301-3/+3
| | | | | | | Adopt the dhcpd build to use nanobsd-build top level directory that other nanobsd builds are using. Sponsored by: Netflix
* Fix the pattern for changing PermitRootLoginJose Luis Duran2021-07-241-1/+1
| | | | | | | | | | The previous pattern had the (harmless) side-effect of duplicating the entry in the config file. No functional change intended. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/510
* locale: Add Farsi/Persian localesFaraz Vahedi2021-07-232-1/+3
| | | | | | MFC after: 3 weeks Reviewed by: farrokhi Differential Revision: https://reviews.freebsd.org/D24359
* locales: upgrade CLDR to 39.0 and Unicode to 13.0.0Baptiste Daroussin2021-07-231-0/+5931
| | | | | MFC after: 3 weeks Relnotes: yes
* locales: prepare CLDR update to v39.0 and Unicode to 13.0.0Baptiste Daroussin2021-07-231-21/+11
| | | | | Note that rebuilding the cldr tool is not necessary anymore, also note that the sources are not anymore provided along with the other distfiles
* locales: only generate unicode localesBaptiste Daroussin2021-07-234-184/+14
|
* nanobsd: fix typo in NANO_WORLDDIRYann Kerherve2021-07-201-1/+1
| | | | | Reviewed by: imp PR: 257299
* nanobsd: Bump rescue size to 8GBWarner Losh2021-07-151-4/+6
| | | | | | | | Bump the rescue size from 1.2GB to just shy of 8GB as things have grown somewhat. Also make it possible to build rescue somewhere other than /usr/src. Sponsored by: Netflix
* pcengines: Fix kernel configWarner Losh2021-07-152-65/+65
| | | | | | | Update the old ALIX config to remove devices, add iflib and remove trailing white space. Sponsored by: Netflix
* nanobsd: default to -j $hw.ncpuWarner Losh2021-07-151-1/+3
| | | | | | | For paralllel builds, default to using all the CPUs on the system. The old default of -j 3 was too few. Sponsored by: Netflix
* nanobsd: Use gpart and create code image before full disk imageArrigo Marchiori2021-07-153-50/+103
| | | | | | | | | | | | | | | | | | | | | | The attached patch brings two main changes to the nanobsd script: 1- gpart is used instead of fdisk; 2- the code image is created first, and then used to ``assemble'' the full disk image. The patch was first proposed on the freebsd-embedded list: http://lists.freebsd.org/pipermail/freebsd-embedded/2012-June/001580.html and is currently under discussion: http://lists.freebsd.org/pipermail/freebsd-embedded/2014-January/002216.html Another effect is that the -f option ("suppress code slice extraction") now imples the -i option ("suppress disk image build"). imp@ applied Patch by hand to new legacy.sh, plus tweaked for NANO_LOG vs NANO_OBJ confusion in original. PR: 186030 Reviewed by: imp@ Differential Revision: https://reviews.freebsd.org/D31102
* nanobsd: enhance fill_pkg.shLev A. Serebryakov2021-07-111-41/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NanoBSD has helper script "fill_pkg.sh" which links all packages and ther dependencies from "package dump" (like /usr/ports/packages/All) to specified director. fill_pkg.sh has some limitations: 1) It needs ports tree, which should have exactly same versions as "package dump". 2) It requires full paths to needed ports, including "/usr/ports" part. 3) It has assumptions about Nano Package Dir (it assumes, that it specified rtelative to current directory). 4) It does not have any diagnostics (almost). This PR enhances "fill_pkg.sh" script in several ways: 1) Nano package dir could be absolute path. 2) Script understands four ways to specify "root" ports/packages: (a) Absolute directory with port (old one) (b) Relative directory with port, relative to ${PORTSDIR} or /usr/ports (c) Absolute path to file with package (with .tbz suffix) (d) Name of package in dump dir, with or without .tbz suffix These ways can be mixed in one call. Dependencies for packages are obtained with 'pkg_info -r' call, and are searched for in same directory as "parent" package. Dependencies for ports are obtained in old way from port's Makefile. 3) Three levels of diagnostic (and -v option, could be repeated) are added. 4) All path variables are enclosed in quotes, to make script work with paths, containing spaces. Note: imp merged in the changes to fill_pkg.sh since this has been a PR. PR: 151695 Reviewed by: imp@ MFC After: 3 days Differential Revision: https://reviews.freebsd.org/D31101
* nanobsd: remove sparc64 embedded exampleWarner Losh2021-07-082-45/+0
| | | | | | | | Remove the qemu sparc64 example. It was only ever compile tested since qemu had issues booting FreeBSD/sparc64. Also remove obsolete info about armv5 configs removed long ago. Sponsored by: Netflix
* sysbuild: Also copy /var/db/zoneinfoJose Luis Duran2021-06-301-8/+12
| | | | | | | | Per tzsetup(8), /etc/localtime and /var/db/zoneinfo go hand in hand. Remove extra white spaces as well. Reviewed by: imp@, phk@ (informal no objection email) Pull Request: https://github.com/freebsd/freebsd-src/pull/486
* netmap: pkt-gen: fix compilation issueVincenzo Maffione2021-06-151-1/+1
| | | | | | | | | | Remove stray characters preventing the source code from being compiled. Fixes: 20d684ecc9d7 ("pkt-gen: Allow limiting received packets"). Submitted by: ar_semihalf.com Reviewed by: vmaffione Differential Revision: <https://reviews.freebsd.org/D###>
* tools: Remove obsolete svn information.Warner Losh2021-06-114-502/+1
| | | | | | Reviewed by: jhb@ Differential Revision: https://reviews.freebsd.org/D30720 Sponsored by: Netflix
* [athstats] Add a tag to listen for beacon stuffAdrian Chadd2021-05-221-0/+3
| | | | I'm debugging weird beacon issues and thus here we are.
* [athstats] Add some (but not all, sigh) missing statistics.Adrian Chadd2021-05-221-5/+33
| | | | | This adds a few recent statistics, including TSFOOR that I just added to the driver.
* pkt-gen: Allow limiting received packetsAllan Jude2021-05-221-3/+4
| | | | | | | | | | Makes pkg-gen quit after having received N packets, the same way it already supports doing for sent packets. Reviewed by: vmaffione Sponsored by: Klara Inc. MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D30266
* git-arc(1): fix usage formatting for stage commandMitchell Horne2021-05-141-3/+3
| | | | | | | The branch argument is conditional on the -b flag. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D30262
* wlanstats: fix buildSofian Brabez2021-04-201-1/+1
| | | | | | | Add -Wno-cast-align to the CFLAGS to fix the build of wlanstats Approved by: adrian MFC after: 1 week
* iwnstats: fix build with clang and allow install under /usr/local/sbinSofian Brabez2021-04-202-15/+13
| | | | | | | | | | | | | | | | | | | | | iwnstats was not compiling because of some issues raised by the clang compiler due to -Werror. As a tool it is not connected to world build. Add missing field "barker_mrc" initialization in struct iwn_sensitivity_limits for -Wmissing-field-initializers, remove unused pointer *is on iwn_stats_*_print functions and unused variables for -Wunused-parameter and -Wunused-variable. The value for field "barker_mrc" of struct iwn2030_sensitivity_limits was obtained from linux 3.2 wireless/iwlwifi driver code (iwl-2000.c:115 .barker_corr_th_min_mrc = 390). Also set BINDIR in Makefile to make it possible to install under /usr/local/sbin/iwnstats as it require super user. Reviewed by: adrian MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29800
* OCF: Remove support for asymmetric cryptographic operations.John Baldwin2021-04-122-274/+1
| | | | | | | | | | | | There haven't been any non-obscure drivers that supported this functionality and it has been impossible to test to ensure that it still works. The only known consumer of this interface was the engine in OpenSSL < 1.1. Modern OpenSSL versions do not include support for this interface as it was not well-documented. Reviewed by: cem Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29736
* netmap: several typo fixesVincenzo Maffione2021-04-022-2/+2
| | | | No functional changes intended.
* cryptocheck: Expand the set of sizes tested by -z.John Baldwin2021-04-011-3/+9
| | | | | | | | | | Test individual sizes up to the max encryption block length as well as a few sizes that include 1 full block and a partial block before doubling the size. Reviewed by: cem, markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29518
* netmap: bridge: fix transmission in busy-wait modeVincenzo Maffione2021-03-301-7/+17
| | | | | | | | | | In busy-wait mode (BUSYWAIT defined), NIOCTXSYNC should be performed after packets have been moved to the TX ring (rather than before). Before the change, moved packets may stall for an indefinite time in the TX ring. MFC after: 1 week
* netmap: pkt-gen: allow -Z and -z to be used togetherVincenzo Maffione2021-03-301-59/+66
| | | | | | | These options are used for generating random source/destination IP/ports within transmitted packets. MFC after: 1 week
* git-arc.sh: Make it compatible with Ubuntu 18.04Alex Richardson2021-03-251-9/+9
| | | | | | | | | dash does not allow function names containing a ":", so replace it with a '_'. Additionally, Ubunutu 18.04 ships git 2.17 which does not support the `--default false` flag for git config. Reviewed By: markj Differential Revision: https://reviews.freebsd.org/D29374
* Fix most shellcheck warnings in git-arc.shAlex Richardson2021-03-251-74/+75
| | | | | | | Mostly adding quotes and replacing egrep/fgrep with grep -E/grep -F Reviewed By: markj Differential Revision: https://reviews.freebsd.org/D29373
* cryptocheck: Free generated IV after each GMAC test.John Baldwin2021-03-031-0/+1
| | | | | | Reviewed by: cem Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D28753
* cryptocheck: Add support for the Poly1305 digest.John Baldwin2021-03-031-5/+85
| | | | | Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D28758