Commit Graph

152407 Commits

Author SHA1 Message Date
rpaulo
a70594d346 Add a new tcp_congctl(9) structure member for congestion experienced callback.
Needed by HSTCP.
2006-10-15 17:45:06 +00:00
christos
ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos
a8756e84f2 prevent empty else. 2006-10-15 16:14:08 +00:00
christos
6b9a17545b comment out dead code. 2006-10-15 16:13:12 +00:00
christos
3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
christos
b24124a73d static before const. 2006-10-15 16:11:04 +00:00
christos
1d0c670b9c add a NULL callback initializer 2006-10-15 16:10:38 +00:00
perry
35a6eb4807 Make the declarations of wday_name and mon_name less eccentric. I
suppose they were legal before, but lint was unhappy about them. It
was probably unhappy for the wrong reasons, but I think it certainly
wasn't something one would want anyway. Declaring a string of length
three to have storage of length three without room for the nul is
asking for trouble even if it does work in context, and there was no
reason not to state how many days there are in a week or months in a
year -- they aren't onerous and aren't going to change.

NOTE: If this code isn't being synced with the central TZCODE stuff,
it probably should be KNFed etc. It is full of K&R declarations,
register, lots of eccentricities, etc.
2006-10-15 15:32:42 +00:00
christos
7bce0c7216 Don't allow ptrace to copyout arbitrary sized data. Reported by the
Suresec vulnerability research team.
2006-10-15 15:20:09 +00:00
christos
23d1e65c52 array init test 2006-10-15 15:09:38 +00:00
christos
3e006796cf previous fix broke array initializers. 2006-10-15 15:08:20 +00:00
xtraeme
dda1409777 Sync IDE/SATA drivers with i386/GENERIC. Fixes PR port-amd64/34829. 2006-10-15 14:41:49 +00:00
xtraeme
0c5839fcb7 Enable Bluetooth support and devices (except bt3c that requires pcmcia)
for Xen.
2006-10-15 14:34:56 +00:00
adrianp
9480ff5303 Change the default sshd configuration file so that only protocol version 2
is enabled by default.  Users can manually add back support for protocol
version 1 in their sshd_config if they have a specific need for it.

Suggested by perry@ and ghen@. Ok'ed security-officer@ and christos@
2006-10-15 14:01:53 +00:00
bouyer
305d094b01 Define x86_mfence(). Use it where appropriate. Seems to fix a hang in
the network interface front-end/back-end for me ...
2006-10-15 13:35:15 +00:00
bouyer
f3449bfa41 Set appropriate value for if_snd.ifq_maxlen; keeping it too low has a
bad impact on performances.
2006-10-15 13:34:17 +00:00
yamt
cbba26f6cd include machine/mpconfig.h so that these files can be compiled
with ACPI but without MPBIOS.
2006-10-15 13:31:18 +00:00
xtraeme
3481053ae9 Use O_DIRECT (aka Direct I/O) when -F is used. 2006-10-15 13:18:24 +00:00
peter
bc26ed070a Don't enable ALTQ in altq_pfattach. Enabling/disabling of ALTQ is already
done in the pf(4) code (pf_ioctl.c).

From OpenBSD.
2006-10-15 13:17:13 +00:00
bjh21
7b50d90366 When processing RASes, only pay attention to, and change, the PC parts of R15,
leaving the PSR bits alone.  Necessary to make regress/sys/kern/ras/ras1 pass.
2006-10-15 12:45:32 +00:00
yamt
72fc92b729 ffs_alloc: remove an assertion which is no longer true. 2006-10-15 12:23:56 +00:00
tsutsui
fec9e58b4d In vge_newbuf(), don't adjust packet length twice by m_adj(9)
in case of __NO_STRICT_ALIGNMENT. We can adjust m_data directly
since it's allocated by MCLGET(9) just above.
(though the length is not used anyway)
2006-10-15 11:52:36 +00:00
martin
a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
tsutsui
76a3c671ce Umm, remove a DELAY() added in previous. It seems to cause another problem. 2006-10-15 10:54:15 +00:00
tsutsui
2412a17a18 On sgimips (R5000 O2), it seems that the first EEPROM read data
right after vge_reset() could be corrupted. For workaround, add a
dummy EEPROM read in vge_reset() so that MAC address is properly
set on the machine.
While here, add a DELAY() in busy loop in vge_read_eeprom().
2006-10-15 10:33:25 +00:00
tsutsui
4751084399 Oops, use correct dmamap to sync DMA descriptors.
Found by DIAGNOSTIC code in sgimips/bus.c:_bus_dmamap_sync_mips3().
2006-10-15 09:37:27 +00:00
dsl
0195907f3d Output all debug trace output through 'debug_file' defaulting to 'stdout'.
(Almost all the debug output went there, but some went to stderr.)
Split the parsing of -d (debug flags) out into its own routine.
Allow the output filename to be changed by specifying -dF<file> to create
a log file, or -dF+<file> to append to it. <file> may be stdout or stderr.
Also change so that -d-<flags> acts on <flags> locally but doesn't copy
them to MAKEFLAGS so they aren't inherited by child makes.
I'm not 100% happy with the command line syntax for the above, so they are
currently undocumented.
2006-10-15 08:38:21 +00:00
dyoung
a42ff4b405 Make SIOCALIFADDR work for adding IPv6 addresses: initialize the
lifetime of the addresses to infinity (ND6_INFINITE_LIFETIME).

