Commit Graph

128155 Commits

Author SHA1 Message Date
itojun
8bc0b4b95d escape from old-ALTQ and new-ALTQ difference 2004-06-23 04:38:43 +00:00
mycroft
ef77780b63 Yes, some devices return incorrect lengths in their string descriptors. Rather
than losing, do what Windows does: just request the maximum size, and allow a
shorter response.  Obsoletes the need for UQ_NO_STRINGS, and therefore these
"quirks" are removed.
2004-06-23 02:30:52 +00:00
itojun
9ec960c351 add ftp-proxy from PF OpenBSD 3.5. adjust setlists 2004-06-22 22:19:36 +00:00
itojun
625efb1994 PF from OpenBSD 3.5 2004-06-22 22:11:14 +00:00
mycroft
a20e630437 Fix an error in a debug printf(). 2004-06-22 22:00:11 +00:00
mycroft
d7027450cd Update copyright. 2004-06-22 19:20:56 +00:00
mycroft
d1a1c698b0 Do not force ATA_SINGLE on devices that don't support READ/WRITE MULTI. We
just have to take an interrupt for each sector.
Tested with one laptop disk (which normally runs in DMA mode and was forced
to single-sector transfers) and 3 CF cards.  Increases the performance of
the CF cards substantially (760KB/s->1240KB/s in one case, 410KB/s->750KB/s
in the other two cases).
2004-06-22 19:20:14 +00:00
jwise
b89fa9ed33 Remove added SUBDIR+= settings from a developer's (hi itojun!) machine which
point to directories which do not exist (and are not wanted) in our source tree.

While we're here, was `libexec/spamd' approved for import?  It conflicts with the
name of a tool in pkgsrc which a _lot_ of developers and users of NetBSD are using...
2004-06-22 19:10:48 +00:00
martin
149fa38cf4 Make it compile on non-IPv6 kernels. 2004-06-22 18:59:14 +00:00
martin
be9dcae132 Fix formatting for 64 bit archs. This fixes PR port-sparc64/26010.
While there, make it compile for non-INET6 aware kernels.
2004-06-22 18:37:49 +00:00
abs
cb52ff7f22 Fix some interesting disklabel lossage:
If the input to 'disklabel' (non -i) referenced a partition two or more
larger than that permitted by npartitions it would error out with 'bad
partition name' (and the option given to re-edit if -e). If a partition one
larger was used it would be dropped from the disklabel with a warning and the
label written anyway! The (off by one) check for a bad partition name was
against npartitions anyway, rather than MAXPARTITIONS. npartitions was just
read from the disklabel and could have been set to an arbitrary value.

Given 'disklabel -i' sets npartitions automatically, make the normal case
check partition names against MAXPARTITIONS, and if necessary increase
npartitions to the size needed to hold the last partition used.

While here remove two 'write only' uses of a 'part' variable.
2004-06-22 18:32:45 +00:00
mycroft
7c3a6504d0 Adjust a couple of comments to make it clear WTF is going on. 2004-06-22 18:27:46 +00:00
itojun
3c9aef7cc5 additional files for pf 2004-06-22 18:24:06 +00:00
itojun
2a49c3efe7 install pf related files to /etc 2004-06-22 18:21:55 +00:00
christos
b7c0da429e Make the previous diff match exactly the following commit from binutils head:
2003-08-23  Alan Modra  <amodra@bigpond.net.au>

        * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.

