Commit Graph

110033 Commits

Author SHA1 Message Date
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
uebayasi
c6e687b646 Catch up with B_* flag name changes in debug code. 2011-05-26 04:51:57 +00:00
uebayasi
dcf649145a Support userconf(4) command in boot(8)/boot.cfg(5) on i386/amd64.
From jmmv@, no objections seen in the proposed thread:

	http://mail-index.netbsd.org/tech-kern/2009/01/22/msg004081.html
2011-05-26 04:25:26 +00:00
jakllsch
8e78c7985c Convert malloc(9) to kmem(9) in atppc(4).
(Intended to have been part of previous commit.)
2011-05-26 02:37:25 +00:00
jakllsch
c0d7afac87 Convert ltsleep() in atppc(4) to modern interfaces.
Reviewed by rmind@.
2011-05-26 02:29:23 +00:00
gdt
c238210804 Remove erroneous additional tick in RTO estimation. The variable
ts_rtt is 1 plus the RTT, so that 0 can mean invalid measurement.
However, the code failed to subtract the 1 back out before use.  With
this change, TCP from Massachusetts to France now typically has 1s RTO
values, rather than 1.5s.

This bug was found and fixed by Bev Schwartz of BBN.  This material is
based upon work supported by the Defense Advanced Research Projects
Agency and Space and Naval Warfare Systems Center, Pacific, under
Contract No. N66001-09-C-2073.  Approved for Public Release,
Distribution Unlimited
2011-05-25 23:20:57 +00:00
gdt
2377e629f8 Add comment urging a separation of TCP_RTT_SHIFT into separate defines
describing the EWMA calculation and the storage representation.
(No code change.)
2011-05-25 23:17:44 +00:00
dyoung
709b8c23f7 Add some missing prototypes for streaming routines.
Correct some bus_space_*_8 prototypes that used uint32_t instead of
uint64_t.

Replace size_t with bus_size_t where that's what bus_space(9) calls for.
2011-05-25 22:58:29 +00:00
dyoung
52abc93d99 Increase SYMTAB_SPACE. 2011-05-25 22:43:20 +00:00
dyoung
1c48d04579 Increase SYMTAB_SPACE. 2011-05-25 22:32:18 +00:00
phx
c91ba1563d Use printf() from libsa.
Ok by nisimura@.
2011-05-25 19:26:21 +00:00
uebayasi
3f383b9dd4 Declare cfdrivers using extern rather than including ioconf.h. 2011-05-25 16:33:37 +00:00
tsutsui
1831386b4e - consistently use #ifdef DEBUG_FPE and #ifdef DIAGNOSTIC
- use DPRINTF() style debug printfs
- use __func__ to print function names
2011-05-25 15:47:19 +00:00
tsutsui
248f85bd79 KNF. No binary change. 2011-05-25 15:17:21 +00:00
christos
409ea14c30 more wrong formats. 2011-05-25 15:15:55 +00:00
christos
44751c73dc fix printf formats. 2011-05-25 14:11:36 +00:00
mrg
b6a024784e define MANUF_FUJITSU (and fix CPU_IS_SPARC64_V_UP()) and MANUF_SUN.
use CPU_IS_SPARC64_V_UP() to choose some US-III versions of some
cache functions.
2011-05-25 12:01:30 +00:00
macallan
26ec9200cf remove VCONS_DRAW_ASYNC
it was always experimental, VCONS_DRAW_INTR is much simpler and Just Works.
2011-05-25 06:13:29 +00:00
macallan
6eb32961ce add a cache so when we update the screen we only redraw the character cells
that actually changed since last time. This gives a noticeable speedup on
slower hardware with dumb framebuffers.
For now this works with VCONS_DRAW_INTR and VCONS_DONT_READ only.
2011-05-25 06:01:38 +00:00
matt
f2fc00201c Set PSL_VEC in the right place. 2011-05-25 05:42:37 +00:00
rmind
78c419363e tmpfs_update: comment out assert for now. 2011-05-25 02:03:22 +00:00
rmind
8d8c6221a2 tmpfs_dir_lookup: use 'name' variable in memcmp() as intended; fix warning. 2011-05-25 00:06:45 +00:00
matt
3ff0e09ec6 Remove pmap's simple_lock; switch to atomic ops
Change pvtable simple_lock to mutex
Switch to kmem (goodbye malloc).
2011-05-24 23:30:30 +00:00
rmind
e9d92e9ce9 - tmpfs_lookup: cache (cnp->cn_flags & ISLASTCN) in const bool; de-indent.
- Group tmpfs_{alloc,free}_dirent() with other dirent routines.

