Commit Graph

80020 Commits

Author SHA1 Message Date
martin
c155aeac5f Adapt to (temporary) DLT_PPP_ETHER useage by the pppoe code in tree
now. This needs to be fixed when a generic PPP sheme is implemented.
2001-04-29 10:25:50 +00:00
martin
b5b75a7d19 Add an in-kernel PPPoE (ppp over ethernet, RFC 2516) implementation,
based on the existing net/if_spppsubr.c stuff.

While there are completely userland (bpf based) implementations available,
those have a vastly larger per packet overhead thus causing major CPU
overhead and higher latency. On an i386 base router, running a 486DX at 50MHz
my line (768kBit/s downstream) was limited to something (varying) between 10
and 20 kByte/s effective download rate. With this implementation I get full
bandwidth (~85kByte/s).

This is client side only. Arguably the right way to add full PPPoE support
(including server side) would be a variation of the ppp line discipline and
appropriate modifications to pppd. I promise every help I can give to anyone
doing that - but I needed this realy fast. Besids, on low memory NAT boxes
with typically a single PPPoE connection, this implementation is more
lightweight than a pppd based one, which nicely fits my needs.
2001-04-29 09:50:36 +00:00
jmc
a2d52d0ed4 Add #define for 1394 ROM signature 2001-04-29 08:37:04 +00:00
scw
81be7c00b7 Compute PAGER_MAP_SIZE at runtime to avoid needlessly crippling large-
memory models for the benefit of small-memory models.

Uses a heuristic of min(onboard_ram_size/2, 16MB).
2001-04-29 07:53:56 +00:00
scw
89e9fc44d5 Do the same as mac68k/pmap.c:1.70 to prevent wired pages being
removed by pmap_collect().
2001-04-29 07:41:58 +00:00
thorpej
f38e77afea Add glue for page zero'ing in the idle loop. 2001-04-29 06:54:03 +00:00
thorpej
a553aade18 Print print color bucket hit/miss stats. 2001-04-29 05:56:47 +00:00
tron
5961b7a2e1 Add description of "PERL5_REQD". 2001-04-29 05:56:20 +00:00
thorpej
a96fcfa38c Disable the optimized in4_cksum() for now -- there seem to be problems. 2001-04-29 05:54:29 +00:00
garbled
5d592bdca9 Add directories and files for the system/localtime sushi menu 2001-04-29 04:54:53 +00:00
garbled
337e8af6f6 Add a new sushi menu, system/localtime. This menu will allow the user to
set his /etc/localtime file.  It's functionally similar to the option in
sysinst.
2001-04-29 04:53:05 +00:00
garbled
a5cfcb8b2b Add the directory for the new sushi menu system/localtime. 2001-04-29 04:49:55 +00:00
thorpej
cb648add29 The idle loop page zero'er no longer needs to do uncached access
now that we have page coloring.
2001-04-29 04:42:04 +00:00
itojun
e007813605 remove obsolete MAN lines for getipnodeby* (has been comented out) 2001-04-29 04:33:54 +00:00
itojun
c19c7735af copy-paste mistake; s/getaddrinfo/getnameinfo/ 2001-04-29 04:32:26 +00:00
thorpej
cda7baa0d5 Implement page coloring, using a round-robin bucket selection
algorithm (Solaris calls this "Bin Hopping").

This implementation currently relies on MD code to define a
constant defining the number of buckets.  This will change
reasonably soon (MD code will be able to dynamically size
the bucket array).
2001-04-29 04:23:20 +00:00
itojun
fce23b0ae4 correct outbound outer IPv4 destination address selection.
IFF_LINK0 disables inbound path, removes security worries.
more examples in manpage.
2001-04-29 03:56:06 +00:00
thorpej
cee702b869 Optimized in4_cksum(). 2001-04-29 03:29:21 +00:00
erh
acc17cc823 Set the delta for the particular source so telling mixerctl to decrease the
volume (using --) adjusts it far enough to stick.
2001-04-29 02:47:25 +00:00
fvdl
70316ad6e1 Remove COMPAT_14. 2001-04-29 00:34:11 +00:00
fvdl
a95d02b2a4 Remove more(1) from the 'small'image, it is not used in a sysinst install. 2001-04-29 00:24:39 +00:00
fvdl
58dc4d0703 Use the -2 option for the NFS mount. Install kernels might have
NFS_V2_ONLY to save space, and we're only reading anyway.
2001-04-29 00:22:34 +00:00
ross
aecbd4c404 In the words of Our Fearless Leader, I am "utterly sick" of dd(1)
lying to me about transfer rates. Do some fixed point frobbing to get
stuff like: 2486864 bytes transferred in 0.272 secs (9142882 bytes/sec)
2001-04-28 22:47:23 +00:00
hubertf
01b66ea788 * add function strip_txz() to strip off any .tgz, .tbz, .t[bg]z from a
given filename.
 * Use strip_txz() inside the FTP-wildcard-depends handling code to
   prevent it handing a combination of glob and dewey pattern to pmatch(),
   which our pattern matching code currently does not handle. Bugfix!

