aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Change the printf format string to match the variable type to quietJohn Baldwin2009-06-081-2/+2
| | | | | | | warnings. Notes: svn path=/head/; revision=193728
* Permit the specification of bandwidth values withinLuigi Rizzo2009-06-082-40/+72
| | | | | | | | | | | | "profile" files (bandwidth is mandatory when using a profile, so it makes sense to have everything in one place). Update the manpage accordingly. Submitted by: Marta Carbone Notes: svn path=/head/; revision=193715
* add a missing format in a printfLuigi Rizzo2009-06-081-1/+1
| | | | | | | | | Detected building with gcc 4.3.3 MFC after: 3 days Notes: svn path=/head/; revision=193702
* Make the size (-s) and start (-b) parameters of the add verb optional.Marcel Moolenaar2009-06-081-2/+126
| | | | | | | The missing parameter(s) are automatically filled-in. Notes: svn path=/head/; revision=193673
* Fix and add a workaround on an issue of EtherIP packet with reversedHiroki Sato2009-06-072-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version field sent via gif(4)+if_bridge(4). The EtherIP implementation found on FreeBSD 6.1, 6.2, 6.3, 7.0, 7.1, and 7.2 had an interoperability issue because it sent the incorrect EtherIP packets and discarded the correct ones. This change introduces the following two flags to gif(4): accept_rev_ethip_ver: accepts both correct EtherIP packets and ones with reversed version field, if enabled. If disabled, the gif accepts the correct packets only. This flag is enabled by default. send_rev_ethip_ver: sends EtherIP packets with reversed version field intentionally, if enabled. If disabled, the gif sends the correct packets only. This flag is disabled by default. These flags are stored in struct gif_softc and can be set by ifconfig(8) on per-interface basis. Note that this is an incompatible change of EtherIP with the older FreeBSD releases. If you need to interoperate older FreeBSD boxes and new versions after this commit, setting "send_rev_ethip_ver" is needed. Reviewed by: thompsa and rwatson Spotted by: Shunsuke SHINOMIYA PR: kern/125003 MFC after: 2 weeks Notes: svn path=/head/; revision=193664
* Allow humanized numbers for LBAs, as well as partition indices forMarcel Moolenaar2009-06-073-21/+120
| | | | | | | | | gpart(8). LBAs in particular are ugly. The ganularity is a sector, but users expect byte granularity when specifying the size or offset with a SI unit. Handle LBAs specially to deal with this. Notes: svn path=/head/; revision=193648
* Several ipfw options and actions use a 16-bit argument to indicateLuigi Rizzo2009-06-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | pipes, queues, tags, rule numbers and so on. These are all different namespaces, and the only thing they have in common is the fact they use a 16-bit slot to represent the argument. There is some confusion in the code, mostly for historical reasons, on how the values 0 and 65535 should be used. At the moment, 0 is forbidden almost everywhere, while 65535 is used to represent a 'tablearg' argument, i.e. the result of the most recent table() lookup. For now, try to use explicit constants for the min and max allowed values, and do not overload the default rule number for that. Also, make the MTAG_IPFW declaration only visible to the kernel. NOTE: I think the issue needs to be revisited before 8.0 is out: the 2^16 namespace limit for rule numbers and pipe/queue is annoying, and we can easily bump the limit to 2^32 which gives a lot more flexibility in partitioning the namespace. MFC after: 5 days Notes: svn path=/head/; revision=193516
* remove a printf that was only useful for debugging.Luigi Rizzo2009-06-051-2/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=193500
* Bump document date.Benno Rice2009-06-051-1/+1
| | | | | | | Pointed out by: trhodes Notes: svn path=/head/; revision=193480
* Perform some checking on the requested list of modules to warn people if theyBenno Rice2009-06-042-9/+142
| | | | | | | | | | | | try to load modules by filename out of the current directory where the module in question may be further up the module path or not in the module path at all. Also add some text to the man page to help explain what's going on. Sponsored by: Redacted Consulting Notes: svn path=/head/; revision=193475
* style(9) pass prior to further changes.Benno Rice2009-06-041-32/+37
| | | | | | | Sponsored by: Redacted Consulting Notes: svn path=/head/; revision=193473
* track rename of CSA ieSam Leffler2009-06-041-1/+1
| | | | | | | Submitted by: wxs Notes: svn path=/head/; revision=193447
* Correct comment.Pawel Jakub Dawidek2009-06-031-1/+1
| | | | Notes: svn path=/head/; revision=193372
* Initialize iov and iovlen before use.Pawel Jakub Dawidek2009-06-021-0/+2
| | | | | | | Reported by: Lucius Windschuh <lwindschuh@googlemail.com> Notes: svn path=/head/; revision=193333
* - Use volatile for signal variables.Ulf Lilleengen2009-06-021-2/+2
| | | | | | | Suggested by: Jaakko Heinonen <jh -at- saunalahti.fi> Notes: svn path=/head/; revision=193325
* Code for parsing nmount options in kernel was mergedCraig Rodrigues2009-06-011-1/+1
| | | | | | | | | to stable/7 branch in r190315. So only resort to fallback_mount() could which passes struct nfs_args to kernel in kernel versions less than 702100. Notes: svn path=/head/; revision=193191
* - Use sig_atomic_t for signal handler variables.Ulf Lilleengen2009-05-291-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=193059
* - Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOTPawel Jakub Dawidek2009-05-293-40/+54
| | | | | | | | | | | flag from a mount flag to FS-specific flag. - Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also accepted for now. - Add an example of how to mount a snapshot. Notes: svn path=/head/; revision=193051
* Make dump -W show the level correctly.Brian Somers2009-05-291-1/+1
| | | | | | | | | PR: 129110 Submitted by: Mike Voorhis <mvoorhis@cs.wpi.edu> MFC after: 3 weeks Notes: svn path=/head/; revision=193022
* Add support for the experimental nfs client to mount_nfs. TheRick Macklem2009-05-274-8/+173
| | | | | | | | | | | | | | | experimental client is used when the fstype is "newnfs" or the "nfsv4" option is specified. It includes the addition of the option: gssname - to specify a client side initiator host based principal name which is specific to NFSv4. It also includes a change to mount.c, so that it knows about mount_newnfs, but not mount_nfs4. Reviewed by: dfr Approved by: kib (mentor) Notes: svn path=/head/; revision=192930
* Bump the document date to reflect the 'p' command enhancements.Brian Somers2009-05-251-1/+1
| | | | | | | Suggested by: trhodes Notes: svn path=/head/; revision=192772
* o Fix typo in the example.Maxim Konovalov2009-05-251-1/+1
| | | | | | | | | PR: docs/134930 Submitted by: Alex Keda MFC after: 1 week Notes: svn path=/head/; revision=192747
* Enhance the 'p' command so that it understands size qualifiers (K/M/G) andBrian Somers2009-05-252-6/+118
| | | | | | | | | | | so that it understands '*' as 'DTRT'. PR: 68312 Submitted by: Rene de Vries - rene at tunix dot nl (mostly) MFC after: 3 weeks Notes: svn path=/head/; revision=192745
* Make 'struct acl' larger, as required to support NFSv4 ACLs. ProvideEdward Tomasz Napierala2009-05-221-1/+1
| | | | | | | | | compatibility interfaces in both kernel and libc. Reviewed by: rwatson Notes: svn path=/head/; revision=192586
* Remove the unmaintained University of Michigan NFSv4 client from 8.xRobert Watson2009-05-227-753/+6
| | | | | | | | | | prior to 8.0-RELEASE. Rick Macklem's new and more feature-rich NFSv234 client and server are replacing it. Discussed with: rmacklem Notes: svn path=/head/; revision=192578
* Add links to libgeom(3) where appropriate.Edward Tomasz Napierala2009-05-191-0/+1
| | | | Notes: svn path=/head/; revision=192376
* Do no spam the ifconfig output for the aggregated interface with 'laggdev ↵Andrew Thompson2009-04-301-2/+1
| | | | | | | laggX'. Notes: svn path=/head/; revision=191693
* Slightly improve gjournal documentation.Edward Tomasz Napierala2009-04-293-2/+8
| | | | | | | Reviewed by: pjd Notes: svn path=/head/; revision=191656
* Let pflogd's Makefile just use WARNS instead of changing CFLAGS.Ed Schouten2009-04-231-1/+2
| | | | | | | | | This change allows me to disable -Werror by using NO_WERROR. Right now I can't build pflogd using Clang, because Clang generates more warnings when passing -Wall. Notes: svn path=/head/; revision=191415
* Correct the information about when the respective functionality firstChristian Brueffer2009-04-231-1/+1
| | | | | | | | | | | appeared in FreeBSD. PR: 133785 Submitted by: Ulrich Spoerlein <uqs@spoerlein.net> MFC after: 3 days Notes: svn path=/head/; revision=191414
* ifconfig(8) no longer needs to know how to print the IFF_NEEDSGIANT flag,Robert Watson2009-04-181-1/+1
| | | | | | | since it shortly won't be defined at all. Notes: svn path=/head/; revision=191252
* The structs ifaliasreq and in_aliasreq have exactly the same layout andBrooks Davis2009-04-151-2/+2
| | | | | | | | | member names, but we really do mean to use in_aliasreq here. MFC after: 1 week Notes: svn path=/head/; revision=191121
* Extend route command:Kip Macy2009-04-142-11/+24
| | | | | | | | | | | | | - add show as alias for get - add weights to allow mpath to do more than equal cost - add sticky / nostick to disable / re-enable per-connection load balancing This adds a field to rt_metrics_lite so network bits of world will need to be re-built. Reviewed by: jeli & qingli Notes: svn path=/head/; revision=191080
* Style fixes to the newfs_msdos manpage.Ed Schouten2009-04-111-8/+9
| | | | | | | Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190936
* Update documentation (forgotten in r190929).Ed Schouten2009-04-111-4/+5
| | | | | | | Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190933
* Do not prepend /dev/ when -C is used.Ed Schouten2009-04-112-5/+7
| | | | | | | Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190932
* When using -C, do not warn when the file is not a character device, but warn ↵Ed Schouten2009-04-111-2/+7
| | | | | | | | | when it is not a regular file. Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190931
* Fix a bug in r185587.Ed Schouten2009-04-111-2/+3
| | | | | | | | | | fstat(fd, &sb) was not executed unconditionally anymore so sb was read uninitialised when -C is used. Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190930
* Use ftruncate() instead of lseek()+write()+lseek() to set the createdEd Schouten2009-04-111-5/+1
| | | | | | | | | file (-C) to the requested size. Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190929
* De-static local variables in main() (which is not recursive) and const-ifyEd Schouten2009-04-111-10/+10
| | | | | | | | | others. Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190927
* Show -@ and -C in usage, which were added in r185587.Ed Schouten2009-04-111-0/+2
| | | | | | | Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190925
* Clean up the usage() function to use a single fprintf().Ed Schouten2009-04-111-26/+25
| | | | | | | Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=190924
* Fix broken case where caused by last patch whereRandall Stewart2009-04-111-1/+2
| | | | | | | | a user uses 0.0.0.0/0 as an alias for default. Obtained from: Mykola Dzham (freebsd@levsha.org.ua) Notes: svn path=/head/; revision=190913
* Kill hard sentence break added in the previous revision.Tom Rhodes2009-04-111-1/+4
| | | | Notes: svn path=/head/; revision=190911
* Bump doc date for previous changes.Tom Rhodes2009-04-111-1/+1
| | | | Notes: svn path=/head/; revision=190910
* - Better wording in comment.Ulf Lilleengen2009-04-101-1/+1
| | | | | | | Suggested by: Christoph Mallon <christoph.mallon - at - gmx.de> Notes: svn path=/head/; revision=190891
* - Implement the grow command to make it easier for users to extend plexesUlf Lilleengen2009-04-102-7/+95
| | | | | | | | | without having to understand all gvinum internals. - Document the grow command in the manpage and update examples to use the command where possible. Notes: svn path=/head/; revision=190884
* - Move logic for finding a unique drive name into its own routine for futureUlf Lilleengen2009-04-101-5/+12
| | | | | | | code reuse. Notes: svn path=/head/; revision=190882
* - Move out allocation part of different gvinum objects into its own routine andUlf Lilleengen2009-04-101-2/+1
| | | | | | | make use of it in the gvinum userland code. Notes: svn path=/head/; revision=190881
* Add emulation of delay profiles, which lets you model variousLuigi Rizzo2009-04-093-2/+403
| | | | | | | | | | | | | | | | | | | | | | | types of MAC overheads such as preambles, link level retransmissions and more. Note- this commit changes the userland/kernel ABI for pipes (but not for ordinary firewall rules) so you need to rebuild kernel and /sbin/ipfw to use dummynet features. Please check the manpage for details on the new feature. The MFC would be trivial but it breaks the ABI, so it will be postponed until after 7.2 is released. Interested users are welcome to apply the patch manually to their RELENG_7 tree. Work supported by the European Commission, Projects Onelab and Onelab2 (contract 224263). Notes: svn path=/head/; revision=190865