No functional changes.
2011-05-24 23:16:16 +00:00
msaitoh
41e7900055 Fix invalid PBA setting on ICH{9,10}. This bug was introduced in the last
commit. I noticed this problem via mail from spz.
2011-05-24 22:46:42 +00:00
rmind
5b0095de8b Convert some simple_lock uses to mutex(9).
Tested by: jak@, mhitch@
2011-05-24 20:26:34 +00:00
rmind
9d8a062828 - Describe some locking.
- Add VOP argument comments, add some asserts.
- Update/fix/remove outdated/missleading comments.
- Clean up, de-indent, KNF, misc.

No functional changes intended.
2011-05-24 20:17:49 +00:00
drochner
a99f8b0b24 catch some corner cases of user input 2011-05-24 19:12:53 +00:00
drochner
ebc232a582 copy AES-XCBC-MAC support from KAME IPSEC to FAST_IPSEC
For this to fit, an API change in cryptosoft was adopted from OpenBSD
(addition of a "Setkey" method to hashes) which was done for GCM/GMAC
support there, so it might be useful in the future anyway.
tested against KAME IPSEC
AFAICT, FAST_IPSEC now supports as much as KAME.
2011-05-24 19:10:08 +00:00
drochner
9f36e7657e move the "context size" struct member (which is a pure software
implementation thing) from the abstract xform descriptor to
the cryptosoft implementation part -- for sanity, and now clients
of opencrypto don't depend on headers of cipher implementations anymore
2011-05-24 18:59:21 +00:00
drochner
a82503509c Change the way the IV is generated for AES-CTR: use a simple counter
instead of arc4random(). AES-CTR is sensitive against IV recurrence
(with the same key / nonce), and a random number doesn't give that
guarantee.
This needs a little API change in cryptosoft -- I've suggested it to
Open/FreeBSD, might change it depending on feedback.
Thanks to Steven Bellovin for hints.
2011-05-24 18:52:51 +00:00
gdt
0ca69791cc Note units and current value for TCP_DELACK_TICKS. 2011-05-24 18:37:52 +00:00
joerg
165a8de9ef Give the body the same static inline treatment as the definition 2011-05-24 18:29:23 +00:00
joerg
dd579972c6 Explicitly get rid of constness. 2011-05-24 18:28:01 +00:00
joerg
04061efbeb Use some format specifiers that actually exist 2011-05-24 18:22:02 +00:00
joerg
415e4a8a32 Use a real panic as safe guard 2011-05-24 18:18:22 +00:00
joerg
b345e8d051 Use proper format string 2011-05-24 18:17:24 +00:00
joerg
d5634f35e3 Kill self-assignment 2011-05-24 18:11:34 +00:00
spz
5f1fd2312c RA flood mitigation via a limit on accepted routes:
- introduce a limit for the routes accepted via IPv6 Router Advertisement:
  a common 2 interface client will have 6, the default limit is 100 and
  can be adjusted via sysctl
- report the current number of routes installed via RA via sysctl
- count discarded route additions. Note that one RA message is two routes.
  This is at present only across all interfaces even though per-interface
  would be more useful, since the per-interface structure complies to RFC2466
- bump kernel version due to the previous change
- adjust netstat to use the new value (with netstat -p icmp6)
2011-05-24 18:07:11 +00:00
matt
a0d7ecb547 Merge in the patch in PR/44965 with some improvements (removing ifs when
possible).
2011-05-24 17:45:49 +00:00
matt
1cce8ae3bd Add code to auto-deencapsulate 0 tagged VLANs. 2011-05-24 17:16:43 +00:00
joerg
c22277f893 Use proper format string 2011-05-24 16:42:53 +00:00
joerg
c79f3b8ab9 Use proper format string. 2011-05-24 16:42:31 +00:00
joerg
ee2f528836 Properly use format string 2011-05-24 16:42:10 +00:00
joerg
0f07b5f4ad Use proper format string 2011-05-24 16:40:21 +00:00
joerg
cbd926d403 Add some needed __UNCONST 2011-05-24 16:39:56 +00:00
joerg
093247893c Kill redundant () 2011-05-24 16:38:25 +00:00
joerg
7800ff71d5 Use proper format string 2011-05-24 16:37:49 +00:00
joerg
5345cc0b23 Kill redundant () 2011-05-24 16:37:04 +00:00
joerg
0ce8eb378b Fix obvious condition snafu 2011-05-24 16:35:26 +00:00