summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Use strlcpy(3) instead of strcpy(3).hmp2004-05-101-3/+3
| | | | | | PR: 46761 Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
* Remove redundant sanity check before add_mac() when addingcsjp2004-05-091-2/+0
| | | | | | | | | mac ipfw rules. The exact same sanity check is performed as the first operation of add_mac(), so there is no sense in doing it twice. Approved by: bmilekic (mentor) PR: bin/55981
* Teach route(8) how to deal with root being in a prison. If prisoncsjp2004-05-071-0/+4
| | | | | | | | | | root is allowed to create raw sockets, then they will be able to create routing sockets, too. However prison-root is not able to manipulate routing tables. So when route(8) attempts to write to a routing socket and recieves EPERM from the kernel, exit rather than moving on with execution. Approved by: bmilekic (mentor)
* When editing a Sun label, make the search for a valid partition linejoerg2004-05-041-4/+21
| | | | | | | violate POLA a little less by not requiring exactly two spaces in front of the entry (and silently discarding any non-matching entry). We now recognize anything starting with a letter followed by a colon as the first non-space chars as a partition entry.
* Include <sys/time.h> for the declaration of struct bintime instead ofbde2004-05-041-0/+1
| | | | | | depending on namespace pollution in <sys/stat.h>. struct bintime is only needed to satisfy leakage of kernel interfaces to userland and namespace bugs in those interfaces...
* Add missing command.pjd2004-05-031-1/+1
|
* Add missing commands.pjd2004-05-031-1/+2
|
* Connect ggatec(8), ggated(8) and ggatel(8) to the build.pjd2004-05-031-0/+1
|
* Don't repeat handshake.pjd2004-05-031-4/+4
| | | | | | | | | | | | | | | This little thing can cause a deadlock, because taste mechanism start to work after creation of ggate provider and I/O requests are sent from other classes from the g_event thread, so number of pending events isn't 0. Now ggatec(8) start second handshake and ggated(8) is trying to open GEOM provider (for example md(4)) and it can't, because it hangs on g_waitidle() in g_dev_open(). g_waitidle() cannot finish because there is a pending read on event queue, and this read can't be finished, because ggated(8) can't open target device. GEOM Gate will recover from this deadlock, because requests will timeout, but it of course isn't the best solution and I don't know better one for now, so we should avoid opening GEOM providers while there are pending requests in event queue.
* Link state change notification of ethernet media to the routing socket.andre2004-05-031-1/+14
| | | | | | | o Print the link state for interface messages in monitor mode. No objections by: sam, wpaul, ru, bms Brucification by: bde
* Paths correction.pjd2004-05-033-6/+6
| | | | Pointed out by: ache, make buildworld
* We don't need this any more, while we have /usr/include/geom/concat/.pjd2004-05-031-1/+0
|
* Fix compiling on 64-bit architectures.pjd2004-05-024-4/+4
|
* Build gpt(8) on all platforms, except sparc64. Currently gpt(8) ismarcel2004-05-011-2/+4
| | | | | | not endian agnostic and thus will create big-endian GPTs on sparc64. This we don't support. So, before gpt(8) can be used on a big-endian machine, it has to deal with the endianness.
* For both ifconfig and route if we didn't get enough memory from theambrisko2004-04-302-6/+32
| | | | | | | | | | | prior sysctl due to the structure growing between calls try again. Also try again for deleting routes if things fail. We've seen route -f fail this way which does not actually flush all routes. This fixes it. It will whine but it will do the work. PR: 56732 Obtained from: IronPort
* GEOM Gate network daemon.pjd2004-04-303-0/+774
|
* GEOM Gate network client and control utility.pjd2004-04-303-0/+708
|
* GEOM Gate local control utility.pjd2004-04-303-0/+497
|
* Stuff shared between ggate utilities.pjd2004-04-302-0/+473
|
* Makefile for building ggate utilities: ggatel(8), ggatec(8), ggated(8).pjd2004-04-301-0/+5
|
* Invoke tzset(3) within the main loop to catch changes to /etc/localtimeghelmer2004-04-271-0/+2
| | | | | when running as a daemon in the hope that it will fix situations where the CMOS clock was apparently set using the stale TZ offset.
* The previous change to mount(8) to report ufs or ufs2 usedbmilekic2004-04-262-13/+0
| | | | | | | | | | | libufs, which only works for Charlie root. This change reverts the introduction of libufs and moves the check into the kernel. Since the f_fstypename is the same for both ufs and ufs2, we check fs_magic for presence of ufs2 and copy "ufs2" explicitly instead. Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* Add the option versrcreach to verify that a valid route to theandre2004-04-232-2/+28
| | | | | | | | | | | | | | | | | | | | source address of a packet exists in the routing table. The default route is ignored because it would match everything and render the check pointless. This option is very useful for routers with a complete view of the Internet (BGP) in the routing table to reject packets with spoofed or unrouteable source addresses. Example: ipfw add 1000 deny ip from any to any not versrcreach also known in Cisco-speak as: ip verify unicast source reachable-via any Reviewed by: luigi
* Only compare the interesting part of the bootblock with its backup.tjr2004-04-201-4/+8
| | | | | | | Allow check to proceed with bad backup boot block if we're doing a readonly check. Various typos in comments. Obtained from: NetBSD
* use %zu instead of %zdrees2004-04-151-2/+2
| | | | Requested by: Bruce Evans
* Replace ROUNDUP/ADVANCE with SA_SIZEluigi2004-04-134-34/+7
|
* Add -P arguments for dump(8) and restore(8) which allow the user togreen2004-04-138-39/+176
| | | | | | | | | | | use backup methods other than files and tapes. The -P argument is a normal sh(1) pipeline with either $DUMP_VOLUME or $RESTORE_VOLUME defined in the environment, respectively. For example, I can back up my home to three DVD+R[W]s as so: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s2e 40028550 10093140 26733126 27% /home green# dump -0 -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /home
* Improve the warnings for dump -L and do not bother doing the snapshot ifgreen2004-04-122-3/+11
| | | | | | | it is specified for read-only filesystems. Submitted by: Jason Young <jyoung8607@hotmail.com> PR: 46672
* Document that -m also causes the capability list to be displayed.ru2004-04-111-1/+1
|
* Added the new interface capability option for drivers that implementru2004-04-112-2/+12
| | | | | | user-configurable polling(4) support. Make ifconfig(8) aware of it. Suggested by: luigi
* Fixed unformatting of copyright clause 4 in previous commit.bde2004-04-101-1/+1
|
* Remove advertising clause from University of California Regent's license,markm2004-04-09133-533/+2
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* o Fix an incorrect parsing of 0.0.0.0/0 expression.maxim2004-04-091-1/+1
| | | | | PR: kern/64778 MFC after: 6 weeks
* Don't turn off the regular SIGINFO status information. The use ofiedowse2004-04-071-14/+0
| | | | | | | | | | the NOKERNINFO flag only marginally de-clutters the output and has a number of unwanted side effects: o The kernel info might be what you want to see o ^T is left non-functional if ping is killed non-cleanly o "ping -q foo &" gets suspended on tty output Encouraged by: bde
* Add a workaround.pjd2004-04-041-2/+2
| | | | | | | | | | | | Now, if we have for example: ad0s1 ad0s1c ad2s1 ad2s1c and we will try to do: gconcat label foo /dev/ad0s1 /dev/ad2s1 we'll get a panic: panic: spoiled but dcr = 1 for inside of geom_slice class, backtrace shows: g_access() g_slice_access() g_access() g_concat_read_metadata() We need to get a proper fix for this race before geom(8) will be committed.
* Fix an off-by-one error in the function used to input the ascii/hex strings.phk2004-04-041-4/+7
| | | | Be a little bit more helpful in error messages.
* Include <time.h> instead of depending on namespace pollution in <sys/stat.h>bde2004-04-041-0/+1
| | | | for the declaration of time().
* It seems growfs(8) is now WARNS?=6 safe.mux2004-04-031-1/+1
| | | | Tested on: alpha, i386, ia64, sparc64
* Fix the remaining warnings of growfs(8) on my sparc64 box withmux2004-04-031-4/+4
| | | | | | | | WARNS=6. I don't change the WARNS level in the Makefile because I didn't tested this on other archs. The fs.h fix was suggested by: marcel Reviewed by: md5(1)
* - Don't abuse caddr_t when what we really want is a void *.mux2004-04-031-4/+5
| | | | | | | - Use the %jd format and a cast to intmax_t to print an int64_t. - The return type of getopt() is an int, not a char. This fixes some warnings but there's still much more work to do here.
* Temporarily go back to WARNS=0 until I can figure out what's breakingle2004-04-031-1/+1
| | | | | | the {powerpc, sparc64, ia64} tinderboxes. Sorry for the noise. :-(
* Make growfs WARNS=6 clean.le2004-04-033-45/+49
| | | | Approved by: grog (mentor)
* Remove these MAINTAINER lines since the maintainers has had theirjohan2004-04-012-4/+0
| | | | commit bits retired for safe keeping.
* Fix regression in setkey whereby parser would fail to recognise tcp asbms2004-03-311-0/+1
| | | | | | | both a security protocol and an upper level protocol for encapsulation. PR: bin/63616 Submitted by: ume@
* Implement a '-f' flag to teach bsdlabel to work on files instead ofluigi2004-03-302-13/+52
| | | | disk partitions.
* add support for setting 802.11 rtsthreshold, transmit power,sam2004-03-304-1/+101
| | | | | | and 11g protection mode Reviewed by: imp (just code)
* Remove a stray \n from a setproctitle.dwmalone2004-03-301-1/+1
| | | | Submitted by: Niki Denev <nike_d@cytexbg.com>
* Backout revision 1.140; it seems that the previous version is clearceri2004-03-271-2/+1
| | | | | | enough. Requested by: ru
* Don't read an inode which isn't used to avoid problems on UFS2 where notle2004-03-261-0/+8
| | | | | | all inodes are initialized when running newfs. Approved by: grog (mentor)
* fix for 64-bit arch:rees2004-03-261-4/+1
| | | | | | | use %zd to print size_t types and sizeof() Approved by: alfred Tested on: sparc64, amd64
OpenPOWER on IntegriCloud