summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright.des2009-10-191-1/+1
|
* Remove redundant $FreeBSD$.des2009-10-191-2/+0
|
* Support the specification of a range of destination ports e.g.luigi2009-10-151-51/+88
| | | | | | | | | | | | | | | | | | | | | | | | netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration] This is useful to test the behaviour of systems that do some kind of flow classifications and so exhibit different behaviour depending on the number of flows that hit them. I plan to add a similar extension to sweep on a range of IP addresses, so we can issue a single command to flood (obviously, for testing purposes!) a number of different destinations. When there is only one destination, we do a preliminary connect() of the socket so we can use send() instead of sendto(). When we have multiple ports, the socket is not connect()'ed and we do a sendto() instead. There is a performance hit in this case, as the throughput on the loopback interface (with a firewall rule that blocks the transmission) goes down from 900kpps to 490kpps on my test machine. If the number of different destinations is limited, one option to explore is to have multiple connect()ed sockets. MFC after: 1 month
* A small change to avoid calling gettimeofday() too oftenluigi2009-10-151-4/+19
| | | | | | | | | | | | | | | | | (hardwired to once every 20us at most). I found out that on many machines round here, i could only get 300-400kpps with netsend even on loopback and a 'deny' rule in the firewall, while reducing the number of calls to gettimeofday() brings the value to 900kpps and more. This code is just a quick fix for the problem. Of course it could be done better, with proper getopt() parsing and the like, but since this applies to the entire program i'll postpone that to when i have more time. Reviewed by: rwatson MFC after: 1 month
* Tweaks for sigqueue tests:kib2009-10-112-12/+27
| | | | | | | | | | | - slightly adjust code for style, sort headers. - in sigqtest2, print received signals, to make it easy to see why test failed. - in sigqtest2, job_control_test(), cover a race by adding sleep after child stopped itself to allow for SIGCHLD due to stop and exit to not be coalesced. MFC after: 2 weeks
* Fix build on amd64.delphij2009-10-071-4/+5
| | | | | PR: misc/139409 Submitted by: gk
* sh: Send the "xyz: not found" message to redirected fd 2.jilles2009-10-061-0/+29
| | | | | | | | | | This also fixes that trying to execute a non-regular file with a command name without '/' returns 127 instead of 126. The fix is rather simplistic: treat CMDUNKNOWN as if the command were found as an external program. The resulting fork is a bit wasteful but executing unknown commands should not be very frequent. PR: bin/137659
* A few regression tests for SOCK_SEQPACKET UNIX domain sockets.rwatson2009-10-054-0/+593
| | | | Sponsored by: Google
* Regression tests for r197752 (handling of empty/NULL buffers).das2009-10-041-1/+20
|
* Replace the name of the sysctl to security.bsd.map_at_zero and to bebz2009-10-021-13/+13
| | | | | consistent updated the name of the variable as well, after the change in r197711.
* sh: Disallow mismatched quotes in backticks (`...`).jilles2009-10-011-0/+7
| | | | | | | | | Due to the amount of code removed by this, it seems that allowing unmatched quotes was a deliberate imitation of System V sh and real ksh. Most other shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh, dash). PR: bin/137657
* Add a simple C program to check mmap calls to various different addresses.bz2009-09-272-0/+102
| | | | | | | | | | The most important test is the mapping fixed at address 0 depending on the new sysctl. Things will be updated and possibly converted to m4/.t style once the details about the kernel patch will be shaken out. Submitted by: simon (initial version)
* - When we run our trap cleanup handler, echo that we are running thissimon2009-09-271-1/+4
| | | | | | | | | | handler to make it more clear why we are 'suddenly' running df, umount, and mdconfig. - Remove trap handler again after we have unconfigured the memory device etc. Before we could end up running the trap handler if a later stage failed, which was a bit confusing and not really useful. MFC after: 2 weeks
* Update the includes to two more levels of subdirs.rpaulo2009-09-241-2/+2
| | | | MFC after: 1 week
* Add cross-filesystem regression tests for ACLs.trasz2009-09-233-1/+289
|
* Add ACL fuzzer. It's not used by the regression tests right now,trasz2009-09-231-0/+225
| | | | but I'd prefert to have it here, so it won't get lost.
* - Remove a bogus test: setsockopt() doesn't return a length, getsockopt()jhb2009-09-231-4/+1
| | | | | does. - Use %z to printf a size_t to fix compile on 64-bit platforms.
* IEEE Std 1003.1, 2004 Edition states:dds2009-09-203-0/+6
| | | | | | | | | | | | | "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X
* Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementationdds2009-09-202-0/+5
| | | | | | | | | | | of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X
* Add correct test results.dds2009-09-203-0/+42
|
* Describe how other systems treat this case.dds2009-09-201-1/+5
|
* Allow [ to be used as a delimiter.dds2009-09-201-0/+9
| | | | | Pointed by: Marius Strobl Obtained from: Apple
* The transition to Subversion allows us to rename files withoutdds2009-09-20124-9/+7
| | | | | | repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added.
* Add regression tests for NFSv4 ACL granular permission enforcement.trasz2009-09-079-2/+738
|
* Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changedtrasz2009-09-074-26/+1013
| | | | error messages.
* Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.trasz2009-09-011-2/+1
|
* Add regression test for ACLs on device files - mostly to maketrasz2009-08-311-0/+16
| | | | sure we don't crash on attempt to set ACL on them.
* sh: Fix crash with empty functions (f() { }) introduced in r196483jilles2009-08-281-0/+11
| | | | | | | | | | | | Empty pairs of braces are represented by a NULL node pointer, just like empty lines at the top level. Support for empty pairs of braces may be removed later. They make the code more complex, have inconsistent behaviour (may or may not change $?), are not specified by POSIX and are not allowed by some other shells like bash, dash and ksh93. Reported by: kan
* Add some tests for a fixed bug in an uncommitted patch.jilles2009-08-271-0/+9
| | | | (Trying to get syntax errors for sh -c ':; do' and `:; do`.)
* recognie invalid register namessam2009-08-271-1/+10
|
* Add some tests for poll(2)/shutdown(2) interaction.jilles2009-08-252-2/+205
|
* - Update config to doxygen 1.5.2 (I use this with 1.5.9).netchild2009-08-2419-93/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | - Add linprocfs and linsysfs to the linuxulator dox. - Take the generated includes from the .m files from a subdirectory instead of putting everything into $(.OBJDIR). This imporves the human readbility of the source directory contents a lot, if you do not create a separate OBJDIR. - Assume UTF-8 encoding for every input file. - Strip the source and dest path from the output, we are not interested in the absolute location on the machine where the docs are created, relative the the root of the FreeBSD source is what interests us. - Exclude .svn directories. - Switch to alphabetic index. - Use one line per INCLUDE_PATH member in the common dox-config. - Bump the __FreeBSD__ version to 9. [MFC: to 8] - Switch from hardcoded .m files to an run-time generated one. Takes a little bit more time to get started with actual work, but at least is more future-proof. If you generate dox for all subsystems, the time to find all .m files in the source is magnitutes lower than producing the docs. - Make the *DEST_PATH overidable from the environment. This allows to produce the output directly in the docroot of a webserver. - Fix the path when telling the user where he can find the API docs. MFC after: 1 month (after 8.0)
* sh: Fix crash when undefining or redefining a currently executing function.jilles2009-08-231-0/+4
| | | | | | | | Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive in interactive mode, this will be fixed later by changing SIGINT handling. PR: bin/137640
* Bugfix: all requests for creating vnets via vimage -c were alwayszec2009-08-211-4/+2
| | | | | | | | | | reported as failures, even if the actual library / system call would succeed, because error message would be reported if the return value from jail_setv() call was >= 0, and if not, then if that same value was < 0, i.e. always. The correct behavior is to abort (only) if jail_setv() returns < 0. Approved by: re (rwatson), julian (mentor)
* vimage(8) is a legacy CLI interface for managing jails associated withzec2009-08-203-175/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network stack instances, which is provided for compatibility with older applications. This change brings it back to life in a followup to the initial conversion of vimage to use the new jail(4) userland-kernel API: - when creating vimages via "vimage -c", by default turn on a few options expected by legacy applications, such as allow operations on raw sockets, FS mounts etc, and allow jail-related parameters to be optionally configured. - introduce the "-m" modifier which allows for configuring jail parameters of existing vimages / vnet-jails. - make "vimage name command ..." actually work. - when reassigning ifnets to vnets using "vimage -i", attempt to rename the ifnet as "ethXXX" on arrival in the target vnet. Several legacy applications are known to depend heavily on such behavior. - vimage -l lists only jails associated with vnets. The output is sorted using vimage / jail names as keys. - vimage -l by default searches only the current level in the jail hierarchy. Recursive listing can be requested via -r switch. - vimage -l by default prints only jail names on each line, making such output suitable for pipelining to other commands. More verbose output can be obtained via -v switch, and even more jail specific information will be displayed if -j switch is turned on. - there's no need to build vimage as statically linked, so update the Makefile accordingly. - update the vimage.8 man page. Approved by: re (rwatson), julian (mentor) MFC after: immediately
* Start respecting WITHOUT_INET6.bz2009-08-134-7/+40
| | | | | | | | | | | | | | Make regression/priv compile again after the multi-IP jail changes. Note that we are still using the legacy jail(2) rather than the jail_set(2)/jail(3) syscall. Add an IPv4, and an IPv6 loopback address in case we compile with INET6 enabled. Make the priv_vfs_extattr_system compile on amd64 as well using the proper length modifier to printf(3) for ssize_t. Reviewed by: rwatson Approved by: re (kib)
* Fix syntax error, makefile comments start with #.kib2009-07-251-1/+1
| | | | | Submitted by: bde Approved by: re (kensmith)
* Update for vaps:sam2009-07-249-114/+32
| | | | | | | | | o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap o move channel change work before marking ifnet up to avoid churning the state machine o change default ifnet name to "wlan0" Approved by: re (kensmith)
* update for recent mesh additionssam2009-07-211-1/+17
| | | | Approved by: re (kib)
* Remove the interim vimage containers, struct vimage and struct procg,jamie2009-07-172-62/+94
| | | | | | and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor)
* Test suite for the poll(2)/select(2) on fifos, pipes and sockets,kib2009-07-1214-0/+883
| | | | | | | and recorded results for several operating systems. Submitted by: bde Approved by: re (kensmith)
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-1111-1/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* Fix some uninitialise variables.brian2009-07-082-1/+102
| | | | | | | PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks
* Fix fpathconf(3) on fifos, in effect making ls(1) properlytrasz2009-07-021-0/+34
| | | | | | | | | display '+' on them. Taken from kern/125613, with cosmetic changes. PR: kern/125613 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* Add some tests for r194975 and r194977.jilles2009-06-251-0/+35
| | | | Approved by: ed (mentor) (implicit)
* - Make pprint print through fd 3, so it can be used in customisationn_hibma2009-06-251-1/+6
| | | | | | | functions to print something to the screen. - Prefix each line with the running time (bikeshed). Submitted by: Rick van der Zwet (Wireless Leiden)
* Designate special builtins as such in command -V and type.jilles2009-06-241-1/+1
| | | | | | Also document various properties of special builtins that we implement. Approved by: ed (mentor) (implicit)
* Add test for r190698.jilles2009-06-241-0/+7
| | | | | Submitted by: Eygene Ryabinkin Approved by: ed (mentor) (implicit)
* add a link named athpeek since my fingers keep typing itsam2009-06-241-0/+1
|
* read back the written value and displaysam2009-06-241-2/+1
|
OpenPOWER on IntegriCloud