aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix the argument type of fill_icmptypes() on amd64.Hajimu UMEMOTO2010-08-131-1/+1
| | | | | | | | PR: bin/132911 Submitted by: Yoshitaka AHAREN <yaharen__at__gm.dns-lab.jp> Notes: svn path=/stable/6/; revision=211277
* Merge r201401 from head:Gavin Atkinson2010-03-171-14/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove dead code. This section of code is only run in the (sblock.fs_magic == FS_UFS1_MAGIC) case, so the check within the loop is redundant. Merge 203835 from head: When growing a UFS1 filesystem, we need to initialise all inodes in any new cylinder groups that are created. When the filesystem is first created, newfs always initialises the first two blocks of inodes, and then in the UFS1 case will also initialise the remaining inode blocks. The changes in growfs.c 1.23 broke the initialisation of all inodes, seemingly based on this implementation detail in newfs(8). The result was that instead of initialising all inodes, we would actually end up initialising all but the first two blocks of inodes. If the filesystem was grown into empty (all-zeros) space then the resulting filesystem was fine, however when grown onto non-zeroed space the filesystem produced would appear to have massive corruption on the first fsck after growing. A test case for this problem can be found in the PR audit trail. Fix this by once again initialising all inodes in the UFS1 case. PR: bin/115174 Submitted by: "Nate Eldredge" <nge cs.hmc.edu> Reviewed by: mjacob Notes: svn path=/stable/6/; revision=205261
* MFC r176575:Xin LI2010-01-071-2/+4
| | | | | | | | | | | | | In pass1(), cap inosused to fs_ipg rather than allowing arbitrary number read from cylinder group. Chances that we read a smarshed cylinder group, and we can not 100% trust information it has supplied. fsck_ffs(8) will crash otherwise for some cases. PR: bin/138043 Reminded by: mckusick Notes: svn path=/stable/6/; revision=201712
* MFC r198352Philip Paeps2009-10-233-18/+41
| | | | | | | | | | | | | | | | | | Make dhclient use bootpc (68) as the source port for unicast DHCPREQUEST packets instead of allowing the protocol stack to pick a random source port. This fixes the behaviour where dhclient would never transition from RENEWING to BOUND without going through REBINDING in networks which are paranoid about DHCP spoofing, such as most mainstream cable-broadband ISP networks. Obtained from: OpenBSD Reviewed by: brooks Approved by: re (kib) Notes: svn path=/stable/6/; revision=198412
* MFC r186431:Tom Rhodes2009-04-011-1/+7
| | | | | | | | | | Note that when shutdown is run without options, it will place the system into single user mode at the time specified. PR: 129765 Notes: svn path=/stable/6/; revision=190607
* MFC 184057 from /head: Tiny wording nits.Giorgos Keramidas2009-01-151-3/+4
| | | | Notes: svn path=/stable/6/; revision=187281
* MFC 173539-173540Giorgos Keramidas2009-01-151-8/+19
| | | | | | | | | * Expand the example descriptions, fix mdoc-bugs in "(-a and -t vnode are implied)" and reuse it near the cd9660 example. * Spell 'backing store' as two words. Notes: svn path=/stable/6/; revision=187270
* MFC 173507 from /headGiorgos Keramidas2009-01-151-2/+1
| | | | | | | | Instead of hardcoding md10 as the device node in the cd9660 example, use a trick submitted by Ruslan. Notes: svn path=/stable/6/; revision=187269
* MFC r183974:Brooks Davis2008-10-263-5/+31
| | | | | | | | | | | Support the remaining options listed in dhcp-options(5) and RFC 2132. PR: bin/127076 Submitted by: jkim Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=184297
* MFC: r181036: Add a -q[uiet] flag for scripts.David E. O'Brien2008-09-012-4/+12
| | | | Notes: svn path=/stable/6/; revision=182665
* MFC: r179356, rev. 1.25 ping6.8, 1.34 ping6.cBjoern A. Zeeb2008-08-312-4/+9
| | | | | | | | | | | | | Change the exit status for 0 and 2 to be the same as with ping(1) and be usable in scripts, etc. This also changes the semantics in case when we lose one of n packets. In that case, before we exited by SIG, now we exit with return(0). Submitted by: Gert Doering (gert space.net) Notes: svn path=/stable/6/; revision=182528
* MFC r163999Tom Rhodes2008-07-201-12/+15
| | | | | | | | | | | | | | Sync up with rhyolite routed 2.31 which fixes the handling of varargs. Remove -p from usage, it's gone completely now. Merge to 7 not applicable, 7 obtained this change when it was branched. PR: 82287 Submitted by: arved Notes: svn path=/stable/6/; revision=180635
* MFC r180060:Mike Makonnen2008-07-021-2/+2
| | | | | | | | | | | Support for filtering on major device number was removed in rev. 1.7 or rule.c. Update man page example accordingly. Submitted by: Mateusz Guzik <mjguzik@gmail.com> PR: docs/124892 Notes: svn path=/stable/6/; revision=180179
* MFC: Sync restore with the version in -current.David Malone2008-06-097-80/+204
| | | | | | | | | | | | | | Fix remaining nits from PR bin/39905. Check for write failure while building temp files. Correctly set file group when restore is run by a user other than root. Use safer string handling. Fixes the "getfile: lost data" panic when restoring older dumps. Fix spurious "Header with wrong dumpdate" message. Add -D for degraded mode, which tries harder to read corrupted backups. Remove a diagnostic message from man page that is no longer printed. Notes: svn path=/stable/6/; revision=179667
* MFC of an update to the dump program to save extended attributesKirk McKusick2008-05-236-46/+515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and an update to the restore program to restore all dumped extended attributes. The affected files and the version being MFC'ed: Revision Path 1.11 src/include/protocols/dumprestore.h 1.28 src/sbin/dump/dump.h 1.38 src/sbin/dump/traverse.c 1.31 src/sbin/restore/dirs.c 1.11 src/sbin/restore/extern.h 1.12 src/sbin/restore/restore.h 1.48 src/sbin/restore/tape.c 1.16 src/sys/sys/extattr.h 1.21 src/sys/ufs/ufs/extattr.h 1.24 src/share/man/man5/fs.5 Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. This should happen in the course of doing a normal `buildworld'. This resolves PR 93085 which will be closed. PR: bin/93085 MFC request by: Robert Watson Notes: svn path=/stable/6/; revision=179252
* MFC:David Malone2008-05-202-5/+32
| | | | | | | | | Dummynet has a limit of 100 slots queue size (or 1MB, if you give the limit in bytes) hard coded into both the kernel and userland. Make both these limits a sysctl, so it is easy to change the limit. Notes: svn path=/stable/6/; revision=179150
* MFC rev 1.8: When sending packets directly to the DHCP server, use a socketBrooks Davis2008-05-151-0/+15
| | | | | | | | | | and send directly rather than bogusly sending it out as a link layer broadcast (which fails to be received on some networks). PR: bin/96018 Notes: svn path=/stable/6/; revision=179007
* MFC: 1.111Oleg Bulyzhin2008-04-251-3/+3
| | | | | | | | Calculate p.fs.lookup_step correctly. This should prevent zeroing of w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation). Notes: svn path=/stable/6/; revision=178487
* MFC:Oleg Bulyzhin2008-04-251-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/sys/netinet/ip_dummynet.h 1.41 src/sys/netinet/ip_dummynet.c 1.111-1.114 src/sys/netinet/ip_fw_pfil.c 1.26 src/sys/net/if_bridge.c 1.107 src/sys/net/if_ethersubr.c 1.240 src/sbin/ipfw/ipfw.8 1.206 - style(9) cleanup. - dummynet_io() declaration has changed. - Alter packet flow inside dummynet and introduce 'fast' mode of dummynet operation: allow certain packets to bypass dummynet scheduler. Benefits are: -- lower latency: if packet flow does not exceed pipe bandwidth, packets will not be (up to tick) delayed (due to dummynet's scheduler granularity). -- lower overhead: if packet avoids dummynet scheduler it shouldn't reenter ip stack later. Such packets can be fastforwarded. -- recursion (which can lead to kernel stack exhaution) eliminated. This fix long existed panic, which can be triggered this way: kldload dummynet sysctl net.inet.ip.fw.one_pass=0 ipfw pipe 1 config bw 0 for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done ping -c 1 localhost - New sysctl nodes: net.inet.ip.dummynet.io_fast - enables 'fast' dummynet io net.inet.ip.dummynet.io_pkt - packets passed to dummynet net.inet.ip.dummynet.io_pkt_fast - packets avoided dummynet scheduler net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet - Workaround p->numbytes overflow, which can result in infinite loop inside dummynet module (prerequisite is using queues with "fat" pipe). PR: kern/113548 kern/121955 Notes: svn path=/stable/6/; revision=178486
* MFC rev 1.19Brooks Davis2008-04-111-20/+48
| | | | | | | | | | | | | | Add a new function is_default_interface() which determines if this interface is one with the default route (or there isn't one). Use it to decide if we should adjust the default route and /etc/resolv.conf. Fix the delete of the default route. The if statement was totally bogus and the delete only worked due to a typo. [1] Reported by: Jordan Coleman <jordan at JordanColeman dot com> [1] Notes: svn path=/stable/6/; revision=178089
* MFC: ipfw2.c 1.114Julian Elischer2008-04-042-6/+14
| | | | | | | | | ipfw.8 1.209 Use an explicit argument to format table args as IP addresses. Notes: svn path=/stable/6/; revision=177919
* MFC rev 1.84 route.cRemko Lodder2008-03-291-1/+1
| | | | | | | | | | | | | | | | In route.c in newroute() there's a call to exit(0) if the command was 'get'. Since rtmsg() always gets called and returns 0 on success and -1 on failure, it's possible to exit with a suitable exit code by calling exit(ret != 0) instead, as is done at the end of newroute(). PR: bin/112303 Submitted by: bruce@cran.org.uk MFC after: 1 week Approved by: imp (mentor, implicit) Notes: svn path=/stable/6/; revision=177708
* MFC rev 1.73 newfs.8Remko Lodder2008-03-241-2/+2
| | | | | | | | | | | | | | Replace reference from vinum.8 to gvinum.8, it was advised in the PR to replace this with vinum.4, but that's the kernel interface manual, which is not appropriate in my understanding. I think that gvinum is a suitable replacement for this. PR: docs/121938 Submitted by: "Federico" <federicogalvezdurand at yahoo dot com> MFC after: 3 days Notes: svn path=/stable/6/; revision=177544
* MFC rev 1.18:Brooks Davis2008-03-121-1/+1
| | | | | | | | | | | During PREINIT, when giving the interface the address 0.0.0.0, do it as an alias to avoid distrubing other addresses. PR: bin/119255 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Notes: svn path=/stable/6/; revision=177112
* MFC revision 1.14Xin LI2008-03-081-1/+1
| | | | | | | | date: 2008/01/29 00:20:00; author: delphij; state: Exp; lines: +1 -1 Don't coredump when executed with -o. Notes: svn path=/stable/6/; revision=176925
* MFC rev. 1.63-1.68Alexander Motin2008-03-041-1/+189
| | | | | | | | Document -instance and -globalport options. Note that the punch_fw option does not work in securelevel 3. Notes: svn path=/stable/6/; revision=176798
* MFC rev. 1.11: allow setkey(8) to recognize esp as a protocolMaxim Konovalov2008-02-261-0/+1
| | | | | | | name for spdadd. Notes: svn path=/stable/6/; revision=176582
* MFC: Map 'boot' to GPT_ENT_TYPE_FREEBSD_BOOT when parsing UUIDs.John Baldwin2008-02-121-0/+7
| | | | Notes: svn path=/stable/6/; revision=176213
* MFC rev 1.70 bsdlabel.8Remko Lodder2008-02-111-1/+1
| | | | | | | | | Remove redundant whitespace. Noticed by: brueffer Notes: svn path=/stable/6/; revision=176176
* MFC rev 1.69 bsdlabel.8Remko Lodder2008-02-101-2/+3
| | | | | | | | | | | | | Attempt to describe the ''auto'' type a bit better in the default section (if nothing had been specified, or if the auto type had been specified, a default layout is used). PR: docs/116047 Submitted by: Ian Smith <smithi at nimnet dot asn dot au> Minor modifications by me. Notes: svn path=/stable/6/; revision=176143
* MFC revision 1.21Ulf Lilleengen2008-02-071-0/+1
| | | | | | | | | | - Update geom(8) to explain that GEOM_LIBRARY_PATH can take a colon-separated list of paths. Approved by: pjd (mentor) Notes: svn path=/stable/6/; revision=176090
* MFC revision 1.34Ulf Lilleengen2008-02-071-11/+31
| | | | | | | | | | - Make geom commands handle multiple library paths in the GEOM_LIBRARY_PATH environment variable using ':' as a separator. Approved by: pjd (mentor) Notes: svn path=/stable/6/; revision=176087
* MFC: ver. 1.82-1.83Mike Makonnen2008-01-281-20/+23
| | | | | | | | | | | | | | | | | | Fix an error in bit shifting logic for network addresses. The route command would add incorrect routing entries if network numbers weren't fully "spelled" out according to their class. For example: # route add 128.0/16 (works) # route add 128/16 (doesn't work) # route add 193.0.0/24 (works) # route add 193/24 (doesn't work) Also, rework the way a netmask is deduced from network number if it [netmask] is not specified. Submitted by: Nuno Antunes <nuno.antunes@gmail.com> (mostly) Notes: svn path=/stable/6/; revision=175735
* MFC: Add support for booting from GPT-labeled disks from the BIOS. ThisJohn Baldwin2008-01-246-36/+95
| | | | | | | includes /boot/pmbr, /boot/gptboot, and 'gpt boot'. Notes: svn path=/stable/6/; revision=175651
* MFC rev. 1.90 ntfs_vfsops.c and revs. 1.22, 1.23 mount_ntfs.8: maskMaxim Konovalov2008-01-191-1/+4
| | | | | | | maximum file permissions with ACCESSPERMS. Notes: svn path=/stable/6/; revision=175489
* MFC: 1.3Jung-uk Kim2007-12-101-1/+4
| | | | | | | | | | Teach dhclient(8) about net80211 link (association) status. Reviewed by: brooks Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=174512
* MFC support for the Camellia block cipherGeorge V. Neville-Neil2007-12-072-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HEAD Revision Path 1.16 src/lib/libipsec/pfkey_dump.c 1.38 src/sbin/setkey/setkey.8 1.12 src/sbin/setkey/token.l 1.81 src/secure/lib/libcrypto/Makefile 1.47 src/secure/lib/libcrypto/Makefile.inc 1.8 src/secure/lib/libcrypto/opensslconf-amd64.h 1.8 src/secure/lib/libcrypto/opensslconf-i386.h 1.1205 src/sys/conf/files 1.1 src/sys/crypto/camellia/camellia-api.c (new) 1.1 src/sys/crypto/camellia/camellia.c (new) 1.1 src/sys/crypto/camellia/camellia.h (new) 1.6 src/sys/modules/crypto/Makefile 1.15 src/sys/net/pfkeyv2.h 1.1 src/sys/netinet6/esp_camellia.c (new) 1.1 src/sys/netinet6/esp_camellia.h (new) 1.25 src/sys/netinet6/esp_core.c 1.19 src/sys/netipsec/xform_esp.c 1.34 src/sys/opencrypto/cryptodev.c 1.25 src/sys/opencrypto/cryptodev.h 1.19 src/sys/opencrypto/cryptosoft.c 1.9 src/sys/opencrypto/xform.c 1.4 src/sys/opencrypto/xform.h Approved by: re (kensmith) Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> Notes: svn path=/stable/6/; revision=174400
* MFC: Properly sort 'sync' in the list of options passed to -o.John Baldwin2007-12-061-4/+4
| | | | Notes: svn path=/stable/6/; revision=174337
* MFC rev 1.29 atacontrol.8Remko Lodder2007-12-021-1/+105
| | | | | | | | | | | | | Expand the EXAMPLES section for atacontrol.8 PR: docs/117310 Submitted by: Ted Mittelstaedt <tedm at ipinc dot net> with minor modifications by me. Approved by: re (hrs) Notes: svn path=/stable/6/; revision=174156
* MFC rev 1.64 sysctl.8Remko Lodder2007-12-021-10/+1
| | | | | | | | | | | | | Remove mentionings of kern.dumpdev which is no longer available. PR: docs/113570 Submitted by: lawrance MFC After: 3 days (where applicable) Approved by: re (hrs) Notes: svn path=/stable/6/; revision=174155
* MFC rev 1.41, 1.42 mdconfig.8Remko Lodder2007-12-021-2/+10
| | | | | | | | | | | | | | | | | | Sync with md(4)'s information regarding the swap backend. PR: docs/115721 Submitted by: Stefan Lambrev <stefan.lambrev@moneybookers.com> MFC After: 3 days Every newline should start on it's own line. I didn't do that in the previous commit, so make it happen now. Prodded by: brueffer Approved by: re (hrs) Notes: svn path=/stable/6/; revision=174154
* MFC rev. 1.204: fix a typo in ipfw table usage example.Maxim Konovalov2007-11-291-1/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=174082
* Updates to build infrastructure for the MFC of IPFilter into RELENG_6Darren Reed2007-11-196-46/+47
| | | | Notes: svn path=/stable/6/; revision=173740
* This commit was manufactured by cvs2svn to create branch 'RELENG_6'.cvs2svn2007-11-101-0/+271
| | | | Notes: svn path=/stable/6/; revision=173515
* MFC: Don't look for GPT primary and secondary tables on a disk unless weJohn Baldwin2007-11-091-4/+10
| | | | | | | have a valid PMBR. Notes: svn path=/stable/6/; revision=173497
* MFC: mdconfig.8 -r 1.37Giorgos Keramidas2007-11-041-1/+7
| | | | | | | | | | | % Add an example which shows how mdconfig(8) can be used % to mount an ISO 9660 CD image file. % % PR: 112691 % Submitted by: Warren Block, wblock at wonkity.com Notes: svn path=/stable/6/; revision=173324
* MFC to RELENG_6 dhclient RFC3442 support (the classless static routeEd Maste2007-10-316-4/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | option) dhclient.conf 1.2 Add a $FreeBSD$ tag missing after the original import. Note that this file isn't actually installed; the one in src/etc is. clparse.c 1.3 dhclient-script 1.15 dhclient.c 1.21 dhclient.conf 1.3 dhcp.h 1.3 tables.c 1.4 Implement RFC3442, the Classless Static Route option. The original DHCP specification includes a route option but it supports only class-based routes. RFC3442 adds support for specifying the netmask width for each static route. A variable length encoding is used to minimize the size of this option. PR: bin/99534 Submitted by: Andrey V. Elsukov <bu7cher@yandex.ru> Reviewed by: brooks dhclient-script 1.16 The minimum size of an RFC3442 destination descriptor is five bytes, so correct test to -ge 5. Without this change an RFC3442 encoded default route would be ignored. Notes: svn path=/stable/6/; revision=173224
* MFC:Daichi GOTO2007-10-231-0/+4
| | | | | | | | | | | | | | Added whiteout behavior option. ``-o whiteout=always'' is default mode (it is established practice) and ``-o whiteout=whenneeded'' is less disk-space using mode especially for resource restricted environments like embedded environments. (Contributed by Ed Schouten. Thanks) Submitted by: Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=172898
* MFC rev.1.108: fix the issue when "ipfw(8) show" produces "not" twice.Maxim Konovalov2007-10-141-2/+2
| | | | Notes: svn path=/stable/6/; revision=172626
* MFC r1.17Andrew Thompson2007-10-111-8/+9
| | | | | | | | Use the -n flag on ifconfig so that dhclient does not cause the kernel module to be reloaded when the interface is torn down. Notes: svn path=/stable/6/; revision=172547