| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
instead of int where the variable has to hold buffer lengths,
use u_int for things like number of network interfaces which
in principle can never be negative.
|
|
|
|
|
|
|
|
|
|
|
| |
These were a left over from when the private memory pools were
converted to use uma zones. The limit of UMA zones, however,
works differently. When a zone is limited to only one or two pages
than, on multi-cpu systems, processes can get stuck on the zonelimit,
because all remaining free items are in caches of other CPUs.
Also add rudimentary error handling in some places (panic) when a zone
cannot be created.
|
| |
|
|
|
|
| |
Approved by: trb
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
|
|
|
|
| |
<net/if_var.h>. But depend on the standard pollution in <sys/param.h>.
Removed unused includes.
|
|
|
|
| |
to the appropriate UMA api calls.
|
|
|
|
|
|
|
| |
- Nuke KM_ macros from port.h
This is a leadin step towards cleaning up this code as I wait for some
ATM cards and a ATM switch to arrive.
|
| |
|
| |
|
| |
|
|
|
|
| |
(No core powers we abused during this commit)
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
unifdef -UFORE_SBUS -DFORE_PCI
s/ATM_KERNEL/_KERNER/g
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Pointed out by: phk
|
| |
|
|
|
|
| |
kernel compile
|
|
|
|
| |
interfaces.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Reviewed by: Mike Spengler <mks@networkcs.com>
Submitted by: phk
|
|
Host ATM Research Platform (HARP), Network Computing Services, Inc.
This software was developed with the support of the Defense Advanced
Research Projects Agency (DARPA).
|