Nobody squealed when I proposed this on tech-net.
2006-10-15 07:00:44 +00:00
dyoung
ca38b620b0 Two bug fixes:
If gre_socreate1() cannot find out the socket's address, exit with
an error.  Before, it could exit *without* an error.

If gre_thread1() finds that it is without a valid socket (i.e., so
== NULL) but the configuration is "unchanged" (in initial state),
force reconfiguration.  This prevents a crash when we try to bring
up a GRE over UDP interface whose UDP endpoints have never been
specified.
2006-10-15 06:36:54 +00:00
dyoung
755be14a30 Cosmetic: join lines to conserve vertical space. 2006-10-15 06:28:53 +00:00
tsutsui
78ca0f3f54 Don't add `-I${NETBSDSRCDIR}/sys' to HOST_CPPFLAGS to pull
necessary target system headers (<fs/unicode.h> and <fs/cd9660/iso.h>)
because system headers for the host (like <sys/stat.h>) are also pulled
from there and it causes build errors if target src tree is different
from installed one on the host.
Instead, copy the necessary system headers for host's programs into
${.OBJDIR} first.

Problem reported from Geert Hendrickx, and there is no particular comment
on tech-toolchain.
2006-10-15 04:24:11 +00:00
uwe
4fcce87c8c Replace __INTR_MASK and swap dance to load PSL_RB (and doing stc/ldc
twice in the process) with code that just uses mov.l to get the bits
to clear and set in SR.

Use proper local labels.  Add rcs id.  G/c unused includes.  Add .size
2006-10-15 02:31:00 +00:00
uwe
92dc06bfcf Don't include <machine/intr.h> in asm sources. 2006-10-15 02:11:21 +00:00
uebayasi
008312679d A missing period.
Reviewed By:	wiz
2006-10-15 01:53:41 +00:00
dogcow
37bb4f935a do the #ifndef lint dance for __RCSID; also, include the appropriate
headers if cross-building the program in tools/.
2006-10-15 01:16:31 +00:00
christos
9c32e391e9 strlcpy off by one errors (from gdamore) 2006-10-15 01:10:00 +00:00
uwe
e81532e95c Remove vestigial {,e}intr{names,cnt} symbols, vmstat no longer needs them. 2006-10-15 00:25:48 +00:00
itohy
b1d32ad8f3 white space police 2006-10-15 00:00:00 +00:00
itohy
65b52f68a1 Add ATAPI Pioneer (info from Linux) and ATA TDK (I have one)
as exceptions of string byte order.
Add string byte order shuffling for big-endian platforms.
2006-10-14 23:54:14 +00:00
uwe
71ee5d56f8 Protect miniroot initialization code with #ifdef MFS 2006-10-14 23:51:17 +00:00
dogcow
8cf357b535 Add NetBSD tag, add bsd.subdir.mk include. 2006-10-14 23:38:40 +00:00
uwe
8514c96f9a Recognize SH2E from new binutils (map to sh3e vector). 2006-10-14 22:20:06 +00:00
bjh21
bafb9c4f84 The SEC uses the same page latch for both ROM and RAM, so we should arrange
to reset it to 0 on shutdown so that RISC OS gets to see the start of the
ROM.
2006-10-14 21:47:11 +00:00
christos
48314d6d96 memset the whole struct addrinfo, instead of trying to figure out if we
have a pad member or not.
2006-10-14 21:45:29 +00:00
bjh21
cb9637bcff Make regress target depend on the test program so as to ensure it gets
compiled.
2006-10-14 21:23:01 +00:00
christos
4ce31f7c8c PR/34818: rad at twig dot com: Recognize solaris door files. 2006-10-14 21:14:02 +00:00
christos
dac81217a4 glue in the lint regression tests now that they work. 2006-10-14 21:10:53 +00:00
christos
e578e35910 Fix c99 initialization issues. Now the regression tests work. 2006-10-14 21:08:50 +00:00
smb
f182d6d2ee Fix argument order 2006-10-14 21:05:40 +00:00
bjh21
c08721e416 Make regress target depend on the test program so as to ensure it gets
compiled.
2006-10-14 20:57:10 +00:00