jlemon [Sat, 2 Jun 2001 19:51:02 +0000 (19:51 +0000)]
Only touch the PCR register in order to set bits for the fxp driver.
The 3C509-TX card apparently had a slightly different version of the
chip, and has problems when this register is set. The problem does
not appear on the 3C509{BC} cards, but since only the fxp driver needs
specific bits set, conditionalize on that.
tmm [Fri, 1 Jun 2001 22:53:10 +0000 (22:53 +0000)]
Change the way information about swap devices is exported to be more
canonical: define a versioned struct xswdev, and add a sysctl node
handler that allows the user to get this structure for a certain device
index by specifying this index as last element of the MIB.
This new node handler, vm.swap_info, replaces the old vm.nswapdev
and vm.swapdevX.* (where X was the index) sysctls.
imp [Fri, 1 Jun 2001 20:58:32 +0000 (20:58 +0000)]
The orm device. This device gobbles up the Option ROMs in the ISA
memory I/O space. Otherwise, our resource allocation system might
mistakenly assign pccard, plug and play devices or other things
addresses that conflict with ROMs.
I cleaned up his code a little from the submited driver: style(9)
issues, commentary on why something that looks incorrect really is
correct. Also noted that while a checksum field is defined for the
ROMs, enough common hardware neglects it to make it not worthwhile
checking.
Submitted by: Nikolai Saoukh <nms@otdel-1.org>
PR: 22078
gallatin [Fri, 1 Jun 2001 17:39:11 +0000 (17:39 +0000)]
Resurrect platform.pci_intr_map() and essentially undo the effects of
the interface conversion to platform.pci_intr_route(). I've left the
platform.pci_intr_route() function pointer in place, as well as
alpha_pci_route_interrupt(), but no platform currently implements it.
To work around the removal of alpha_platform_assign_pciintr(cfg);
from the pci probe code, I've hooked in calls to platform.pci_intr_map()
in pcib_read_config (similar to the x86 APIC_IO ifdef in pci_cfgregread)
for every chipset that has a platform which needs it.
While here, I've removed the interupt mapping/routing code from the
AS2x00 platform because its not required (it has never been present in
-stable).
Tested on: UP1000, Miata(GL), XP1000, AS2100, AS500
bmah [Fri, 1 Jun 2001 16:29:21 +0000 (16:29 +0000)]
New release notes: lge(4) driver (and update hardware compatability
list from manpage), RANDOM_IP_ID, msdos->msdosfs, chown(8) doesn't
use "." for a delimiter anymore.
brian [Fri, 1 Jun 2001 15:51:10 +0000 (15:51 +0000)]
Support /dev/tun cloning. Ansify if_tun.c while I'm there.
Only tun0 -> tun32767 may now be opened as struct ifnet's if_unit
is a short.
It's now possible to open /dev/tun and get a handle back for an available
tun device (use devname to find out what you got).
The implementation uses rman by popular demand (and against my judgement)
to track opened devices and uses the new dev_depends() to ensure that
all make_dev()d devices go away before the module is unloaded.
iedowse [Fri, 1 Jun 2001 15:20:45 +0000 (15:20 +0000)]
Copy the sockaddr from the netbuf data area, not from the netbuf
data pointer. This bug has been here since the ti-rpc import; it
apparently broke the clnt_control CLGET_SVC_ADDR options.
tmm [Fri, 1 Jun 2001 13:29:19 +0000 (13:29 +0000)]
Replace a use of the hw.nintr sysctl as it has just gone away, cast
size_t variables when passing them to a printf-like function, and some
minor cleanups.
tmm [Fri, 1 Jun 2001 13:23:28 +0000 (13:23 +0000)]
Clean up the code exporting interrupt statistics via sysctl a bit:
- move the sysctl code to kern_intr.c
- do not use INTRCNT_COUNT, but rather eintrcnt - intrcnt to determine
the length of the intrcnt array
- move the declarations of intrnames, eintrnames, intrcnt and eintrcnt
from machine-dependent include files to sys/interrupt.h
- remove the hw.nintr sysctl, it is not needed.
- fix various style bugs
Requested by: bde
Reviewed by: bde (some time ago)
kris [Fri, 1 Jun 2001 10:02:28 +0000 (10:02 +0000)]
Add ``options RANDOM_IP_ID'' which randomizes the ID field of IP packets.
This closes a minor information leak which allows a remote observer to
determine the rate at which the machine is generating packets, since the
default behaviour is to increment a counter for each packet sent.
obrien [Fri, 1 Jun 2001 09:56:15 +0000 (09:56 +0000)]
Both X11 (3.x and 4.x) currently lack a libdata/ subdirectory,
(which is present both in /usr and /usr/local) which is causing a few
ports to erroneously report mtree failures on bento.
gad [Fri, 1 Jun 2001 00:07:09 +0000 (00:07 +0000)]
Fix how /bin/sh handles 'for' and 'case' statements when it is called to do
errexit (-e) processing. This solves a problem where 'make clean' would
fail with an unspecified error in certain automake-generated makefiles.
Reviewed by: no objections from -hackers...
MFC after: 2 weeks
dd [Thu, 31 May 2001 22:30:39 +0000 (22:30 +0000)]
Convert to use the sysctl interface to obtain the data when operating
on a running system. Using kvm is still supported, primarily for
postmortem analysis.
wpaul [Thu, 31 May 2001 22:08:45 +0000 (22:08 +0000)]
Close PR #27742: allow the xl driver to receive VLAN tagged frames by
setting the 'max packet size' register in window 3. This only
works for cards based on the cyclone or newer chipsets (i.e. it
won't work with the original 3c905/boomerang cards).
There is a trick which will work with the boomerang, which is to turn
on the 'large packets ok' bit in the MAC control register, however this
lets the chip accept any frame up to 4K in length, which is larger than
the mbuf cluster buffers we use to receive frames. If somebody sends us
such a frame and the chip DMAs it to us, it could write past the end
of the cluster buffer and clobber something.
jesper [Thu, 31 May 2001 21:57:29 +0000 (21:57 +0000)]
Prevent denial of service using bogus fragmented IPv4 packets.
A attacker sending a lot of bogus fragmented packets to the target
(with different IPv4 identification field - ip_id), may be able
to put the target machine into mbuf starvation state.
By setting a upper limit on the number of reassembly queues we
prevent this situation.
This upper limit is controlled by the new sysctl
net.inet.ip.maxfragpackets which defaults to NMBCLUSTERS/4
If you want old behaviour (no upper limit) set this sysctl
to a negative value.
If you don't want to accept any fragments (not recommended)
set the sysctl to 0 (zero)
jesper [Thu, 31 May 2001 21:56:44 +0000 (21:56 +0000)]
Move the definition of NMBCLUSTERS from src/sys/kern/uipc_mbuf.c
to <sys/param.h>, so it's available to src/sys/netinet/ip_input.c,
and remove the now unneeded includes of "opt_param.h".
wpaul [Thu, 31 May 2001 21:44:26 +0000 (21:44 +0000)]
Add device driver support for the Level 1 LXT1001 NetCellerator
gigabit ethernet controller chip. This device is used on some
fiber optic gigE cards from SMC, D-Link and Addtron. Jumbograms and
TCP/IP checksum offload on receive are supported. Hardware VLAN
filtering is not, because it doesn't play well with our existing
VLAN code. Also add manual page.
There is a 4.x version of this driver available at
http://www.freebsd.org/~wpaul/Level1/4.x if anyone feels adventurous
and wants to test it. I still need to do performance testing and
tuning with this device.
(For my next trick, I will make the 3Com 3cR990 sit up and beg.)
jesper [Thu, 31 May 2001 19:24:49 +0000 (19:24 +0000)]
Disable rfc1323 and rfc1644 TCP extensions if we havn't got
any response to our third SYN to work-around some broken
terminal servers (most of which have hopefully been retired)
that have bad VJ header compression code which trashes TCP
segments containing unknown-to-them TCP options.
imp [Thu, 31 May 2001 19:04:29 +0000 (19:04 +0000)]
Add a simple plx pci9052 based pccard bridges. This doesn't work yet,
but I'll be fleshing this out as I have time. This should mean we no
longer need to have an and wi pci attachments, but that's a ways off.
ume [Thu, 31 May 2001 10:09:36 +0000 (10:09 +0000)]
Recently, other BSDs had faith support in inetd. Though our inetd has
it already, their syntax is not compatible with ours. It will confuse
users. So, we have compatibility with their syntex.
wpaul [Thu, 31 May 2001 00:18:19 +0000 (00:18 +0000)]
Fix date. This man page was not written on July 11, 2001, because that
day hasn't happened yet. It should be May. Ignore failed time-travel
experiment, K PLZ THX.
cg [Wed, 30 May 2001 22:38:31 +0000 (22:38 +0000)]
update this driver to use new firmware and incorporate many fixes.
this works on cs4630 chips, and should implement the clkrun hack for
thinkpads- this will display diagnostic messages when triggered until its
correctness is established.
imp [Wed, 30 May 2001 21:45:50 +0000 (21:45 +0000)]
From the PR:
The PCCard daemon can hang indefinately while reading its
configuration file. If the last line of the file is a comment line
that does not end in a newline, the program goes into an infinite
loop searching for the non-existent newline.
This fix, provided by the PR, will allow files ending without a newline
to be read without hanging.
Submitted by: Crist J. Clark <cjclark@alum.mit.edu>
PR: bin/25791
kris [Wed, 30 May 2001 20:35:44 +0000 (20:35 +0000)]
When doing the chdir("..") in the !FTS_NOCHDIR case, stat() after we get
there and compare the inode and device numbers to the values we remember,
to guard against the directory having been moved around in the meantime.