summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* -d is a flag, not an argument. Use .Fl here.thompsa2008-05-201-1/+1
|
* Update to reflect reality:rpaulo2008-05-201-3/+8
| | | | | | | * iasl(8) supports ACPI 3.0b. * Add new options. MFC after: 1 week
* Remove -, .Ar adds that automatically.thompsa2008-05-191-1/+1
| | | | Pointed out by: brueffer
* Bump document date for last change.thompsa2008-05-191-1/+1
|
* Allow wlandebug to set the default debug level which is inherited when vaps arethompsa2008-05-192-6/+20
| | | | created.
* Add age(4) to the list of supported network interface.yongari2008-05-191-0/+1
|
* Add support for specifying which INDEX files to build via portsnap.conf.cperciva2008-05-171-4/+16
| | | | | Requested by: brooks Reminded by: brooks, about halfway through his BSDCan talk
* Improve the virtual scrolling mechanism to make middle clicking lessphilip2008-05-152-15/+58
| | | | | | | | | | | difficult. Add a -L option (yet another option, indeed!) which changes the speed of scrolling and change -U to only affect the scroll threshold. This should make middle-clicking a much more pleasant experience. PR: bin/120186 Submitted by: Aragon Gouveia <aragon -at- phat.za.net> MFC after: 3 days
* Populate usage()phk2008-05-143-12/+30
| | | | Submitted by: Jaakko Heinonen <jh@saunalahti.fi>
* Fix pstat behaviour when using coredumps. The reference to tp wasremko2008-05-141-1/+1
| | | | | | | | | | incorrect and should have been poining to &tty, tp is a virtual address from the coredump, while we should obtain the address through the tty struct. Approved by: imp (mentor, implicit trivial changes) MFC after: 1 week Submitted by: Ed Schouten (ed at 80836 dot nl)
* Add a -8 switch to syslogd to prevent it from mangling 8-bit data.brian2008-05-142-5/+26
|
* Better to just statically set the name vs. determine at run time.obrien2008-05-1112-12/+16
|
* Sync program name agnostic changes with SADE.obrien2008-05-114-8/+10
|
* Clean up several instances of SADE calling itself sysinstall.obrien2008-05-115-10/+12
| | | | (do so generically so the same set of changes can be applied to sysinstall)
* Change two variables to size_t to improve portability.julian2008-05-101-1/+1
| | | | Submitted by: Xin Li
* Misc mdoc improvements.brueffer2008-05-101-4/+9
|
* allow setfib to be compiled.julian2008-05-101-0/+1
|
* Add code to allow the system to handle multiple routing tables.julian2008-05-093-0/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This particular implementation is designed to be fully backwards compatible and to be MFC-able to 7.x (and 6.x) Currently the only protocol that can make use of the multiple tables is IPv4 Similar functionality exists in OpenBSD and Linux. From my notes: ----- One thing where FreeBSD has been falling behind, and which by chance I have some time to work on is "policy based routing", which allows different packet streams to be routed by more than just the destination address. Constraints: ------------ I want to make some form of this available in the 6.x tree (and by extension 7.x) , but FreeBSD in general needs it so I might as well do it in -current and back port the portions I need. One of the ways that this can be done is to have the ability to instantiate multiple kernel routing tables (which I will now refer to as "Forwarding Information Bases" or "FIBs" for political correctness reasons). Which FIB a particular packet uses to make the next hop decision can be decided by a number of mechanisms. The policies these mechanisms implement are the "Policies" referred to in "Policy based routing". One of the constraints I have if I try to back port this work to 6.x is that it must be implemented as a EXTENSION to the existing ABIs in 6.x so that third party applications do not need to be recompiled in timespan of the branch. This first version will not have some of the bells and whistles that will come with later versions. It will, for example, be limited to 16 tables in the first commit. Implementation method, Compatible version. (part 1) ------------------------------- For this reason I have implemented a "sufficient subset" of a multiple routing table solution in Perforce, and back-ported it to 6.x. (also in Perforce though not always caught up with what I have done in -current/P4). The subset allows a number of FIBs to be defined at compile time (8 is sufficient for my purposes in 6.x) and implements the changes needed to allow IPV4 to use them. I have not done the changes for ipv6 simply because I do not need it, and I do not have enough knowledge of ipv6 (e.g. neighbor discovery) needed to do it. Other protocol families are left untouched and should there be users with proprietary protocol families, they should continue to work and be oblivious to the existence of the extra FIBs. To understand how this is done, one must know that the current FIB code starts everything off with a single dimensional array of pointers to FIB head structures (One per protocol family), each of which in turn points to the trie of routes available to that family. The basic change in the ABI compatible version of the change is to extent that array to be a 2 dimensional array, so that instead of protocol family X looking at rt_tables[X] for the table it needs, it looks at rt_tables[Y][X] when for all protocol families except ipv4 Y is always 0. Code that is unaware of the change always just sees the first row of the table, which of course looks just like the one dimensional array that existed before. The entry points rtrequest(), rtalloc(), rtalloc1(), rtalloc_ign() are all maintained, but refer only to the first row of the array, so that existing callers in proprietary protocols can continue to do the "right thing". Some new entry points are added, for the exclusive use of ipv4 code called in_rtrequest(), in_rtalloc(), in_rtalloc1() and in_rtalloc_ign(), which have an extra argument which refers the code to the correct row. In addition, there are some new entry points (currently called rtalloc_fib() and friends) that check the Address family being looked up and call either rtalloc() (and friends) if the protocol is not IPv4 forcing the action to row 0 or to the appropriate row if it IS IPv4 (and that info is available). These are for calling from code that is not specific to any particular protocol. The way these are implemented would change in the non ABI preserving code to be added later. One feature of the first version of the code is that for ipv4, the interface routes show up automatically on all the FIBs, so that no matter what FIB you select you always have the basic direct attached hosts available to you. (rtinit() does this automatically). You CAN delete an interface route from one FIB should you want to but by default it's there. ARP information is also available in each FIB. It's assumed that the same machine would have the same MAC address, regardless of which FIB you are using to get to it. This brings us as to how the correct FIB is selected for an outgoing IPV4 packet. Firstly, all packets have a FIB associated with them. if nothing has been done to change it, it will be FIB 0. The FIB is changed in the following ways. Packets fall into one of a number of classes. 1/ locally generated packets, coming from a socket/PCB. Such packets select a FIB from a number associated with the socket/PCB. This in turn is inherited from the process, but can be changed by a socket option. The process in turn inherits it on fork. I have written a utility call setfib that acts a bit like nice.. setfib -3 ping target.example.com # will use fib 3 for ping. It is an obvious extension to make it a property of a jail but I have not done so. It can be achieved by combining the setfib and jail commands. 2/ packets received on an interface for forwarding. By default these packets would use table 0, (or possibly a number settable in a sysctl(not yet)). but prior to routing the firewall can inspect them (see below). (possibly in the future you may be able to associate a FIB with packets received on an interface.. An ifconfig arg, but not yet.) 3/ packets inspected by a packet classifier, which can arbitrarily associate a fib with it on a packet by packet basis. A fib assigned to a packet by a packet classifier (such as ipfw) would over-ride a fib associated by a more default source. (such as cases 1 or 2). 4/ a tcp listen socket associated with a fib will generate accept sockets that are associated with that same fib. 5/ Packets generated in response to some other packet (e.g. reset or icmp packets). These should use the FIB associated with the packet being reponded to. 6/ Packets generated during encapsulation. gif, tun and other tunnel interfaces will encapsulate using the FIB that was in effect withthe proces that set up the tunnel. thus setfib 1 ifconfig gif0 [tunnel instructions] will set the fib for the tunnel to use to be fib 1. Routing messages would be associated with their process, and thus select one FIB or another. messages from the kernel would be associated with the fib they refer to and would only be received by a routing socket associated with that fib. (not yet implemented) In addition Netstat has been edited to be able to cope with the fact that the array is now 2 dimensional. (It looks in system memory using libkvm (!)). Old versions of netstat see only the first FIB. In addition two sysctls are added to give: a) the number of FIBs compiled in (active) b) the default FIB of the calling process. Early testing experience: ------------------------- Basically our (IronPort's) appliance does this functionality already using ipfw fwd but that method has some drawbacks. For example, It can't fully simulate a routing table because it can't influence the socket's choice of local address when a connect() is done. Testing during the generating of these changes has been remarkably smooth so far. Multiple tables have co-existed with no notable side effects, and packets have been routes accordingly. ipfw has grown 2 new keywords: setfib N ip from anay to any count ip from any to any fib N In pf there seems to be a requirement to be able to give symbolic names to the fibs but I do not have that capacity. I am not sure if it is required. SCTP has interestingly enough built in support for this, called VRFs in Cisco parlance. it will be interesting to see how that handles it when it suddenly actually does something. Where to next: -------------------- After committing the ABI compatible version and MFCing it, I'd like to proceed in a forward direction in -current. this will result in some roto-tilling in the routing code. Firstly: the current code's idea of having a separate tree per protocol family, all of the same format, and pointed to by the 1 dimensional array is a bit silly. Especially when one considers that there is code that makes assumptions about every protocol having the same internal structures there. Some protocols don't WANT that sort of structure. (for example the whole idea of a netmask is foreign to appletalk). This needs to be made opaque to the external code. My suggested first change is to add routing method pointers to the 'domain' structure, along with information pointing the data. instead of having an array of pointers to uniform structures, there would be an array pointing to the 'domain' structures for each protocol address domain (protocol family), and the methods this reached would be called. The methods would have an argument that gives FIB number, but the protocol would be free to ignore it. When the ABI can be changed it raises the possibilty of the addition of a fib entry into the "struct route". Currently, the structure contains the sockaddr of the desination, and the resulting fib entry. To make this work fully, one could add a fib number so that given an address and a fib, one can find the third element, the fib entry. Interaction with the ARP layer/ LL layer would need to be revisited as well. Qing Li has been working on this already. This work was sponsored by Ironport Systems/Cisco Reviewed by: several including rwatson, bz and mlair (parts each) Obtained from: Ironport systems/Cisco
* o Change the warning dialog for the 'W' command in both the labelmtm2008-05-052-14/+8
| | | | | | | | | and partition editors to reflect the fact that this is a stand-alone application, not sysinstall(8). o Change an instance of sade(8) refering to itself as sysinstall(8) in a confirmation dialog. MFC after: 1 week
* - Backout 1.15, it was committed by accidentpav2008-05-031-0/+5
| | | | Pointy hat to: pav
* - Restore functionality broken in previous commit; we need to be able to reportpav2008-05-035-32/+37
| | | | | | | multiple installed packages with the same PKGORIGIN. Reported by: marcus MFC after: 1 month
* sade(8) does not need FTP I/O.delphij2008-05-031-2/+2
|
* Remove duplicate headers <sys/socket.h>kevlo2008-04-211-1/+0
|
* update for vapssam2008-04-201-22/+27
| | | | Supported by: Hobnob
* o update for vapssam2008-04-203-21/+314
| | | | | | o add private wired driver that fixes various bugs in the vendor version Submitted by: thompsa (ndis fixups)
* o update for vapssam2008-04-202-112/+160
| | | | | | | o add+enable radius acl support Supported by: Hobnob Submitted by: Chris Zimmermann (acl support)
* Fix pkg_info when specifying a remote package.flz2008-04-162-18/+23
| | | | MFC after: 1 week
* If the .inf file did not have a Default entry for the registry key then writethompsa2008-04-151-1/+3
| | | | out a blank value and close the brackets on the ndis_regvals array.
* Use a ndis_ prefix on the C variable instead of directly using the .systhompsa2008-04-152-7/+7
| | | | | | | filename, this would fail if the filename started with a number. PR: bin/84911 Submitted by: Fredrik Lindberg
* Optimize package registration/deregistration. Previously, when looking up thepav2008-04-114-51/+144
| | | | | | | | | | | package name for the origin of a dependency, all entries in /var/db/pkg were traversed for each dependency of added/removed package. Now, gather all the origins first, then do the lookup in a single pass over /var/db/pkg. This should provide a major speedup for packages with hundreds of dependencies. Submitted by: rdivacky (earlier version) MFC after: 1 month
* Fix a bug introduced by DEFAULTS feature. When the config fileimp2008-04-101-0/+2
| | | | | | | doesn't exist, we make a directory and then say "oops, that file isn't there" leaving the directory behind. Add a stat for the config file so that we detect this before making the directory. This is semi-lame, but less lame than having this bug.
* Clean up makefiles and a manpage.ru2008-04-107-115/+106
| | | | OK'ed by: phk
* If we can't find or load the kernel NLM support, don't just go ahead anddfr2008-04-101-1/+2
| | | | try to use it anyway.
* Add a distfile target to generate a distfile to be used by theflz2008-04-091-0/+16
| | | | ports-mgmt/pkg_install port.
* Remove ftp.hk.super.net, the DNS isn't pointing to anything at the moment.remko2008-04-081-3/+0
| | | | | | | | | | | I tested this as well as the submitter and couldn't resolve this either, since I dont want to "announce" dead mirrors, I'll remove it from the list. PR: 122567 Submitted by: vs Approved by: imp (mentor, implicit for trivial changes) MFC after: 1 week
* Add a couple of missing wireless NIC driver modules.weongyo2008-04-081-0/+8
| | | | Approved by: thompsa (mentor)
* Fix apparent mis-paste in previous check-in by author.kan2008-04-061-1/+1
|
* Call listen(2) on bound tcp sockets before passing them to svc_tli_create.dfr2008-04-062-0/+6
|
* Allow for a zero length 'loader'.dfr2008-04-051-0/+2
|
* Accept empty -T arguments.phk2008-03-312-1/+5
| | | | Proposed by: clemens fischer <ino-qc@spotteswoode.de.eu.org>
* Retire pkg_sign. It was used to embed signatures in gzip'ed packages.flz2008-03-3118-2590/+1
| | | | | | It's not relevant since we've changed to bzip2 compression. MFC after: 1 week
* Improve style a little and remove one always-true condition.rdivacky2008-03-301-3/+3
| | | | | Approved by: portmgr (pav) Approved by: kib (mentor)
* Don't always link statically with libwrap. By the time amd(8)ru2008-03-291-1/+1
| | | | | | runs, /usr/lib should have already been mounted. Found by: make checkdpadd
* Add missing library dependency.ru2008-03-291-0/+1
|
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerru2008-03-292-3/+3
| | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect.
* Remove the '-k' option.dfr2008-03-271-1/+1
|
* Add kernel module support for nfslockd and krpc. Use the module systemdfr2008-03-272-11/+14
| | | | | | | to detect (or load) kernel NLM support in rpc.lockd. Remove the '-k' option to rpc.lockd and make kernel NLM the default. A user can still force the use of the old user NLM by building a kernel without NFSLOCKD and/or removing the nfslockd.ko module.
* Add the new kernel-mode NFS Lock Manager. To use it instead of thedfr2008-03-266-17/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | user-mode lock manager, build a kernel with the NFSLOCKD option and add '-k' to 'rpc_lockd_flags' in rc.conf. Highlights include: * Thread-safe kernel RPC client - many threads can use the same RPC client handle safely with replies being de-multiplexed at the socket upcall (typically driven directly by the NIC interrupt) and handed off to whichever thread matches the reply. For UDP sockets, many RPC clients can share the same socket. This allows the use of a single privileged UDP port number to talk to an arbitrary number of remote hosts. * Single-threaded kernel RPC server. Adding support for multi-threaded server would be relatively straightforward and would follow approximately the Solaris KPI. A single thread should be sufficient for the NLM since it should rarely block in normal operation. * Kernel mode NLM server supporting cancel requests and granted callbacks. I've tested the NLM server reasonably extensively - it passes both my own tests and the NFS Connectathon locking tests running on Solaris, Mac OS X and Ubuntu Linux. * Userland NLM client supported. While the NLM server doesn't have support for the local NFS client's locking needs, it does have to field async replies and granted callbacks from remote NLMs that the local client has contacted. We relay these replies to the userland rpc.lockd over a local domain RPC socket. * Robust deadlock detection for the local lock manager. In particular it will detect deadlocks caused by a lock request that covers more than one blocking request. As required by the NLM protocol, all deadlock detection happens synchronously - a user is guaranteed that if a lock request isn't rejected immediately, the lock will eventually be granted. The old system allowed for a 'deferred deadlock' condition where a blocked lock request could wake up and find that some other deadlock-causing lock owner had beaten them to the lock. * Since both local and remote locks are managed by the same kernel locking code, local and remote processes can safely use file locks for mutual exclusion. Local processes have no fairness advantage compared to remote processes when contending to lock a region that has just been unlocked - the local lock manager enforces a strict first-come first-served model for both local and remote lockers. Sponsored by: Isilon Systems PR: 95247 107555 115524 116679 MFC after: 2 weeks
* Adjust recognize-shared-libraries regex to avoid matching symlinks tocperciva2008-03-251-14/+14
| | | | | | | | | | | | | | | | | | | shared libraries. This fixes a problem which resulted in 6.x->7.x upgrades having the /usr/lib/libpthread.so -> libthr.so symlink missing; what happened was that the old libpthread.so symlink pointed to /lib/libpthread.so.2 -- which matched the "/lib/*\.so\.[0-9]+" regex -- but the new symlink didn't, so FreeBSD Update got confused and deleted the symlink as part of its "remove old shared libraries" step. To recreate the symlink (which I understand is necessary for ports like KDE to build) on a 7.x system which FreeBSD Update upgraded from 6.x: # ln -s libthr.so /usr/lib/libpthread.so Reported by: Dmitry RCL Rekman Help diagnosing bug from: kris MFC after: 7 days
* Spell "blackhole" correctly and fix one grammar nit.ru2008-03-241-4/+4
|
OpenPOWER on IntegriCloud