summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Fix inconsistency of yp_dir.hrs2011-05-302-2/+2
| | | | | |
| * | | | | Various consistency and style fixes for WARNS=6.hrs2011-05-3018-79/+105
| | | | | |
| * | | | | - Enable transports other than INET including INET6.hrs2011-05-297-178/+885
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use svc_getrpccaller() instead of svc_getcaller() to support transports other than INET. - Extend /var/yp/securenets to support CIDR notation and IPv6 address. It now supports the following: 127.0.0.1 255.0.0.0 127.0.0.1/8 172.16.10.1 fe80::1%fxp0/10 2001:db8:1::1 ffff:ffff:ffff:ffff:: 2001:db8:2::1/68 2001:db8:3::1 - Add -S flag to support Sorlais-compatible securenets format. - Fix memory leak on removal of socklist and bindaddrlist. - Remove inconsistent LINEBUFSZ, use BUFSIZ. - Style(9) fixes.
| * | | | | Implemnt RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-05-2914-48/+784
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS information received by rtsold(8) will go to resolv.conf(5) by resolvconf(8) script. Lifetime handling is not supported at this moment. Note: when receiving a link-local scope address rtsold(8) adds a scope id into addresses in the script arguments based on the received interface in a representation defined in RFC 4007 (e.g. fe80::1%bge0). However, there are some shell scripts using printf(1) (including resolvconf(8)) cannot process it properly because printf(1) can recognize the character % as special. Based on work by: J.R. Oldroyd PR: kern/156259
| * | | | | Use ANSI C function definitions.hrs2011-05-291-115/+62
| | | | | |
| * | | | | Merge from head@222434.hrs2011-05-29620-11761/+54037
| |\ \ \ \ \
| * | | | | | - Handle routes which are not marked as Qflag again.hrs2010-03-081-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Ignore routes of !RTF_GATEWAY && !RTF_HOST && !RTF_STATIC. - Add sleep(1) between NET_RT_DUMP retries.
| * | | | | | - Use !(rtm->rtm_flags & RTF_GATEWAY) as the condition forhrs2010-03-072-36/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connected routes. - WARN=6.
| * | | | | | - Use RTF_PROTO2 for routes handled by RIPng and ignore the otherhrs2010-03-071-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | routes. The route6d depends on RTF_WASCLONED to prevent connected network routes (normally configured automatically when ifconfig assigns an address with a prefix) from being removed. However, that flag is no longer used on 8.0 and later due to lltable rework. The route6d now sees routes with RTF_PROTO2 only. The flag can be changed by the -Q <num> flag. The default is 2. - -Q and -P now allow the value "0". It clears the flag itself.
| * | | | | | * Support RTM_IFANNOUNCE message. route6d now works even when anhrs2010-03-072-57/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface is added or removed dynamically. * Improve data structures for the prefix filter: - struct ifc (for interfaces) and struct iff (for filters) are now separated from each other; struct iff is now a separated singly-linked list which contains if_name in each entry. Linear search is used for the prefix matching. - interface specifier in filtering rule now accepts non-existent interfaces at boot time and glob characters like gif* or fxp[012]. (this is based on fnmatch(3)) * Add a new flags: - -P num: ignore routes marked as RTF_PROTO<num>. - -Q num: set RTF_PROTO<num> for routes added by route6d. - -p pidfile: specify the PID file. * Increase retry count for NET_RT_DUMP to 15. * Usage: These fix a typical issue when using route6d + other routing daemon. For example, net/openbgpd which uses RTF_PROTO1 for its routing entries. However, route6d adds/removes routing entries regardless of the RTF_PROTO* flags, it happens that routes added by openbgpd is removed by route6d, and vice versa. Adding "-P 1" solves this situation. This is applied to net/quagga, too. Also, the glob character support greatly simplifies your command line options like this: [before] route6d_flags="\ -N bge0,bge1,re0,gif0,gif1,gif4,gre0,gre1,gre2,gre3,gre4,gre5,gre6,\ gre7,gre8,gre9,gre10,gre11,gre12,gre13,gre14,bridge0 \ -T gif2 \ -O 2001:db8:705:ef00::/56,gif3 \ -A 2001:db8:705:ef00::/56,gif3 \ -L 2001:db8:19:ff::/64,gif3 \ " [after] route6d_flags="\ -P 1 \ -N bge*,re0,gif[014],gre*,bridge* \ -T gif2 \ -O 2001:db8:705:ef00::/56,gif3 \ -A 2001:db8:705:ef00::/56,gif3 \ -L 2001:db8:19:ff::/64,gif3 \ "
* | | | | | | Fix the location of the default pid file in named.8dougb2011-07-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem pointed out in the PR PR: conf/155006 Submitted by: Helmut Schneider <jumper99@gmx.de>
* | | | | | | Add PS3 partitioning (and framework for future pseries support) to thenwhitehorn2011-07-161-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | installer.
* | | | | | | bmake and other updates necessary for the BIND 9.8.x upgrade.dougb2011-07-1614-10/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a structural change regarding atomic ops. Previously they were enabled on all platforms unless we had knowledge that they did not work. However both work performed by marius@ on sparc64 and the fact that the 9.8.x branch is fussier in this area has demonstrated that this is not a safe approach. So I've modified a patch provided by marius to enable them for i386, amd64, and ia64 only.
* | | | | | | Fix logical_cpus_mask retrieving by using, correctly, cpuset_t.attilio2011-07-151-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix also a bug where pmccontrol uses a 32 static type rather than old cpumask_t. Reported and reviewed by: avg
* | | | | | | pmcstat, pmccontrol: catch up with removal of machdep.hlt_cpus sysctlavg2011-07-152-31/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: Pan Tsu <inyaoo@gmail.com> Reviewed by: attilio No objections: gnn
* | | | | | | Use calloc() instead of an explicit memset.delphij2011-07-141-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | | | Add a new option, -N to disable the default and recommended syslogd(8)delphij2011-07-142-8/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | behavior, which binds to the well known UDP port. This option implies -s. MFC after: 2 months
* | | | | | | Use prototype. While I'm there, add a pair of parenthesis to mark an ifdelphij2011-07-145-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | statment's border. MFC after: 1 month
* | | | | | | Run newaliases at the end of the install process.nwhitehorn2011-07-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: kevlo
* | | | | | | Try and fix the exports.5 man page so that it clarifies howrmacklem2011-07-121-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NFSv4 exports are handled. Improved by informal review comments from mckusick, kudak at mit.edu and bde. This is a content change. MFC after: 2 weeks
* | | | | | | Use full buffer size in read(2) call, there is no need to preserve theae2011-07-111-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | last byte of the buffer. Since we call refresh_device_tbl() for any devctl event types - no need to check the first byte of buffer. Remove these checks. Also remove logging for the case of unknown devd message. It incorrectly triggers when all devctl events are not fit into one buffer and part of unread data will be read in the next pass. When length of data readed from devctl is equal to sizeof(buf), then try to read from socket again, to read full data. MFC after: 2 weeks
* | | | | | | Per request of the docs team, install docs as packages, instead of vianwhitehorn2011-07-093-4/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with me taking entirely too long to commit this! Submitted by: blackend
* | | | | | | Add an extra tab between fs_file and fs_vfstypekevlo2011-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: nwhitehorn
* | | | | | | Conditionally compile in the IPv4/IPv6 address family support.pluknet2011-07-062-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test it with feature_present(3), so that we do not end up with passing an unsupported version to NgSendMsg(3). Approved by: glebius
* | | | | | | Only increment the ypcnt once per data record. The old implementationgordon2011-07-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was incrementing it twice making it impossible to iterate the table since the records were 1, 3, 5, 7 (or 2, 4, 6, 8 for the v3 records). MFC after: 10 days
* | | | | | | Update manual page. Mention IPv6 support, and notice that mainglebius2011-07-051-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | argument isn't actually a node, but a netgraph path.
* | | | | | | Rewrite the flowctl utility to add it support for displayingglebius2011-07-052-53/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | both IPv4 and IPv4 flows.
* | | | | | | Add sanity check for ifm_version in struct if_msghdr.hrs2011-07-041-0/+6
| | | | | | |
* | | | | | | Improve portability of config(8).ed2011-07-031-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use strlen(dp->d_name) instead of the unportable dp->d_namlen. Rename i to len to make it slightly more descriptive and prevent negative indexing of the array. - Replace index() by strchr(). This supposedly fixes compilation on GNU systems. Submitted by: Robert Millan <rmh debian org> (original patch) MFC after: 3 weeks
* | | | | | | Update packet filter (pf) code to OpenBSD 4.5.bz2011-06-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You need to update userland (world and ports) tools to be in sync with the kernel. Submitted by: mlaier Submitted by: eri
* | | | | | | Don't die if either of INET or INET6 aren't in the running kernel.jhb2011-06-241-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, report "protocol not supported" errors at runtime if a user attempts to use a protocol that the kernel doesn't support. Reviewed by: bz MFC after: 1 week
* | | | | | | Remove duplicated header fileskevlo2011-06-2412-13/+0
| | | | | | |
* | | | | | | Change the NFSv4 nfsuserd(8) daemon so that it doesn't preload thermacklem2011-06-211-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | uid<->username mapping cache with an entry when another entry for that uid is already loaded. This fixes a case where the mapping of "toor" would replace "root" when the daemon was started, resulting in no mapping for "root" until the cache entry for "toor" timed out. The algorithm is inefficient, but since it is only done once when the daemon is started up, I don't think that's an issue. MFC after: 2 weeks
* | | | | | | Add global -d and -e options to either print device numbersbz2011-06-207-39/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (usually default) or enclosure:slot information as (Exx:Sxx) or both. Discussed with: jhb Reviewed by: jhb Sponsored by: Sandvine Incorporated MFC after: 1 week
* | | | | | | Add missing argument for -h in usage.kuriyama2011-06-201-1/+1
| | | | | | |
* | | | | | | Add support for using mtree(5) manifest files to define the imagemarcel2011-06-197-18/+1111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to be created. The support is based on mtree version 2.0, as used in libarchive, but adds new features on top of it. The current implementation is fully functional, but is envisioned to grow at least the following additional features over time: o Add support for the /include special command so that manifest files can be constructed using includable fragments. o Add support specifying a search path to locate content files. o Content file filters: commands that provide file contents on stdout. The manifest file eliminates the need to first construct a tree as root in order to create an image and allows images (releases) to be created directly from object trees and/or source trees. Reviewed by: deo Sponsored by: Juniper Networks, Inc
* | | | | | | Add 'show logstate' to usage().bz2011-06-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week
* | | | | | | Add a missing ',' to separate arguments lost for r222465 only found inbz2011-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case a complete world is built without INET support. MFC after: 10 days X-MFC with: 222465
* | | | | | | Add WITHOUT_UTMPX switch to the build system.ed2011-06-171-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last, users, who, wtmpcvt, ac, lastlogin and utxrm. The tool w is not in this list, because it has some other functionality which is unrelated to utmpx; it is hardlinked to the uptime tool.
* | | | | | | Don't omit ac(8) as part of WITHOUT_ACCT.ed2011-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WITHOUT_ACCT switch is supposed to omit tools related to process accounting, namely accton and sa. ac(8) is just a simple tool that prints statistics based on data in the utx.log database. It has nothing to do with the former.
* | | | | | | Open the floppy disk device with O_RDONLY rather than O_RDWR. Afterjoerg2011-06-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all, this is the fd*read* command, and thus should be able to read even write-protected disks. MFC after: 1 week
* | | | | | | Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.cmckusick2011-06-162-16/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that file. No other programs or libraries include <ufs/ffs/ffs_extern.h> (nor should they as it is totally in-kernel interfaces). For added protection I enclosed the entire contents of <ufs/ffs/ffs_extern.h> in ifdef _KERNEL. Feedback from: Bruce Evans and Tai-hwa Liang
* | | | | | Don't attempt to create the base directory when -d is specified.delphij2011-06-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month
* | | | | | Plumb device physical path reporting from CAM devices, through GEOM andgibbs2011-06-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DEVFS, and make it accessible via the diskinfo utility. Extend GEOM's generic attribute query mechanism into generic disk consumers. sys/geom/geom_disk.c: sys/geom/geom_disk.h: sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Allow disk providers to implement a new method which can override the default BIO_GETATTR response, d_getattr(struct bio *). This function returns -1 if not handled, otherwise it returns 0 or an errno to be passed to g_io_deliver(). sys/cam/scsi/scsi_da.c: sys/cam/ata/ata_da.c: - Don't copy the serial number to dp->d_ident anymore, as the CAM XPT is now responsible for returning this information via d_getattr()->(a)dagetattr()->xpt_getatr(). sys/geom/geom_dev.c: - Implement a new ioctl, DIOCGPHYSPATH, which returns the GEOM attribute "GEOM::physpath", if possible. If the attribute request returns a zero-length string, ENOENT is returned. usr.sbin/diskinfo/diskinfo.c: - If the DIOCGPHYSPATH ioctl is successful, report physical path data when diskinfo is executed with the '-v' option. Submitted by: will Reviewed by: gibbs Sponsored by: Spectra Logic Corporation Add generic attribute change notification support to GEOM. sys/sys/geom/geom.h: Add a new attrchanged method field to both g_class and g_geom. sys/sys/geom/geom.h: sys/geom/geom_event.c: - Provide the g_attr_changed() function that providers can use to advertise attribute changes. - Perform delivery of attribute change notifications from a thread context via the standard GEOM event mechanism. sys/geom/geom_subr.c: Inherit the attrchanged method from class to geom (class instance). sys/geom/geom_disk.c: Provide disk_attr_changed() to provide g_attr_changed() access to consumers of the disk API. sys/cam/scsi/scsi_pass.c: sys/cam/scsi/scsi_da.c: sys/geom/geom_dev.c: sys/geom/geom_disk.c: Use attribute changed events to track updates to physical path information. sys/cam/scsi/scsi_da.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, and the updated buffer type references our physical path attribute, emit a GEOM attribute changed event via the disk_attr_changed() API. sys/cam/scsi/scsi_pass.c: Add AC_ADVINFO_CHANGED to the registered asynchronous CAM events for this driver. When this event occurs, update the physical patch devfs alias for this pass instance. Submitted by: gibbs Sponsored by: Spectra Logic Corporation
* | | | | | Use alternative, less messy solution to avoid breakage after r223020:dim2011-06-132-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | put the snapdata structure between #ifdef _KERNEL guards. Suggested by: kib
* | | | | | Apparently makefs needs a few more system headers to compile duringdim2011-06-132-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | buildworld.
* | | | | | Unbreak usr.sbin/makefs after r223020.dim2011-06-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Pointy hat to: mckusick
* | | | | | I forgot what year it is, apparently.nwhitehorn2011-06-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Submitted by: brucec
* | | | | | Long-overdue man page for bsdinstall.nwhitehorn2011-06-112-0/+188
| |_|_|_|/ |/| | | |
* | | | | Support SIGHUP for reloading /etc/rtadvd.conf.hrs2011-06-115-51/+142
| | | | |
OpenPOWER on IntegriCloud