summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* multiple: Remove 3rd clause from BSD license where approved by theeadler2014-03-145-25/+5
| | | | | | | | | regents and renumber. This patch skips files in contrib/ and crypto/ Acked by: imp Discussed with: emaste
* Remove IPX support.glebius2014-03-148-600/+44
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* Since 32-bit if_baudrate isn't enough to describe a baud rate of a 10 Gbitglebius2014-03-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface, in the r241616 a crutch was provided. It didn't work well, and finally we decided that it is time to break ABI and simply make if_baudrate a 64-bit value. Meanwhile, the entire struct if_data was reviewed. o Remove the if_baudrate_pf crutch. o Make all fields of struct if_data fixed machine independent size. The notion of data (packet counters, etc) are by no means MD. And it is a bug that on amd64 we've got a 64-bit counters, while on i386 32-bit, which at modern speeds overflow within a second. This also removes quite a lot of COMPAT_FREEBSD32 code. o Give 16 bit for the ifi_datalen field. This field was provided to make future changes to if_data less ABI breaking. Unfortunately the 8 bit size of it had effectively limited sizeof if_data to 256 bytes. o Give 32 bits to ifi_mtu and ifi_metric. o Give 64 bits to the rest of fields, since they are counters. __FreeBSD_version bumped. Discussed with: emax Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Make ministat CRNL tolerant by stripping all isspace() from the tailphk2014-03-121-2/+3
| | | | end of input lines.
* install: Use posix_spawnp() for starting strip and improve error messages.jilles2014-03-081-20/+29
|
* Fix compilation for 32-bit machines.glebius2014-03-061-4/+4
|
* - Clarify usage of the -f option.brd2014-03-051-2/+2
| | | | Reviewed by: gjb@, dru@, and Allan Jude
* Hide struct rtentry from userland.glebius2014-03-051-0/+1
|
* - Remove rt_metrics_lite and simply put its members into rtentry.glebius2014-03-053-31/+37
| | | | | | | | | | | | | | | | - Use counter(9) for rt_pksent (former rt_rmx.rmx_pksent). This removes another cache trashing ++ from packet forwarding path. - Create zini/fini methods for the rtentry UMA zone. Via initialize mutex and counter in them. - Fix reporting of rmx_pksent to routing socket. - Fix netstat(1) to report "Use" both in kvm(3) and sysctl(3) mode. The change is mostly targeted for stable/10 merge. For head, rt_pksent is expected to just disappear. Discussed with: melifaro Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Increase MAXLINE to deal with longer paths.marcel2014-03-041-1/+1
| | | | Obtained from: Juniper Networks, Inc.
* Apply fix for lldb not linking after the sparc backend import.dim2014-03-011-0/+6
| | | | | Reported by: se Pointy hat to: dim
* ssh-copy-id: add restorecon calleadler2014-03-011-0/+3
| | | | | | | | In certain situations when creating an authorized_key file on a Linux machine restorecon(1) may need to be called. Therefore, attempt to run it if it exists. MFC After: 1 week Idea from: https://bugzilla.redhat.com/show_bug.cgi?id=739989
* ssh-copy-id: avoid sending private keys; add -v optioneadler2014-03-012-6/+16
| | | | | | | | | | | | To help avoid confusion: when attempting to send a key file check to see if a file of the same name exists with a '.pub' suffix and send that instead. This mimics the behavior of other ssh-copy-id scripts. Add -v passthrough. Reported by: dweimer <dweimer@dweimer.net> Reported by: feld MFC After: 1 week
* Merge from head up to r262536.dim2014-02-262-7/+3
|\
| * Update LLDB snapshot to upstream r202189emaste2014-02-261-2/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Highlights include (upstream revs in parens): - Improvements to the remote GDB protocol client (r196610, r197579, r197857, r200072, and others) - Bug fixes for big-endian targets (r196808) - Initial support for libdispatch (GCD) queues in the debuggee (r197190) - Add "step-avoid-libraries" setting (r199943) - IO subsystem improvements (including initial work on a curses gui) (r200263) - Support hardware watchpoints on FreeBSD (r201706) - Improved unwinding through hand-written assembly functions (r201839) - Handle DW_TAG_unspecified_parameters for variadic functions (r202061) - Fix Ctrl+C interrupting a running inferior process (r202086, r202154) - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler, ELF core files, DWARF debug info, and others. Sponsored by: DARPA, AFRL
| | * Update LLDB bmake build for r262187emaste2014-02-181-2/+3
| | | | | | | | | | | | Sponsored by: DARPA, AFRL
| * | There is no need to prevent iscsictl from adding iSER session when theretrasz2014-02-261-5/+0
| | | | | | | | | | | | | | | | | | | | | is no iSER support in ctld and/or kernel; should the user make that mistake, the output from "iscsictl -L" is enough to determine what the problem is. Sponsored by: The FreeBSD Foundation
* | | Merge from head up to r262415.dim2014-02-233-6/+4
|\ \ \ | |/ /
| * | Capability rights are held by descriptors, not processes.pjd2014-02-231-1/+1
| | | | | | | | | | | | Reported by: jonathan
| * | Fix parsing multiple roots with whitespace between them.theraven2014-02-231-0/+1
| | | | | | | | | | | | Patch by: Patrick Wildt
| * | Simplify the way the end of a singly linked list is followed (for addingbrueffer2014-02-221-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | items), so it is more obvious that we aren't going to indirect through a NULL pointer. PR: 144723 Submitted by: Garrett Cooper <yaneurabeya at gmail.com> Obtained from: NetBSD r1.19 MFC after: 2 weeks
* | | Add Makefile glue to build the Sparc backend libraries and link themdim2014-02-206-0/+36
|/ / | | | | | | into the clang executable.
* | Match our implementation of iconv's inbuf argument.peter2014-02-201-1/+1
| |
* | Import svn-1.8.8.peter2014-02-201-4/+4
| | | | | | | | | | | | | | Highlights: * Security fix for apache server plugin that we don't build or use * sqlite performance improvements. * bug fixes for edge cases and some other less common operations.
* | Make it clear that there are two ways to add a session using iscsictl(8),trasz2014-02-201-1/+16
|/ | | | | | | and some options require configuration file. Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* Update lldb for clang/llvm 3.4 importemaste2014-02-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | This commit largely restores the lldb source to the upstream r196259 snapshot with the addition of threaded inferior support and a few bug fixes. Specific upstream lldb revisions restored include: SVN git 181387 779e6ac 181703 7bef4e2 182099 b31044e 182650 f2dcf35 182683 0d91b80 183862 15c1774 183929 99447a6 184177 0b2934b 184948 4dc3761 184954 007e7bc 186990 eebd175 Sponsored by: DARPA, AFRL
* calendar(1): don't segfault in invalid inputeadler2014-02-171-0/+4
| | | | | | | | | When the user supplies an invalid number of days provide a useful error message instead of segfaulting. PR: bin/186697 Reported by: kaltheat <kaltheat@gmail.com> Submitted by: oliver <oliver@beefrankly.org> (older version)
* Upgrade our copy of llvm/clang to 3.4 release. This version supportsdim2014-02-1630-477/+216
| | | | | | | | | | | | | | | | | all of the features in the current working draft of the upcoming C++ standard, provisionally named C++1y. The code generator's performance is greatly increased, and the loop auto-vectorizer is now enabled at -Os and -O2 in addition to -O3. The PowerPC backend has made several major improvements to code generation quality and compile time, and the X86, SPARC, ARM32, Aarch64 and SystemZ backends have all seen major feature work. Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.4/docs/ReleaseNotes.html> <http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html> MFC after: 1 month
* Mention that rctl(8) was sponsored by the Foundation.trasz2014-02-161-3/+4
| | | | Sponsored by: The FreeBSD Foundation
* Rework rctl(8) manpagebdrewery2014-02-151-55/+135
| | | | | | | | | | | | | | | | | | | | | | | | - Note that kernel options are required - Shift parameters around in SYNOPSIS to make it more clear that there are different modes - For all literal symbols such as 'process' or 'loginclass' or 'wallclock', etc, make them into bold symbols with .Sy - For each subject:subject-id:etc: use .Em to underline to make it more clear they relate to the rule syntax - Document how devd(8) support works - Move RSS warning to BUGS and replace RSS with 'memoryuse' since 'RSS' is not defined in the manpage - Add more examples around listing existing rules - Make rule syntax into a list to improve readability - Add a list of subjects and their corresponding subject-id same as RESOURCES/ACTIONS have lists - Note that rctl(8) takes affect on all current and future processes - Note that amount can take human numbers - Add reference to login.conf(5) in few places login class is mentioned Reviewed by: trasz Approved by: bapt (mentor) MFC after: 1 week
* Remove mention of minimum password length and upper/lower case checking,wblock2014-02-141-19/+3
| | | | | | | | | | patch supplied by Allan Jude <freebsd@allanjude.com>. Add xref to pam_passwdqc(8), where that testing is now done. PR: docs/184482 Submitted by: Ryan Gerstenkorn <ryan_gerstenkorn@fastmail.fm> Reviewed by: jilles, eadler MFC after: 3 days
* Whenever flowtable lookup fails, we do route lookup and then try toglebius2014-02-141-1/+3
| | | | | | | | | | | | | | | | | | insert flow entry. During the route lookup the critical section is exited. It may happen, that after route lookup we will be executed on an other CPU that already has such flowentry. Before this change we simply freed the flowentry and returned to ip_output() with failure. Actually there is nothing wrong with using previously allocated flow entry, updating it properly. Thus, make flowentry_insert() return the new either old fle, and make use of it. Count reuses as "collisions" and real inserts as "inserts". Reviewed by: adrian Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Reword.adrian2014-02-141-1/+1
| | | | Suggestion: glebius
* Don't insert a flowtable entry if the lle isn't yet valid.adrian2014-02-141-0/+1
| | | | | | | | | | | | | | | | | | Some of the collisions that are occuring are due to flowtable lookups that succeed but have an invalid lle - typically because the L2 adjacency lookup hasn't completed. This would lead to a follow-up insert which would then fail (ie, collision) and the code would fall through to doing a slow-path L2/L3 lookup in the netinet/netinet6 code. This patch simply aborts storing a new flowtable entry if the lle isn't yet valid. Whilst I'm here, add a new pcpu counter for the item so the number of failures can be tracked separately from generic "collisions." Reviewed by: glebius MFC after: 10 days Sponsored by: Netflix, Inc.
* Fix world build WITHOUT_PF.glebius2014-02-122-1/+9
| | | | Sponsored by: Nginx, Inc.
* Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as anjhb2014-02-112-1/+7
| | | | | | | explicit object type. Reviewed by: kib MFC after: 1 week
* Make iscsictl(8) properly handle (optional) semicolons in iscsi.conf,trasz2014-02-102-1/+5
| | | | | | instead of ignoring them and echoing them to stdout. Sponsored by: The FreeBSD Foundation
* Simplify.trasz2014-02-101-22/+22
| | | | Sponsored by: The FreeBSD Foundation
* Remove unused variable.trasz2014-02-101-2/+0
| | | | Sponsored by: The FreeBSD Foundation
* Yacc cleanup; no functional changes.trasz2014-02-101-33/+33
| | | | Sponsored by: The FreeBSD Foundation
* mdoc: minor paragraph fixes.joel2014-02-086-7/+1
|
* Correct example.joel2014-02-081-2/+2
| | | | | Submitted by: Jason McIntyre <jmc@kerhand.co.uk> Thomas Klausner <wiz@netbsd.org>
* o Revamp API between flowtable and netinet, netinet6.glebius2014-02-074-3/+87
| | | | | | | | | | | | | | | | | | | | | | | | - ip_output() and ip_output6() simply call flowtable_lookup(), passing mbuf and address family. That's the only code under #ifdef FLOWTABLE in the protocols code now. o Revamp statistics gathering and export. - Remove hand made pcpu stats, and utilize counter(9). - Snapshot of statistics is available via 'netstat -rs'. - All sysctls are moved into net.flowtable namespace, since spreading them over net.inet isn't correct. o Properly separate at compile time INET and INET6 parts. o General cleanup. - Remove chain of multiple flowtables. We simply have one for IPv4 and one for IPv6. - Flowtables are allocated in flowtable.c, symbols are static. - With proper argument to SYSINIT() we no longer need flowtable_ready. - Hash salt doesn't need to be per-VNET. - Removed rudimentary debugging, which use quite useless in dtrace era. The runtime behavior of flowtable shouldn't be changed by this commit. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Let units deal with Gas Mark and Stufe.dwmalone2014-02-061-0/+2
|
* Print the MD5 signature information introduced in r221023 in thebz2014-02-051-0/+11
| | | | | | TCP statistics output. MFC after: 3 weeks
* Use the DELTA() macro to tidy the server-side interval stats code a bit.jhb2014-02-051-18/+9
| | | | MFC after: 2 weeks
* Partially revert r52493 and change client side interval statistics tojhb2014-02-051-17/+18
| | | | | | | | report the actual number of RPCs issued, not the theoretical number that would be issued if all caching was disabled. Reviewed by: rmacklem MFC after: 2 weeks
* Merge mdocml v1.12.3 into headuqs2014-02-011-1/+1
| | | | MFC after: 2 weeks
* Merge from CheriBSD:brooks2014-01-303-3/+16
| | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL
* Don't build BSDL dtc if the GPL dtc is enabled.imp2014-01-291-1/+4
|
OpenPOWER on IntegriCloud