summaryrefslogtreecommitdiffstats
path: root/sys/netatm
Commit message (Collapse)AuthorAgeFilesLines
* Give struct socket structures a ref counting interface similar todillon2001-11-171-1/+1
| | | | | | | vnodes. This will hopefully serve as a base from which we can expand the MP code. We currently do not attempt to obtain any mutex or SX locks, but the door is open to add them when we nail down exactly how that part of it is going to work.
* KSE Milestone 2julian2001-09-124-35/+35
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Don't call log() without a format string.kris2001-09-102-2/+2
| | | | MFC after: 2 weeks
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-1/+1
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Commited patch for uni signaling fix.pirzyk2001-07-111-2/+2
| | | | | | PR: kern/28748 Submitted by: Richard Hodges <rh@matriplex.com> MFC after: 2 weeks
* Silence some warningsalfred2001-03-202-10/+10
| | | | Submitted by: LINT
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-182-2/+2
|
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-1/+1
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Add back some now needed #include <sys/systm.h>phk2000-12-0728-0/+31
| | | | Fix various warnings while here anyway.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-253-10/+4
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Add back some #include <sys/systm.h> which were needed when <sys/ktr.h>phk2000-10-304-0/+4
| | | | | | doesn't mess us up. Noted by: Harti Brandt <brandt@fokus.gmd.de>
* Remove more unused #includes.phk2000-10-3036-36/+0
|
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* Remove more unused #includes.phk2000-10-279-30/+0
|
* Remove unneeded #include <machine/clock.h>phk2000-10-1563-63/+0
|
* Forgot these files in my kerninclude limited run.phk2000-10-122-34/+0
| | | | (No core powers we abused during this commit)
* Remove the #include kitchensink <netatm/kern_include.h> and addphk2000-10-1265-193/+1314
| | | | | | | | | the #includes to the respective source files. Also un-nest includes in <dev/hfa/fore_include.h> I have run src/tools/tools/kerninclude to remove 1239 clearly unneeded #includes reducing the total from 3524 includes to 2285.
* More HARP polishina:phk2000-10-1218-63/+58
| | | | | unifdef -UFORE_SBUS -DFORE_PCI s/ATM_KERNEL/_KERNER/g
* Do some cleanups of the HARP atm codes interface into the system:phk2000-10-129-386/+0
| | | | | | | | Define the NETISR just like all the other NETISRs. unifdef -Usun -D__FreeBSD__ we will probably never support sun4c and if we do we can't use the solaris code anyway and I doubt anybody will be running Fore ATM cards in then in the first place.
* Just need to pass the address family to if_simloop(), not the whole sockaddr.archie2000-05-241-1/+1
|
* Clean up some loose ends in the network code, including the X.25 and ISOpeter2000-02-131-4/+3
| | | | | | | #ifdefs. Clean out unused netisr's and leftover netisr linker set gunk. Tested on x86 and alpha, including world. Approved by: jkh
* Move the *intrq variables into net/intrq.c and unconditionallybrian2000-01-241-1/+2
| | | | | | | | | | | include this in all kernels. Declare some const *intrq_present variables that can be checked by a module prior to using *intrq to queue data. Make the if_tun module capable of processing atm, ip, ip6, ipx, natm and netatalk packets when TUNSIFHEAD is ioctl()d on. Review not required by: freebsd-hackers
* Remove un-needed #include's.mks2000-01-1738-102/+0
| | | | Pointed out by: phk
* Notice when an interface's ATM address changes when running a local arpserver.mks2000-01-151-0/+6
|
* Process SPANS ARP requests even if source IP is 0.0.0.0 (or broadcast). Thismks2000-01-151-7/+12
| | | | can occur when talking to a Fore host which is using "bonded" interfaces.
* Fix a warning (unused variable RCSid)peter1999-11-181-1/+1
|
* Modify to work with the new sbreserve().green1999-10-091-1/+5
|
* Fixed printf format errors (don't assume that ntohl() returns u_long;bde1999-08-291-1/+1
| | | | it returns u_int on i386's and in_addr_t (u_int32_t) on alphas).
* $Id$ -> $FreeBSD$peter1999-08-2899-163/+163
|
* Clean up after removing sys/eventhandler.h from sys/systm.h at the lastmsmith1999-08-211-1/+2
| | | | | minute. This should cover all of the missed cases (and should let LINT build again).
* Allow configuration of up to 256 network interfaces per physical interface -mks1999-05-102-5/+5
| | | | just like the docs say it should.
* Suser() simplification:phk1999-04-271-6/+6
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-283-12/+12
| | | | kernel compile
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-2719-91/+92
| | | | kernel compile
* Fix if (a = b) conditional that should have been if (a == b)dillon1999-01-271-3/+3
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-5/+5
| | | | kernel compile
* Prevent duplicate output lines from 'atm show arpserver' command on systemsmks1999-01-192-11/+16
| | | | with multiple ATM physical interfaces.
* Prevent accessing freed signalling instance memory during detach processing.mks1999-01-191-12/+9
|
* Don't return errors for 'atm show arpserver' command on sigpvc and spansmks1999-01-192-5/+13
| | | | interfaces.
* Set and propagate the correct cause code values.phk1998-12-115-46/+92
| | | | Submitted by: Mike Spengler <mks@circe.networkcs.com>
* Copy application name and connection attributes for accept() sockets fromphk1998-12-111-7/+10
| | | | | | listen() socket. Allow setsockopt(APPLNAME) after socket is connected.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-0416-93/+124
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Unneeded file.phk1998-10-311-93/+0
| | | | Submitted by: Mike Spengler <mks@networkcs.com>
* Set BLLI Layer 2 protocol field when using a 'User specified' protocol.phk1998-10-311-2/+4
| | | | Submitted by: Mike Spengler <mks@networkcs.com>
* Trivial stylish changes, mostly to silence gcc.phk1998-10-3163-322/+332
| | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk
* Two patches from the HARP people:phk1998-09-1733-278/+276
| | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com>
* Add new files for HARP3phk1998-09-15100-0/+61962
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA).
OpenPOWER on IntegriCloud