Commit Graph

147760 Commits

Author SHA1 Message Date
agc 6dff2af424 Include another header file - should make this compile on platforms where
arpa/inet.h does not include netinet/in.h automatically.

Some people do just make life harder for themselves.
2006-05-27 16:00:05 +00:00
bouyer de9d456540 A lot of work is needed in the tcp stack to handle read-only ext storage
so always copy packets from the domU to a fresh mbuf for now.
2006-05-27 13:54:35 +00:00
drochner cb566fe802 sync RCS IDs in comments, no functional change 2006-05-27 13:37:04 +00:00
bouyer 01307555ec Revert rev 1.241: calling m_makewritable() in tcp_input causes problems when
it has to change the mbuf chain. I experience hard hang on a Xen2 domU after
TCP connections have been closed, and a crash has been reported which may be
caused by this too.
2006-05-27 13:35:20 +00:00
drochner 8bd6a6b9bd reran native-gcc, fixing the COMDAT problem 2006-05-27 12:14:33 +00:00
simonb 7f2151a308 Fix previous Coverity "fix" so that it doesn't break vi completely. 2006-05-27 12:03:37 +00:00
agc 8b41108aee Clean up after the last fix. 2006-05-27 11:10:55 +00:00
yamt b1af57a6ba remove __POOL_EXPOSE. 2006-05-27 09:14:03 +00:00
yamt 725fa55be5 hide more by ifdef _KERNEL. 2006-05-27 09:12:31 +00:00
jdolecek 94172cbcb1 in short netstat output, use 12 characters for [IO]pkts columns, so that
it doesn't overflow too easily
2006-05-27 08:56:47 +00:00
yamt 21785cfc00 remove a nested function so that its initializers can be compiled by gcc2.
pointed by Havard Eidnes.
2006-05-27 08:41:13 +00:00
yamt 4e9ca7aa01 callback_head_init: don't forget to initialize ch_running and ch_flags.
fix a problem reported by Jeff Rizzo on tech-kern@.
2006-05-27 07:42:42 +00:00
jnemeth 6222f021a3 Coverity CID 3684: memory leak 2006-05-27 04:55:14 +00:00
jnemeth 243d02dab5 Coverity CID 3135: memory leak 2006-05-27 04:15:42 +00:00
jnemeth d9a7dcfba5 Coverity annotation -- although memsave free()s its first argument, it
will allocate memory and assign it to its first argument, so it is neutral
Coverity CID 3229:  memory leak -- failed to fclose() master in moduser()
Coverity CID 3228:  memory leak -- failed to free() newname in groupmod()
2006-05-27 03:41:48 +00:00
christos d25db4db59 Coverity fixes from Mark D. Baushke 2006-05-27 03:01:09 +00:00
mrg f421d0c91a regenerate. fixes mipsel HAVE_COMDAT_GROUP 2006-05-26 19:57:29 +00:00
rittera 2fb24c8b6d Added an #ifdef _KERNEL around the #include <sys/device.h>. This is needed
because nbcompat.h is included from the user-level ndiscvt utility, which
wouldn't compile due to the indirect inclusion of sys/device.h.
2006-05-26 19:31:35 +00:00
rittera 60d227b1f8 Some general cleaning up of if_ndis.c, and if_ndis_pci.c. Added
#ifdef NDIS_DBG around some printfs, and deleted some commented out code.
2006-05-26 19:27:49 +00:00
chap baa41845e1 Remove statement (incorrect as of ISC release 3.0.3) that the next-server
value defaults to the server address. (This statement has been removed in
ISC release 3.0.4.)

Closes PR bin/33565.
2006-05-26 19:22:03 +00:00
mrg cf8192ab0d use the same "Generated from: " tag for mknative.common so that changes
that only affect rcsid's don't cause all generated files to change.
2006-05-26 19:17:21 +00:00
agc 2fa516b2eb Rewrite the way report_luns() works, after suspicion by Matt Green, and
following Dan Carosone's suggestion of the uint64_t array.

Abstract a bit more from the HTOBE64() macro intrigue, for platforms
like Solaris/x86 which have fun in this part.

Tested only with little-endian initiators for now.

