summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Make clear that the -U option can be dangerous. [1]dougb2011-08-092-6/+10
| | | | | | | | | | | In -p mode install the group file with the same permissions as normally done in etc/Makefile. Update the copyright. Requested by: peter [1] Approved by: re (kib)
* Convert pmcstat about using cpuset_t rather than relying on plain 32 bitattilio2011-08-073-74/+81
| | | | | | | | | | | | | | | | ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib)
* Fix NetBSD PR bin/44114:mm2011-08-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
* Fix a silly typo on my part.dougb2011-08-061-1/+1
| | | | Approved by: re (hrs)
* Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both ↵roberto2011-08-051-2/+3
| | | | | | | | | IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. Reviewed by: nathanw Approved by: re (kib)
* Always disable mount and unmount for jails with enforce_statfs==2.mm2011-08-021-2/+7
| | | | | | | | A working statfs(2) is required for umount(8) in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks
* Provide a more user friendly URL to the IETF site in faithd(8).gjb2011-08-021-2/+2
| | | | | | Pointed out by: dougb Approved by: re (kib) MFC after: 3 days
* Fix broken mdoc.uqs2011-08-011-22/+39
| | | | | Found by: manlint Approved by: re (kib)
* Backout r223115 which potentially caused a POLA violation, by restoringdelphij2011-07-311-1/+1
| | | | | | | | historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib)
* Properly initialize an error variable to avoid returning uninitializedjhb2011-07-291-0/+1
| | | | | | | | | data when 'show drives' succeeds, often resulting in a failing exit code even though the command worked fine. Reviewed by: bz Approved by: re (kib) MFC after: 3 days
* Revert my last change to this file, as BETA1 is not announced yet.bcr2011-07-281-6/+1
| | | | | | Pointed out by: kib Pointy hat to: me Approved by: re (kib, implicit)
* Add a section to the jail chapter that explains why it is notbcr2011-07-281-1/+6
| | | | | | | | | recommended to allow root users in the jail to access the host system. PR: docs/156853 Submitted by: crees Patch by: crees Approved by: re (kib) for BETA1
* To inet or not two inet. Unbreak static IPv4 configuration. If you triedbz2011-07-281-1/+1
| | | | | | | | you were stuck in an endless loop. Reported by: kensmith Approved by: re (kib) for BETA1 Pointy hat to: bz - wonder why I had not tested legacy IP thoroughly..
* Document the potential for jail escape.gjb2011-07-241-1/+8
| | | | | | | | | Submitted by: Vedad KAJTAZ (vedad % kajtaz net) PR: 142341 Reviewed by: bz, rwatson Rewording by: rwatson Approved by: re (kensmith) MFC after: 3 days
* Fix various broken links in manual pages.gjb2011-07-231-2/+2
| | | | | | | | Submitted by: Michiel Overtoom (motoom % xs4all nl) PR: 159130 159131 159132 159133 159134 159135 159136 159137 158138 159144 Approved by: re (kib) MFC after: 3 days
* Fix `diskinfo -t` operation for disks smaller then 8GB or bigger then 2TB.mav2011-07-211-21/+28
| | | | | | Tested to work with 1.44MB floppy, 4GB USB stick and 4TB disk array. Approved by: re (kib)
* The named.reload script is no longer useful in the age of rc.ddougb2011-07-184-120/+0
|
* Add a closing '.El' tag.gjb2011-07-171-0/+1
| | | | Found by: manlint
* - Improve interface list handling. The rtadvd(8) now supports dynamically-hrs2011-07-1725-1430/+4143
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added/removed interfaces in a more consistent manner and reloading the configuration file. - Implement burst unsolicited RA sending into the internal RA timer framework when AdvSendAdvertisements and/or configuration entries are changed as described in RFC 4861 6.2.4. This fixes issues that make termination of the rtadvd(8) daemon take very long time. An interface now has three internal states, UNCONFIGURED, TRANSITIVE, or CONFIGURED, and the burst unsolicited sending happens in TRANSITIVE. See rtadvd.h for the details. - rtadvd(8) now accepts non-existent interfaces as well in the command line. - Add control socket support and rtadvctl(8) utility to show the RA information in rtadvd(8). Dumping by SIGUSR1 has been removed in favor of it.
| * - Refactoring the interface list. It now supports dynamicallyhrs2011-07-1425-1182/+3497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added/removed interfaces in a more consistent manner and reloading the configuration file. - Add initial support for control socket. RA information in the daemon can be obtained by rtadvctl(8) instead of SIGUSR1 in a similar manner to ifconfig(8). The information dump has been removed in favor of it. (reload the configuration file) # rtadvctl reload (show RA messages being sent on each interfaces) # rtadvctl show em0: flags=<UP,CONFIGURED,PERSIST> status=<RA_SEND> mtu 1280 DefaultLifetime: 30m MinAdvInterval/MaxAdvInterval: 3m20s/3m20s AdvLinkMTU: <none>, Flags: O, Preference: medium ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64 AdvIfPrefixes: yes (show RA messages being sent only on em0) # rtadvctl show em0 (rtadvctl -v show provides additional information) # rtadvctl -v show em0 em0: flags=<UP,CONFIGURED,PERSIST> status=<RA_SEND> mtu 1280 DefaultLifetime: 30m MinAdvInterval/MaxAdvInterval: 3m20s/3m20s AdvLinkMTU: <none>, Flags: O, Preference: medium ReachableTime: 0s, RetransTimer: 0s, CurHopLimit: 64 AdvIfPrefixes: yes Prefixes (1): 2001:db8:1::/64 (CONFIG, vltime=30d, pltime=7d, flags=LA) RDNSS entries: 2001:db8:1::128 (ltime=2m40s) (stop rtadvd) # rtadvctl shutdown A remaining issue when reloading the configuration file is that during that period rtadvd cannot communicate with rtadvctl due to some additional RA sending for graceful shutdown. This will be fixed later.
| * - Check RTM_VERSION.hrs2011-06-163-1/+14
| | | | | | | | - Fix WARNS.
| * - Add ":origin" label to the interface id for resolvconf(8).hrs2011-06-165-55/+139
| | | | | | | | | | | | | | | | | | | | - Add -u option to enable adding :[RA-source-address] to the interface id. - s/INET6_ADDRSTRLEN/sizeof(ntopbuf)/ - Fix a bug that can prevent -D from being overridden by -d. - /-P pidfile/-p pidfile/ for consistency with rtadvd(8). - Fix WARNS. Discussed with: ume
| * Merge from HEAD@222977.hrs2011-06-164-2/+193
| |\
| * \ Merge from HEAD@222975.hrs2011-06-1112-113/+358
| |\ \
| * | | Revert bogus changes accidentally merged in the previous commit.hrs2011-06-081-7/+5
| | | |
| * | | Merge from HEAD@222861.hrs2011-06-084-142/+285
| | | |
| | | |
| | \ \
| *-. \ \ Merge from HEAD@222848.hrs2011-06-0814-55/+101
| |\ \ \ \
| * \ \ \ \ Merge from HEAD@222712.hrs2011-06-0519-224/+1376
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| * | | | | Specify requirements for RA sending/receiving based on lifetime,hrs2011-06-052-44/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IFF_ND6_ACCEPT_RTADV, and net.inet6.ip6.forwarding. ra_output: (lifetime == 0) = output (lifetime != 0 && (ACCEPT_RTADV || !ip6.forwarding) = no output ra_input: ACCEPT_RTADV = input !ACCEPT_RTADV = no input Note that the current implementation sends RAs with zero-lifetime even if ip6.forwarding == 0. This behavior is derived from KAME and different from RFC 4861.
| * | | | | Support dynamically-added/removed interfaces. The rtadvd(8) daemon detects anhrs2011-06-055-34/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface addition/removal via RTM_IFANNOUNCE message and update the internal structure. TO BE FIXED: The advertising interface list still depends on the command line argument. The configuration file cannot be reloaded.
| * | | | | Simplify -D for LOG_DEBUG and -d for LOG_INFO.hrs2011-06-051-46/+36
| | | | | |
| * | | | | Document -M flag and fix a bug in handling of it.hrs2011-06-052-4/+6
| | | | | |
| * | | | | Rename: s/noonlinkprefix/noifprefix/.hrs2011-06-053-9/+9
| | | | | |
| * | | | | Reword noonlinkprefix sentences. It is related to prefixes on the networkhrs2011-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces, not in the routing table actually. PR: bin/152458
| * | | | | "noonlinkprefix" directive has been added. This disables gathering on-linkhrs2011-06-043-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prefixes from the kernel's routing table. A rtadvd.conf with "noonlinkprefix" + no "addr" generates an RA message with no prefix information option. PR: bin/152458
| * | | | | Fix various inconsistencies in symbol naming and data handling whichhrs2011-06-048-1123/+1067
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | made the logic behind them unnecessarily complicated. This change is a preparation to add support of dynamically-added/removed interfaces and the link status changes in a more reliable way. Changes include: - Use queue(3) for linked-list manipulation. - Use consistent variable names. - Use (AF_INET6, s, d, sizeof(d)) instead of (AF_INET6, s, a, INET6_ADDRSTRLEN) for inet_ntop(). - style(9) fixes. No functional change in this commit.
| * | | | | - INET6_ADDRSTRLEN does not include \0.hrs2011-06-044-11/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add link-local scope check for received RA messages. RFC 4861 Section 6.1.2 requires this. - Refer RFC 4861 instead of obsoleted RFC 2461.
| * | | | | - Fixes for WARNS=6.hrs2011-06-0411-67/+62
| | | | | | | | | | | | | | | | | | | | | | | | - Use IFNAMSIZ for an interface name.
| * | | | | - Use IANA reserved example.com domain for rtadvd.conf(5).hrs2011-06-047-29/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix 8-octet boundary calculation. Extra 8 octets were added when it was already on an 8-octet boundary. - Typos and style(9) fixes. Submitted by: bz
| * | | | | - Add another length check for DNSSL option. A malformed ICMP message can havehrs2011-06-042-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no '\0' in the search list and/or invalid length field. - NI_MAXHOST is defined including \0.
| * | | | | Use strchr() instead of index().hrs2011-06-031-1/+1
| | | | | |
| * | | | | Fix label encoding/decoding function for RFC 1035 Section 3.1 encoding.hrs2011-06-033-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each label can have 63 octets at most, and the length of whole domain name is limited to NI_MAXHOST.
| * | | | | - style(9) fixes.hrs2011-06-034-100/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add length check for RDNSS and DNSSL option strings. - Add check for resolv.conf(5) restriction (maximum number of entries). Submitted by: bz
| * | | | | Fix a typo: s/file/pidfile/.hrs2011-05-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Spotted by: Ben Kaduk
| * | | | | - Remove #ifdef RDNSS.hrs2011-05-3114-235/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Style(9). - Define sin6_{linklocal,sitelocal}_all{nodes,routers} vars consistently.
| * | | | | - Implement RA option expiration based on the lifetime field.hrs2011-05-313-12/+67
| | | | | | | | | | | | | | | | | | | | | | | | - Add option length check described in RFC 6106 Section 5.3.1.
| * | | | | Document -P pidfile option.hrs2011-05-301-0/+7
| | | | | |
| * | | | | - Add initial support for expiration timer for RNDSS and DNSSL options.hrs2011-05-304-248/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use queue(3) for the interface list. - Separate a list to one for RA options and another for resolvconf(8) string. - Remove SCOPE_DELIM hack. resolvconf(8) has to be corrected.
| * | | | | Fixes for WARN=6 and style(9).hrs2011-05-308-169/+167
| | | | | |
| * | | | | Fix a missing TAILQ_INSERT_TAIL().hrs2011-05-301-0/+1
| | | | | |
OpenPOWER on IntegriCloud