Commit Graph

201194 Commits

Author SHA1 Message Date
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
dholland
0c53a1f2e4 Don't print uninitialized values off the stack, even as debug messages. 2011-05-25 04:59:22 +00:00
dholland
ef192e52d5 When checking if /var/yp/binding/foo.ypservers exists, use the domain
name of the domain being checked instead of the default domain name. Duh.
Necessary for PR 43900.
2011-05-25 04:33:52 +00:00
christos
178153b0c2 use _ALIGN consistently. 2011-05-25 02:11:16 +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
christos
bde00486af make this compile with DEBUG (_ALIGN was not defined). 2011-05-24 22:39:47 +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
joerg
4186c35cbd Fix format string 2011-05-24 16:11:08 +00:00
joerg
65b332fa1f Use proper format string 2011-05-24 16:04:14 +00:00
joerg
fe030aa0ad Fix formatting of time_t 2011-05-24 16:03:15 +00:00
joerg
c219644b8d Fix printing of time_t 2011-05-24 15:51:00 +00:00
joerg
89c5df97d0 Fix another format string 2011-05-24 15:44:28 +00:00
joerg
43d31a906a Fix format string 2011-05-24 15:30:31 +00:00
joerg
e04e416493 Use proper format string 2011-05-24 15:24:28 +00:00
joerg
23abb27f60 Fix logic error 2011-05-24 15:23:41 +00:00
joerg
ee3252c44f Use volatile for explicit 0 dereference 2011-05-24 15:20:37 +00:00
joerg
e6f855c3ea Kill redundant unused extern. 2011-05-24 14:27:07 +00:00
joerg
b4141daf2b Use proper format string 2011-05-24 14:26:55 +00:00
rmind
cc2c5ce631 tmpfs_free_node: comment out assert, which can fire e.g. on shutdown. 2011-05-24 14:18:03 +00:00