Bump version to 20060526.
2006-05-26 16:34:43 +00:00
tsutsui eeb8ad7128 Use the same bus_space_barrier(9) macro with other mips ports to avoid
possible unused variable warnings.
2006-05-26 13:25:21 +00:00
tsutsui a465c6b884 Tweak bus_space_barrier(9) macro to appease
"left-hand operand of comma expression has no effect"
warnings by gcc4.
2006-05-26 13:23:34 +00:00
jnemeth 62381dbddf Coverity CID 3785: calling fclose() twice on same file pointer
Coverity CID 3780: dereference of NULL pointer
Approved by: christos@
2006-05-26 13:21:47 +00:00
blymn a88dd3436a Clean up bogus whitespace 2006-05-26 12:52:45 +00:00
blymn 6b8a344329 Clean up bogus whitespace 2006-05-26 12:39:31 +00:00
drochner f5015685d4 mention error return value, like getrawpartition(3) 2006-05-26 12:36:59 +00:00
blymn 44278a4fa1 Clean up bogus whitespace 2006-05-26 11:52:08 +00:00
jnemeth 305a7bfee2 In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth 693e9aec19 Coverity CID 2977: failed to check for error return from ftell() 2006-05-26 11:13:20 +00:00
jnemeth e10c71d2be Coverity CID 3685: memory leak
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.

XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth 1124e30e6e Coverity CID 3027: possible dereference of NULL pointer.
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
pavel 3b5ae171d2 New linker scripts for the i386 kernel. The main improvement is setting the
physical load address correctly. (Before, it was set to the same very high
value as the virtual address.)

Provided by Jason Thorpe in
http://mail-index.netbsd.org/port-i386/2006/02/10/0008.html
with some modifications by me, mainly to make the output more similar to
the current one, and to not hardwire the physical and virtual addresses.

See also:
http://mail-index.netbsd.org/port-i386/2006/05/19/0001.html

Now an unpatched grub can load a NetBSD Multiboot kernel.
2006-05-26 09:22:42 +00:00
jnemeth 14902917f6 Remove redundant check for end of list wrapping around on itself.
It this were to actually happen, then others parts would go into
infinite loop.  Also, fix KNF.  Found while checking Coverity
CID 3784.
2006-05-26 02:16:17 +00:00
uebayasi b5775a5a4f Expose struct pool::struct callback_entry pr_reclaimerentry only when _KERNEL
is defined.  Fix build of src/sbin/mount/mount_tmpfs/mount_tmpfs.c.
2006-05-26 00:26:12 +00:00
cube ac24e16176 Introduce two new statements:
obsolete defflag <option> [, <option> [, ...]]
    obsolete defparam <option> [, <option> [, ...]]

The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way.  The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.

When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.

Bump version to 20060525.

When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.

Suggested by Matt Thomas a few months ago.
2006-05-25 22:28:38 +00:00
christos fc19b961ac s/vax/__vax__/ 2006-05-25 22:06:53 +00:00
bouyer bc93583ffe If we're going to byteswap fields in the TCP header, make sure the mbuf
area is writable first.
2006-05-25 21:49:19 +00:00
jnemeth 0b1276d17c Coverity annotation 2006-05-25 21:43:40 +00:00
bouyer df9be102c5 Make sure the mbuf is writable before trying to write to it. 2006-05-25 21:33:12 +00:00
bouyer ad55d247de Make the mbuf writable before calling in6_clearscope(). Based on patch sent
by David Young on tech-kern.
2006-05-25 21:32:47 +00:00
bouyer 5eda3c3cab Use xen_shm_* to map the packet sent to us by the domU, and attach it
as external storage to the mbuf.
2006-05-25 21:28:38 +00:00
bouyer 159a19cf73 Always include xen_shm_machdep.c for Xen3, theorically a domU could also
provide backend services to other domains.
2006-05-25 21:27:40 +00:00
bouyer d1d1596e1e Convert xen_shm_map() and xen_shm_unmap() to the Xen3 grant table
interface.
2006-05-25 21:26:20 +00:00
agc 8a1a8b8c5c Include compat.h for the definition of uuid_t, in the case where we don't
have it from <uuid.h>
2006-05-25 19:41:06 +00:00
christos 7d40b7b07f Coverity CID 830: Fix dead code issue 2006-05-25 15:32:17 +00:00
christos d49dbefade Coverity CID 3783: Fix uninit variable. 2006-05-25 15:27:35 +00:00
liamjfoy 14c608becb remove a little white space 2006-05-25 15:22:05 +00:00
freza cf3f32f664 Add myself to the list of developers. 2006-05-25 15:07:08 +00:00