Peter Wemm
2b412989fe
Move dgb to the i386 section
2002-09-19 02:58:41 +00:00
Darren Reed
e62497713c
If M_PKTHDR is set then we don't need to do a loop to find the total length.
2002-09-19 01:21:24 +00:00
Alfred Perlstein
3ffb9fadc8
Regen for added syscalls.
2002-09-19 00:48:57 +00:00
Alfred Perlstein
6d5dec35b7
Add the rest of the kernel support for the sem_ API in kern/uipc_sem.c.
...
Option 'P1003_1B_SEMAPHORES' to compile them in, or load the "sem" module
to activate them.
Have kern/makesyscalls.sh emit an include for sys/_semaphore.h into sysproto.h
to pull in the typedef for semid_t.
Add the syscalls to the syscall table as module stubs.
2002-09-19 00:43:32 +00:00
Alfred Perlstein
efaa658806
Bring in my implementation of kernel support for posix realtime semaphores
...
that are shareable between processes.
There will be a cleanup shortly along with the necessary changes made to
libc, libc_r, libpthread as well as the hooks into sys/conf and sys/modules.
2002-09-18 22:47:42 +00:00
Robert Watson
cc51a2b55e
Remove un-needed stack variable 'ops'.
...
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2002-09-18 22:35:02 +00:00
Bosko Milekic
bd395ae8f6
style nit: unsigned -> u_int in the kernel, particularly to
...
stay consistent in this file, and keep m_length() and m_fixhdr()
consistent with their prototypes in mbuf.h
Inspired by: bde
2002-09-18 22:33:52 +00:00
Bosko Milekic
589b704f4e
more style fixes: 'unsigned' should be 'u_int' in this file.
...
Submitted by: bde
2002-09-18 22:29:33 +00:00
Doug Ambrisko
724b7a2be2
Clarify comment to "Code borrowed from if_fxp.c" to deal with running
...
out of fragments.
Suggested by: jhb
2002-09-18 21:32:48 +00:00
Nate Lawson
86ed6d45ac
Remove any VOP_PRINT that redundantly prints the tag.
...
Move lockmgr_printinfo() into vprint() for everyone's benefit.
Suggested by: bde
2002-09-18 20:42:04 +00:00
Bosko Milekic
219c875a46
style fixes to mbuf.h
...
Submitted by: bde
2002-09-18 20:28:58 +00:00
Poul-Henning Kamp
2201e1b039
Optimize the way we call BPF a tiny bit: If we chop the ether-header off
...
ourselves, call bpf before we do so, rather than re-construct the entire
thing afterwards.
Sponsored: http://www.babeltech.dk/
2002-09-18 19:50:48 +00:00
Poul-Henning Kamp
f0e2422b1b
Use m_length() instead of home-rolled.
...
In bpf_mtap(), if the entire packet is in one mbuf, call bpf_tap()
instead since it is a tad faster.
Sponsored by: http://www.babeltech.dk/
2002-09-18 19:48:59 +00:00
Poul-Henning Kamp
7ed60de837
Use m_length() instead of home-rolled versions.
2002-09-18 19:44:14 +00:00
Poul-Henning Kamp
a5554bf05b
Use m_fixhdr() rather than roll our own.
2002-09-18 19:43:01 +00:00
Poul-Henning Kamp
4e4425d486
Make m_length() and m_fixhdr() return unsigned.
...
Suggested by: arr
2002-09-18 19:42:06 +00:00
Poul-Henning Kamp
ac6e585d24
Introduce the m_length() function which will return the accumulated
...
length of an mbuf-chain and optionally a pointer to the last mbuf.
2002-09-18 14:57:35 +00:00
Poul-Henning Kamp
9f86067a9c
Add missing #include <sys/mbuf.h>
2002-09-18 14:21:52 +00:00
Poul-Henning Kamp
3f2e06c5e1
Move m_fixhdr() from "mbchain" to "mbuf" where it belongs.
2002-09-18 13:41:37 +00:00
Boris Popov
44f3878ecb
Always open file in the DENYNONE mode and let the server to decide what is
...
good for this file.
This should allow read only access to file which is already opened on server.
2002-09-18 09:54:16 +00:00
Søren Schmidt
cea0b8e060
Add support for the VIA 8235.
...
Submitted by: Jason Dambrosio <jason@wiz.cx>
2002-09-18 09:39:37 +00:00
Boris Popov
3c2f5c3cc8
Implement additional SMB calls to allow proper update of file size as some
...
file servers fail to do it in the right way.
New NFLUSHWIRE flag marks pending flush request(s).
NB: not all cases covered by this commit.
Obtained from: Darwin
2002-09-18 09:27:04 +00:00
Jeff Roberson
99571dc345
- Split UMA_ZFLAG_OFFPAGE into UMA_ZFLAG_OFFPAGE and UMA_ZFLAG_HASH.
...
- Remove all instances of the mallochash.
- Stash the slab pointer in the vm page's object pointer when allocating from
the kmem_obj.
- Use the overloaded object pointer to find slabs for malloced memory.
2002-09-18 08:26:30 +00:00
Boris Popov
994ad1809e
Permit an empty username which is useful for browsing.
2002-09-18 07:43:21 +00:00
Boris Popov
3c30400408
Increase send/receive queue to accomodate large readx/writex requests.
...
Receive packets in a small pieces (NB_SORECEIVE_CHUNK), so TCP slowstart will
get its ACKs faster.
Obtained from: Darwin
2002-09-18 07:38:10 +00:00
Mitsuru IWASAKI
076ef4620b
Restore status register A of RTC at resume time.
...
This should fix the 'too many RTC interrupts and statclock seems
broken after resume' problem.
MFC after: 1 week
2002-09-18 07:34:04 +00:00
Mike Barcroft
86954511d2
Implement C99's va_copy() macro.
2002-09-18 07:33:16 +00:00
Mike Barcroft
f4a1f909c6
Move definition of nl_item type to <sys/_types.h>, so that it can be
...
shared.
2002-09-18 05:51:23 +00:00
Robert Watson
ca7850c313
Add a toggle to disable VM enforcement.
...
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
2002-09-18 02:02:08 +00:00
Robert Watson
b88c98f6b1
At the cost of seeming a little gauche, make use of more traditional
...
alphabetization for mac_enforce_pipe sysctl.
Obtained from: TrustedBSD Project
Sponsored by: DAPRA, NAI Labs
2002-09-18 02:00:19 +00:00
Robert Watson
289c6dea76
Don't call VOP_LEASE() while holding the accounting mutex.
2002-09-18 01:56:13 +00:00
Mike Barcroft
83fe67e385
o Add typedefs for mode_t, off_t, pid_t rather than including
...
<sys/types.h>.
o Use the relatively new visibility primitives for conditionals.
o Make O_SYNC an alias for O_FSYNC.
o Mark the F* names as deprecated.
o Add some comments to note missing POSIX requirements or options.
2002-09-17 22:22:50 +00:00
Matthew Dillon
fa55172bc0
Guido reported an interesting bug where an FTP connection between a
...
Windows 2000 box and a FreeBSD box could stall. The problem turned out
to be a timestamp reply bug in the W2K TCP stack. FreeBSD sends a
timestamp with the SYN, W2K returns a timestamp of 0 in the SYN+ACK
causing FreeBSD to calculate an insane SRTT and RTT, resulting in
a maximal retransmit timeout (60 seconds). If there is any packet
loss on the connection for the first six or so packets the retransmit
case may be hit (the window will still be too small for fast-retransmit),
causing a 60+ second pause. The W2K box gives up and closes the
connection.
This commit works around the W2K bug.
15:04:59.374588 FREEBSD.20 > W2K.1036: S 1420807004:1420807004(0) win 65535 <mss 1460,nop,wscale 2,nop,nop,timestamp 188297344 0> (DF) [tos 0x8]
15:04:59.377558 W2K.1036 > FREEBSD.20: S 4134611565:4134611565(0) ack 1420807005 win 17520 <mss 1460,nop,wscale 0,nop,nop,timestamp 0 0> (DF)
Bug reported by: Guido van Rooij <guido@gvr.org>
2002-09-17 22:21:37 +00:00
Jake Burkholder
9cf08dec12
Fix standard kse breakge of non-x86 platforms. sigh.
...
Pointy hat to: kse
2002-09-17 16:21:48 +00:00
Hajimu UMEMOTO
f26b2d5bf2
- increment interface output counter. sync w/ netbsd-current
...
- increase if_oerrors. sync w/netbsd
Obtained from: KAME
2002-09-17 14:25:19 +00:00
Katsushi Kobayashi
a9c9b6989c
Firewire device support for Apple eMac with PPC kernel.
...
Contributed by Peter Grehan <grehan@freebsd.org>
2002-09-17 12:50:43 +00:00
Poul-Henning Kamp
1e77ed827e
Add /dev/soekris-errled device to control the Error-LED on Soekris cards/boxes.
...
# turn LED off
echo '0' > /dev/soekris-errled
# turn LED on
echo '1' > /dev/soekris-errled
# flash LED (5 hz)
echo 'f' > /dev/soekris-errled
# flash LED (4/2 = 2 hz), syntax: "f[1-9]" -> .5 -> 4.5 Hz
echo 'f4' > /dev/soekris-errled
# flash digits 1,3 and 7, syntax: "d[1-9]*"
echo 'd137' > /dev/soekris-errled
Characters not understood are ignored.
2002-09-17 11:47:38 +00:00
Maxim Sobolev
563a9b6ecb
Remove __RCSID().
...
Submitted by: bde
2002-09-17 11:31:41 +00:00
Maxim Konovalov
1cf4349926
Explicitly clear M_FRAG flag on a mbuf with the last fragment to unbreak
...
ip fragments reassembling for loopback interface.
Discussed with: bde, jlemon
Reviewed by: silence on -net
MFC after: 2 weeks
2002-09-17 11:20:02 +00:00
Maxim Konovalov
e079ba8d93
In rare cases when there is no room for ip options ip_insertoptions()
...
can fail and corrupt a header length. Initialize len and check what
ip_insertoptions() returns.
Reviewed by: archie, silence on -net
MFC after: 5 days
2002-09-17 11:13:04 +00:00
Maxim Sobolev
3ac0ac9ea8
Don't reference cpu_fxsr unless CPU_ENABLE_SSE is defined. This fixes kernel
...
in !CPU_ENABLE_SSE case.
2002-09-17 11:12:10 +00:00
Hajimu UMEMOTO
ce9d7b2f1a
- reject SIOCSIFADDR if embedded address is in private address range
...
- reject packets from private address range. from hitachi
Obtained from: KAME
2002-09-17 10:45:51 +00:00
Peter Wemm
d223099401
Make netatm/spans compile in the kernel without depending on userland
...
include files to provide functions for kernel source (spans_kxdr.c)
2002-09-17 08:57:52 +00:00
Peter Wemm
2480d1854f
Add stub function for cpu_set_upcall_kse()
2002-09-17 07:49:40 +00:00
Peter Wemm
28487340f2
#if 0 out the following functions:
...
cpu_export_context()
cpu_set_args()
cpu_free_kse_mdstorage()
cpu_export_context()
2002-09-17 07:47:10 +00:00
Peter Wemm
b069d4207c
Make this compile after the last kse commit.
2002-09-17 07:44:28 +00:00
Peter Wemm
acaa156683
Argh. I've been reading makefiles for too long. Change comment to a
...
C-style comment.
2002-09-17 07:41:30 +00:00
Peter Wemm
1e19df3303
Stub out the calls to get_mcontext and set_mcontext which only exist on
...
i386. This stuff should not be prototyped in MD inludes if the interface
is expected to be MI.
2002-09-17 07:40:15 +00:00
Peter Wemm
1822cdcafe
It seems I accidently committed a change that removed the userland includes
...
from the kernel build. This broke linux_genassym on the alpha. For the
kernel, the correct place to get offsetof() is not in /usr/include/stddef.h
but rather <sys/types.h>
2002-09-17 07:22:23 +00:00
Mike Barcroft
117f87fe9f
Include <sys/types.h> directly rather than depending on <sys/fcntl.h>
...
to include it. This could be avoided by adding the necessary typedefs
here, or by making users of <sys/file.h> include <sys/types.h> first.
2002-09-17 05:14:09 +00:00