summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make the INADDR_TO_IFP macro use the IP address hash lookup instead ofjlemon2001-09-291-1/+1
| | | | | | walking the entire list of IP addresses. Pointed out by: bfumerola
* Introduce network device nodes. Network devices will now automaticallyjlemon2001-09-292-63/+158
| | | | | | appear in /dev. Interface hardware ioctls (not protocol or routing) can be performed on the descriptor. The SIOCGIFCONF ioctl may be performed on the special /dev/network node.
* Change sysctl_iflist() so it has a single point of return. This willjlemon2001-09-291-3/+4
| | | | assist any future locking efforts.
* Use in_ifaddrhashtbl instead of in_ifaddrhead to look up IP address.jlemon2001-09-291-5/+1
|
* Add support for 28800 baud to sio.jlemon2001-09-292-0/+2
| | | | | PR: 30906 Submitted by: "Daniel O'Connor" <darius@chowder.dons.net.au>
* Add a hash table that contains the list of internet addresses, and usejlemon2001-09-296-63/+113
| | | | | this in place of the in_ifaddr list when appropriate. This improves performance on hosts which have a large number of IP aliases.
* Centralize satosin(), sintosa() and ifatoia() macros in <netinet/in.h>jlemon2001-09-295-11/+6
| | | | Remove local definitions.
* Pseudofs take 2:des2001-09-293-54/+170
| | | | | | | | | | | | | | | | | | | | | | | | | - Remove hardcoded uid, gid, mode from struct pfs_node; make pfs_getattr() smart enough to get it right most of the time, and allow for callbacks to handle the remaining cases. Rework the definition macros to match. - Add lots of (conditional) debugging output. - Fix a long-standing bug inherited from procfs: don't pretend to be a read-only file system. Instead, return EOPNOTSUPP for operations we truly can't support and allow others to fail silently. In particular, pfs_lookup() now treats CREATE as LOOKUP. This may need more work. - In pfs_lookup(), if the parent node is process-dependent, check that the process in question still exists. - Implement pfs_open() - its only current function is to check that the process opening the file can see the process it belongs to. - Finish adding support for writeable nodes. - Bump module version number. - Introduce lots of new bugs.
* Add a couple of API functions I need for my pseudofs WIP. Documentationdes2001-09-292-1/+54
| | | | | will follow when I've decided whether to keep this API or ditch it in favor of something slightly more subtle.
* Set the 'no pseudo header checksum' option for RX checksums, otherwisewpaul2001-09-281-3/+3
| | | | we may botch UDP checksums on receive, which will break NFS.
* The previous commit introduced some references to "curproc" which should havedes2001-09-281-2/+2
| | | | been references to "curthread". Correct this.
* Unwind some more macros. NFSMADV() was kinda silly since it was rightpeter2001-09-2810-207/+175
| | | | | | | | | | next to equivalent m_len adjustments. Move the nfsm_subs.h macros into groups depending on which phase they are used in, since that affects the error recovery requirements. Collect some of the common error checking into a single macro as preparation for unwinding some more. Have nfs_rephead return a value instead of secretly modifying args. Remove some unused function arguments that were being passed around. Clarify nfsm_reply()'s error handling (I hope).
* Oops. I forgot to cvs rm this before. There is a common nfsproto.h.peter2001-09-281-439/+0
| | | | This was a repo copy leftover.
* Remove linux_getpgid(). We map the syscall natively now.marcel2001-09-281-21/+0
| | | | PR: kern/21402
* o Remove the linux_setpgid() stub.marcel2001-09-284-30/+8
| | | | | | o Stop using linux_getpgid(); use getpgid() instead. PR: kern/21402
* Stop using linux_getpgid(). The implementation at this time ismarcel2001-09-281-2/+2
| | | | | | | | | | | | | broken and fixing it only creates a duplicate of what is already in the FreeBSD kernel. Therefore, map the syscall directly to getpgid(). PR: kern/21402 Submitted by: Christian Weisgerber <naddy@mips.inka.de> While here, redefine the second entry for setpgid() so that we don't need a stub. This is achieved by giving the second instance the type NODEF.
* Regen: Stop using linux_getpgid(). Use the native getpgid()marcel2001-09-283-9/+5
| | | | | | instead. PR: kern/21402
* Stop using linux_getpgid(). The implementation at this time ismarcel2001-09-281-1/+1
| | | | | | | | | broken and fixing it only creates a duplicate of what is already in the FreeBSD kernel. Therefore, map the syscall directly to getpgid(). PR: kern/21402 Submitted by: Christian Weisgerber <naddy@mips.inka.de>
* Make the NODEF type usable. A syscall of type NODEF will onlymarcel2001-09-281-1/+2
| | | | | | | | have its entry in the syscall table added. Nothing else is done. This differs from type NOPROTO in that NOPROTO adds a definition to syscall.h besides adding a sysent. A syscall can now have multiple entries without conflict. Note that the argssize is fixed and depends on the syscall name.
* Swap the src and dst arguments of the bcopy added in themarcel2001-09-281-1/+1
| | | | previous commit. It ain't memcpy... *cough*
* namei.h: move "struct componentname" definition outside "struct nameidata",luigi2001-09-283-19/+30
| | | | | | | | | | | | | | and provide a valid STDC/C++ definition for function NDINIT queue.h libkern.h: put explicit casts from void * in insque, remque and memset (for the records, these changes are necessary to let the files compile with g++, which is used to build a FreeBSD module for "Click" -- see www.pdos.lcs.mit.edu/click/ . Given that they have zero impact on our code, it is worthwhile to have them in. MFC after: 3 days
* Remove a couple unintentional mentions of Ethernet that crept in frombrooks2001-09-281-2/+2
| | | | ng_ether.c.
* Add device driver support for the Broadcom BCM570x family of gigabitwpaul2001-09-277-0/+4850
| | | | | | | | | | | | | | ethernet controllers. This adds support for the 3Com 3c996-T, the SysKonnect SK-9D21 and SK-9D41, and the built-in gigE NICs on Dell PowerEdge 2550 servers. The latter configuration hauls ass: preliminary measurements show TCP speeds of over 900Mbps using only normal size frames. TCP/IP checksum offload, jumbo frames and VLAN tag insertion/stripping are supported, as well as interrupt moderation. Still need to fix autonegotiation support for 1000baseSX NICs, but beyond that, driver is pretty solid.
* Two main changes here:luigi2001-09-277-254/+335
| | | | | | | | | | | | | | | + implement "limit" rules, which permit to limit the number of sessions between certain host pairs (according to masks). These are a special type of stateful rules, which might be of interest in some cases. See the ipfw manpage for details. + merge the list pointers and ipfw rule descriptors in the kernel, so the code is smaller, faster and more readable. This patch basically consists in replacing "foo->rule->bar" with "rule->bar" all over the place. I have been willing to do this for ages! MFC after: 1 week
* Make nfsm_dissect() have an obvious return value.peter2001-09-279-166/+157
|
* Add the new ng_gif, ng_gif_demux, and ng_ip_input nodes to NOTES so theybrooks2001-09-272-0/+6
| | | | get compiled with LINT.
* Add ng_ip_input. A new netgraph node for queuing IP packets into thebrooks2001-09-276-0/+227
| | | | main IP input processing code.
* - Fix some minor whitespace nits.jhb2001-09-271-4/+4
| | | | | | - Move the SPECIAL_FLAG #define up next to the NOHOLDER #define and fix a little nit that caused it to be defined as -(sizeof (struct thread) + 1) instead of -2.
* Restore this file to style(9). Mostly consists of whitespace fixes in thejhb2001-09-271-127/+126
| | | | structure definitions. There were some older whitespace bogons as well.
* Fix a whitespace style nit.jhb2001-09-271-1/+1
|
* Disable the check in icu_setup() to see if a handler was already used asjhb2001-09-274-0/+8
| | | | | | | the current interrupt thread routines will guarantee the condition this is checking for at a higher level but inthand_add() and inthand_remove() as they currently exist don't satisfy this condition. (Which does need to be fixed but which will take a bit more work.) This fixes shared interrupts.
* Fix typo: BGGPHY -> BRGPHY in one of the #defines I added the other day.wpaul2001-09-271-1/+1
|
* Gate low level console output on mtx_lock_spin(&sio_lock), if thejlemon2001-09-272-0/+8
| | | | | | sio_lock has been initialized. This prevents the low level console output (kernel printf) from clobbering the sio settings if the system happens to be in the middle of comstart().
* Fix typo in a comment.luigi2001-09-271-1/+1
| | | | MFC-after: 3 days
* Remove unused (and duplicate) struct ip_opts which is never used,luigi2001-09-271-12/+0
| | | | | | | | | | | | | | | not referenced in Stevens, and does not compile with g++. There is an equivalent structure, struct ipoption in ip_var.h which is actually used in various parts of the kernel, and also referenced in Stevens. Bill Fenner also says: ... if you want the trivia, struct ip_opts was introduced in in.h SCCS revision 7.9, on 6/28/1990, by Mike Karels. struct ipoption was introduced in ip_var.h SCCS revision 6.5, on 9/16/1985, by... Mike Karels. MFC-after: 3 days
* Update a comment to reflect the param.c -> subr_param.c move.murray2001-09-272-2/+2
| | | | | PR: kern/30766 Submitted by: Kevin Way <kevin.way@overtone.org>
* This driver can talk to the Rio600 as well, make it happen.alfred2001-09-271-1/+2
| | | | Hardware (and patience) provided by: Andrew J Caines <A.J.Caines@halplant.com>
* Return EINVAL if the passed intr is out of bounds.jlemon2001-09-274-0/+4
| | | | | | PR: 30857 Submitted by: David Xu <davidx@viasoft.com.cn> MFC: 1 week
* Tidy up nfsm_build usage. This is only partially finished.peter2001-09-277-80/+81
|
* The initial commit contained an error in the license, this is thebrooks2001-09-274-9/+21
| | | | correct one.
* Oops, forgot to rm this last time.peter2001-09-261-564/+0
|
* /home/brooks/ng_gif.messagebrooks2001-09-2611-1/+1174
|
* Use LIST_ macros instead of TAILQ_ macros to be more like NetBSD.brooks2001-09-262-9/+12
| | | | Obtained from: NetBSD
* The number of ccd(4) devices is no longer set at compile time so stopbrooks2001-09-263-3/+3
| | | | trying to do it in the examples and config files.
* Call securelevel_gt with a credential. Also, s/p/td->td_proc/.brooks2001-09-261-2/+2
| | | | Submitted by: LINT
* Include sys/proc.h for the definition of securelevel_ge().brooks2001-09-261-0/+1
| | | | Submitted by: LINT
* o Re-enable support of system file flags in jail() by adding back therwatson2001-09-261-1/+1
| | | | | | | | | | | | | PRISON_ROOT to the suser_xxx() check. Since securelevels may now be raised in specific jails, use of system flags can still be restricted in jail(), but in a more configurable way. o Users of jail() expecting system flags (such as schg) to restrict jail()'s should be sure to set the securelevel appropriately in jail()'s. o This fixes activities involving automated system flag removal in jail(), including installkernel and friends. Obtained from: TrustedBSD Project
* o When performing a securelevel check as part of securelevel_ge() orrwatson2001-09-261-8/+15
| | | | | | | | | | | | securelevel_gt(), determine first if a local securelevel exists -- if so, perform the check based on imax(local, global). Otherwise, simply use the global value. o Note: even though local securelevels might lag below the global one, if the global value is updated to higher than local values, maximum will still be used, making the global dominant even if there is local lag. Obtained from: TrustedBSD Project
* o Modify kern.securelevel MIB entry to return a local securelevel, ifrwatson2001-09-261-6/+27
| | | | | | | | | | | | | one is present in the current jail, otherwise, to return the global securelevel. o If the securelevel is being updated, require that it be greater than the maximum of local and global, if a local securelevel exists, otherwise, just maximum of the global. If there is a local securelevel, update the local one instead of the global one. o Note: this does allow local securelevels to lag behind the global one as long as the local one is not updated following a global increase. Obtained from: TrustedBSD Project
* o Initialize per-jail securelevel from global securelevel as part ofrwatson2001-09-261-0/+1
| | | | | | jail creation. Obtained from: TrustedBSD Project
OpenPOWER on IntegriCloud