XXX The other places that could be changed to use strip_txz() are not
    touched in this commit to keep the impact of this change small in the
    light of the approaching 1.5.1 release. I'll revisit them.
2001-04-28 20:55:33 +00:00
bjh21
32f9842307 Regen. 2001-04-28 17:47:36 +00:00
bjh21
749e2d13de Sync with conf.c 2001-04-28 17:46:11 +00:00
bjh21
e9c8a1fbb5 Add ipfilter, rnd, vcoda and raid. 2001-04-28 17:41:01 +00:00
bjh21
0113cca535 Our ARM ELF ld(1) currently has problems with PIC relocations, so don't
generate them.  I suspect this is safe until we get PIC in general working.
2001-04-28 17:32:33 +00:00
bjh21
1ca2839e35 When NFS_V2_ONLY is defined, refuse to mount NFSv3 and NQNFS filesystems,
rather than pretending they're NFSv2 and hoping for the best.  Fix based on
that supplied by Christian Groessler.
2001-04-28 16:11:47 +00:00
kleink
4054de0826 Add links related to <stdint.h> and strtoimax(3)/strtoumax(3). 2001-04-28 15:51:08 +00:00
kleink
72593fc939 libc minor -> 75. 2001-04-28 15:44:38 +00:00
kleink
d15522cfa0 Bump minor version to 75: addition of strtoimax() and strtoumax(). 2001-04-28 15:43:04 +00:00
kleink
fe3c9ceaf7 * Move definitions of exact-width integer types from <machine/types.h>
to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
  explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
  macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
  intmax_t, pointer-type and size_t arguments.
2001-04-28 15:41:28 +00:00
bouyer
1346d56311 - don't wait when called from interrupt context (basically this means we
can't sleep in HBA drivers)
- pool_get can fail, so return XS_RESOURCE_SHORTAGE instead of panic()
- don't try to bzero() a NULL pointer
2001-04-28 15:09:42 +00:00
kleink
8a9b17ef14 Sync with gethostbyaddr() declaration change in <netdb.h> rev. 1.21;
from <lha@stacken.kth.se> in PR misc/12775.
2001-04-28 14:56:42 +00:00
augustss
e67bc465a2 Make it compile with DEBUG after SCSI changes. 2001-04-28 14:48:39 +00:00
bjh21
beb69f2aad Before allowing kgmon to do anything, check that we managed to allocate the
profiling buffer at startup.  If not, pretend the kernel doesn't have
profiling support at all.
2001-04-28 12:56:00 +00:00
ragge
0c1fdede08 MD in4_cksum. 2001-04-28 09:38:03 +00:00
ragge
8f8a96a056 Fix a bug so that MD-optimized in4_cksum() now works.
While here; rewrite header checksum calculation in assembler.
2001-04-28 09:36:01 +00:00
tsutsui
862125c057 Don't forget to set XS_CTL_DATA_OUT (that was removed in previous). 2001-04-28 09:33:25 +00:00
thorpej
53c1b3f9d7 Add a microtime() implementation that interpolates between ticks
using the cycle counter.  MP-safeness is achieved by giving each
CPU its own PCC frequency variables, and kicking the non-primary
processors via an IPI once per second.

Based on the sample code from David Mills' "A Kernel Model for
Precision Timekeeping".
2001-04-28 06:10:49 +00:00
wdk
86d8020753 Move previous patch which performs allocsys() before pmap_bootstrap()
to the correct location.
2001-04-28 04:20:27 +00:00
thorpej
335ac52a5b Use simple tags for read and write, unless B_ORDERED is set, in
which case we use an ordered tag.
2001-04-28 04:11:31 +00:00
itojun
cb58c8c6b6 make -A a default. present MAC adderss on all ifconfig operations. 2001-04-28 04:11:10 +00:00
itojun
7d54359fb0 assume the presense of getifaddrs(3). 2001-04-28 00:00:06 +00:00
bouyer
74b15b27a2 Don't forget to call psw_done() ! 2001-04-27 21:36:58 +00:00
manu
e0e227f2a3 Added a few examples and a reference to sysctl to enable IP forwarding
Approved by Christos
2001-04-27 19:33:06 +00:00
jdolecek
ed9c0f0fd1 document MCA le(4) SKNET ethernet driver 2001-04-27 18:05:22 +00:00
jdolecek
2758818d81 regen - SKNET cards 2001-04-27 18:04:14 +00:00
jdolecek
3367b801f2 Add driver for SKNET Personal and MC+ - AMD Lance 7990 based ethernet cards.
Both models tested and seem to be quite stable and fast.

Thanks to:
- Hans Hubner <hans@Huebner.org> for giving me the cards for testing
- Georg Klug of Syskonnect, who provided me with hw docs for these cards,
  very promptly and willingly - I wish all vendors would be like this
- Alfred Arnold, Linux SKNET driver author, for giving me valuable Syskonnect
  contact :)
2001-04-27 18:03:40 +00:00