Thanks Ian for providing the diff!
2004-06-22 18:09:12 +00:00
mycroft
60208395fd Update comment. 2004-06-22 18:05:18 +00:00
christos
6ecf0e2cbe add a pfdetach() method to be used by lkm's 2004-06-22 18:04:32 +00:00
christos
e287801e16 make this compile and fix error handling (does not load yet). 2004-06-22 18:04:05 +00:00
christos
ab5ca5c5d6 Include ioctl's that don't have IO in their names [lkm ones eg.] 2004-06-22 17:30:52 +00:00
christos
d6bf74cb9e Add a check for a non-null owner before dereferencing it. Fixes ld core-dumps
related to lkms.
2004-06-22 16:35:49 +00:00
mrg
b83f6fa528 Add re; Realtek GbE. 2004-06-22 16:28:28 +00:00
itojun
f7c9d7b3eb make spamd compile on netbsd 2004-06-22 16:04:40 +00:00
itojun
c2d7a8642b spamd-setup, comes with PF for openbsd 3.5 2004-06-22 15:53:17 +00:00
itojun
bf0f75e934 PF from openbsd 3.5 2004-06-22 15:46:46 +00:00
itojun
10c71795a1 build and install spamd(8) 2004-06-22 15:41:54 +00:00
itojun
bd5c29bee3 add $NetBSD$ 2004-06-22 15:35:38 +00:00
itojun
779d0ec295 PF from openbsd 3.5 2004-06-22 15:34:26 +00:00
toshii
792bff8d3c Add re; Realtek GbE. 2004-06-22 15:31:38 +00:00
toshii
a9b9fd4313 Add re; Realtek GbE. 2004-06-22 15:18:33 +00:00
itojun
ad399b67b8 PF from openbsd 3.5
massage pfctl to compile/run on netbsd.  put reachover makefile for pfctl
into src/sbin.
reviewed by matt, perry, christos
2004-06-22 15:16:29 +00:00
toshii
ef8af66f53 re(4) appeared in NetBSD 2.0. 2004-06-22 15:10:16 +00:00
itojun
9e6c9caf46 PF from openbsd 3.5 2004-06-22 15:06:49 +00:00
itojun
7ebcee1564 add pf manpage for installation 2004-06-22 14:58:41 +00:00
itojun
4a887d96a0 add $NetBSD$ 2004-06-22 14:34:58 +00:00
itojun
d70f07f00c PF from OpenBSD 3.5 2004-06-22 14:33:10 +00:00
itojun
ffe2ca6827 fix "includes" for pfvar.h 2004-06-22 14:29:45 +00:00
itojun
7ef0131ac7 PF LKM - not working (ld dumps core) because of the lack of my LKM knowledge.
committed to ask help from LKM guru.
reviewed by matt, christos, perry
2004-06-22 14:18:58 +00:00
itojun
bfcdaa5766 PF from openbsd 3.5. missing features:
- pfsync (due to protocol # assignment issues)
- carp (not really a PF portion, but thought important to mention)
- PF and ALTQ are mutually-exclusive.  this will be sorted out when
  kjc@csl.sony.co.jp updates ALTQ and PF (and API inbetween)

reviewed by matt, christos, perry

torture-test is very welcomed.
2004-06-22 14:17:07 +00:00
itojun
596aec9a47 have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
2004-06-22 14:09:49 +00:00
itojun
a225f02f05 foundation for PF 2004-06-22 14:04:04 +00:00
itojun
3696a8d60c use strlcpy 2004-06-22 14:00:54 +00:00
itojun
6adffbf983 PF from OpenBSD 3.5 2004-06-22 13:52:05 +00:00
atatat
eaa9fc4cc3 Reverse arguments to fcntl(2). 2004-06-22 13:49:43 +00:00
itojun
047170b1cc prepare PF-related hooks. reviewed by matt, perry, christos 2004-06-22 12:50:41 +00:00
itojun
afa9c2cdac hide in-kernel structure by _KERNEL 2004-06-22 12:45:57 +00:00
mycroft
a995be9908 Fix a printf() error. 2004-06-22 12:21:04 +00:00
mrg
3c372acd10 if there are zero bytes to output, this isn't an error. it's probably
a zero length file.  don't return an error.  this should fix PR#25994.
2004-06-22 12:01:29 +00:00
bsh
a3f45b38fe Implement software reset by means of watchdog timer. 2004-06-22 11:18:32 +00:00
soren
1e4090e3e1 Make ubt build; bluetooth.c is btbus code, not bthcidrv. 2004-06-22 10:37:00 +00:00
mycroft
a31a65fb9f Remove comment about the data toggle being borked. 2004-06-22 09:46:46 +00:00