Commit Graph

70884 Commits

Author SHA1 Message Date
jdolecek
d1e0d393ca initialize gmtoff in mount structure if mount version is < 3 2004-04-27 17:25:50 +00:00
pk
fde3b5dfae Replace home-grown cachestats with event counters. 2004-04-27 16:37:43 +00:00
matt
5a0de7507d When a packet is received that overlaps the left side of the window,
check for RST *before* trimming data and adjust its sequence number.
2004-04-27 14:46:07 +00:00
pk
cd955b850f Bits 0 (MMU Enable) and 1 (Fault inhibit) are common among the implementations
of the SRMMU control register. Reflect that fact in the definitions here.

Also add the swift `store allocate' bit.
2004-04-27 13:05:38 +00:00
yamt
9c627df799 remove redundant function prototypes to make this compilable after
snprintf changes.
2004-04-27 12:35:26 +00:00
pk
202c3ce64e Add instrumentation for `PMEG' management on sun4/4c. 2004-04-27 11:26:43 +00:00
pk
429ad918eb Limit buffer cache VM to prevent too many locked `PMEGs' on small sun4c
systems.
2004-04-27 11:25:24 +00:00
junyoung
9262158d3e Fix typo in comments. 2004-04-27 09:50:43 +00:00
junyoung
f539f210cc FINDSPACE_FIXED -> UVM_FLAG_FIXED in comment. 2004-04-27 09:45:02 +00:00
scw
9950f14938 Always disable interrupts at the start of DO_AST_AND_RESTORE_ALIGNMENT_FAULTS.
This addresses #2 of port-arm/23581 by Richard Earnshaw.

Many thanks to Richard for spotting the cause of this problem.
2004-04-27 07:13:16 +00:00
simonb
01837603b0 Fix "comments within comments" problem pointed out by Geoff Wing on
source-changes.
2004-04-27 05:25:33 +00:00
atatat
1ee5d694aa That's not supposed to be there. Sorry. 2004-04-27 04:03:28 +00:00
atatat
e5004170aa Be consistent about using sysc_init_field() 2004-04-27 03:49:03 +00:00
kleink
3925dc263a Regen from syscalls.master 1.141: [gs]ettimeofday(2) argument declaration
change.
2004-04-27 01:15:38 +00:00
kleink
681b62c2ce POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2].  From Murray
Armfield in PR standards/25331.

In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
2004-04-27 01:12:44 +00:00
uwe
bbb41d52d5 Make focusManagerHook a tad more smart, so that it can correctly handle
the serial console speed combobox (last item in the kernel tab).
2004-04-27 00:04:38 +00:00
cl
79d1a31951 Move struct xen_netinfo into include/xen.h so that xen12load compiles again. 2004-04-26 23:54:42 +00:00
simonb
f95ed9ec0f Print the address of a problem instruction when we panic. 2004-04-26 22:29:07 +00:00
uwe
2adc0e696d Make sure that overzealous definition of __packed in <sys/cdefs.h>
doesn't break compilation with Microsoft compilers. Push/pop #pragma pack
around <sys/bootblock.h>.
2004-04-26 22:27:43 +00:00
simonb
24798155ac Enable top-down VM if USE_TOPDOWN_VM is defined. 2004-04-26 22:25:54 +00:00
uwe
e9b7546ec1 <machine/cdefs.h> is included by <sys/cdefs.h>, so there's no point
in including <sys/cdefs.h> from <machine/cdefs.h> again.
2004-04-26 22:14:55 +00:00
cl
f720882cf0 Rework the physical<->machine memory mapping: offset physical addresses
by 0x100000 (above the I/O Memory "hole") leaving all physical addresses
below unused, don't perform phys<->mach mapping for addresses below 0x100000
or beyond the real hardware's physical memory.

-> /dev/mem works now as expected and X works in domain0.
2004-04-26 22:05:04 +00:00
dsl
1946b7f3ee Add offset of old i386 mbr bootsel structure. 2004-04-26 21:00:38 +00:00
christos
9ec61a4e56 fix compile error (thanks Juan RP) 2004-04-26 20:38:22 +00:00
christos
f987d253b9 PR/25335: Erik E. Fair: statvfs lossage in sys/lkm/compat/osf1 2004-04-26 20:33:50 +00:00
cl
f184e73cf0 Add mouse support. 2004-04-26 19:44:54 +00:00
tron
56ebd54d39 Define ST_RDONLY to MNT_RDONLY instead of the non-existing MNT_READONLY. 2004-04-26 17:26:58 +00:00
christos
c30382f197 fix fragment size. 2004-04-26 17:08:45 +00:00
christos
85a8e7acfa fill namemax 2004-04-26 17:08:34 +00:00
kleink
450c49ecc0 Namespace police: wrap RLIM_NLIMITS inside _NETBSD_SOURCE since it's an
implementation detail; define ru_{first,last} only for _KERNEL.
2004-04-26 10:33:38 +00:00
kleink
fb35901828 Un-__P(). 2004-04-26 10:10:19 +00:00
itojun
362e07a3c9 zero-clear ip6?pseudo before use 2004-04-26 05:18:13 +00:00
itojun
f103f9aee9 declare ip6_hdr_pseudo (for kernel only) and use it for TCP MD5 signature 2004-04-26 05:15:47 +00:00
itojun
67372cc454 sync comment with reality 2004-04-26 05:05:49 +00:00
itojun
23973135aa fix key_mature for tcp md5 signature 2004-04-26 04:39:17 +00:00
itojun
06dd2ce65c add missing "break" 2004-04-26 04:00:06 +00:00
itojun
e0395ac8f0 make TCP MD5 signature work with KAME IPSEC (#define IPSEC).
support IPv6 if KAME IPSEC (RFC is not explicit about how we make data stream
for checksum with IPv6, but i'm pretty sure using normal pseudo-header is the
right thing).

XXX
current TCP MD5 signature code has giant flaw:
it does not validate signature on input (can't believe it! what is the point?)
2004-04-26 03:54:28 +00:00
itojun
d798d64879 xform_tcp.c is needed only with FAST_IPSEC 2004-04-26 03:50:57 +00:00
jonathan
f7abb16323 Fix per-PCB IPsec policy cache for FAST_IPSEC:
The sys/netipsec policy-cache (added by Jason Thorpe as a rewrite of
the KAME per-PCB policy cache) assumes that policy-cacheable PCBs
always has a non-NULL inph_sp in the common PCB header.  So we must
do all the per-PCB policy cache calls when either (KAME) IPSEC, or
FAST_IPSEC is defined.  ``Make it so''.

We can now support non-IPsec'ed IPv6 traffic, when both
``options FAST_IPSEC'' and ``options INET6'' are configured.
2004-04-26 01:53:59 +00:00
matt
e06794e93a Remove #else of #if __STDC__ 2004-04-26 01:41:15 +00:00
simonb
b09560304e Unwrap a not-too-long line. 2004-04-26 01:40:40 +00:00
matt
5413745100 Remove #else clause of __STDC__ 2004-04-26 01:31:56 +00:00
cl
b21e228a58 Add support for i386_iopl. 2004-04-25 23:46:07 +00:00
fair
68851c238e protect against multiple includes because the make procedures for
kdump, ktruss, etc., aren't smart enough to spot this as a duplicate
from both include/{alpha,machine}/vuid_event.h
2004-04-25 23:17:59 +00:00
jonathan
887b782b0b Initial commit of a port of the FreeBSD implementation of RFC 2385
(MD5 signatures for TCP, as used with BGP).  Credit for original
FreeBSD code goes to Bruce M. Simpson, with FreeBSD sponsorship
credited to sentex.net.  Shortening of the setsockopt() name
attributed to Vincent Jardin.

This commit is a minimal, working version of the FreeBSD code, as
MFC'ed to FreeBSD-4. It has received minimal testing with a ttcp
modified to set the TCP-MD5 option; BMS's additions to tcpdump-current
(tcpdump -M) confirm that the MD5 signatures are correct.  Committed
as-is for further testing between a NetBSD BGP speaker (e.g., quagga)
and industry-standard BGP speakers (e.g., Cisco, Juniper).


NOTE: This version has two potential flaws. First, I do see any code
that verifies recieved TCP-MD5 signatures.  Second, the TCP-MD5
options are internally padded and assumed to be 32-bit aligned. A more
space-efficient scheme is to pack all TCP options densely (and
possibly unaligned) into the TCP header ; then do one final padding to
a 4-byte boundary.  Pre-existing comments note that accounting for
TCP-option space when we add SACK is yet to be done. For now, I'm
punting on that; we can solve it properly, in a way that will handle
SACK blocks, as a separate exercise.

In case a pullup to NetBSD-2 is requested, this adds sys/netipsec/xform_tcp.c
,and modifies:

sys/net/pfkeyv2.h,v 1.15
sys/netinet/files.netinet,v 1.5
sys/netinet/ip.h,v 1.25
sys/netinet/tcp.h,v 1.15
sys/netinet/tcp_input.c,v 1.200
sys/netinet/tcp_output.c,v 1.109
sys/netinet/tcp_subr.c,v 1.165
sys/netinet/tcp_usrreq.c,v 1.89
sys/netinet/tcp_var.h,v 1.109
sys/netipsec/files.netipsec,v 1.3
sys/netipsec/ipsec.c,v 1.11
sys/netipsec/ipsec.h,v 1.7
sys/netipsec/key.c,v 1.11
share/man/man4/tcp.4,v 1.16
lib/libipsec/pfkey.c,v 1.20
lib/libipsec/pfkey_dump.c,v 1.17
lib/libipsec/policy_token.l,v 1.8
sbin/setkey/parse.y,v 1.14
sbin/setkey/setkey.8,v 1.27
sbin/setkey/token.l,v 1.15

Note that the preceding two revisions to tcp.4 will be
required to cleanly apply this diff.
2004-04-25 22:25:03 +00:00
kleink
679cb3e5a5 Regen from rev. 1.140:
POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
to id_t.  Partially addressing PR standards/25216 from Murray Armfield.
2004-04-25 22:21:17 +00:00
kleink
3e7f30c118 POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
to id_t.  Partially addressing PR standards/25216 from Murray Armfield.
2004-04-25 22:18:08 +00:00
fair
75bfa594cb Protect against multiple inclusion (kdump, ktruss, etc., make
procedures are not smart enough to spot this file as being the same
when it appears in both include/{macppc,machine}/grfioctl.h
2004-04-25 21:57:51 +00:00
matt
11ccf29a76 remove #else clause of #if __STDC__ 2004-04-25 21:13:13 +00:00
dbj
9a0dfd8c28 remove botched superblock upgrade warnings.
there are now alternate non-kernel checks and fixes for this problem.
relevent prs include:
bin/17910 kern/21283 kern/21404 port-macppc/23925 port-macppc/23926
install/25138
2004-04-25 21:02:26 +00:00