summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2002-12-27Handle binat-anchor rules in pf_match_translation(), they don't have aDaniel Hartmeier
redirection target address. Reported by Michael Lucas. ok mcbride@
2002-12-27Initialize rt_ifp in newly allocated pf_state objects to NULL.Daniel Hartmeier
Solves the crashes in pf_route() with -current. Reports from Michael Lucas and Bjorn Runaker.
2002-12-26Prettier debug printing in pf_map_addr.Ryan Thomas McBride
2002-12-26Additional sanity checks for pf_route(). Please report when any of theseDaniel Hartmeier
panics should occur. ok mcbride@
2002-12-25No need to define FOO?=foo for AS, CC, CPP and LD, as they are always alreadyMiod Vallat
set from <sys.mk>
2002-12-25Turn xxUNIT, xxPARt, xxLABELDEV macro names into uppercase.Miod Vallat
2002-12-25Get prototypes from *dev_decl() macros rather than running our own.Miod Vallat
2002-12-25Do not force DEBUG to be defined here. hp300 is already slow enough.Miod Vallat
2002-12-25Initialize color palette from rasops settings (from sparc) rather thanMiod Vallat
from incorrect values, and restore it after X11 use (from macppc).
2002-12-24cleanup; ok costa@Alexander Yurchenko
2002-12-24Received a christmas card from Diego and Wim -- thanks!Hugh Graham
It works even, so enable the dhu.
2002-12-23regenMichael Shalayeff
2002-12-23a few more machines and devsMichael Shalayeff
2002-12-23no need to htons the port, it's already in net order, since we swapped it ↵Michael Shalayeff
back in tcpdump, worked fine (; from bdd@ieee.org
2002-12-23Change from array to single pf_pabuf (no longer need multiple buffers asRyan Thomas McBride
we don't need the second list of addresses for DIOCCHANGE* operations) Also get rid of a bug where DIOCBEGINADDRS clears pabuf[1] when pabuf[0] is the one being used. ok henning@ dhartmei@
2002-12-23Repair minor indentation problem.Miod Vallat
2002-12-23dev/ata/ata.c should depends on wdc_base since it uses some callsAlexander Yurchenko
from dev/ic/wdc.c; from NetBSD. ok miod@ deraadt@
2002-12-23Fix complete botch in handling of 'openings'.Kenneth R Westerback
Assign a fixed value (SIOP_NTAGS) to the openings field in the adapter's template sc_link, rather than incrementing the value as cbd's are allocated. The template value is the one copied into each device's sc_link structure as it is created. Incrementing the value meant that each new device got a larger value for openings. The total number of openings claimed by devices on a bus soon exceeded the number of cbd's available. e.g. after 5 devices there would be 132 allocated cbd's, but the total number of openings claimed by devices would be 300. A heavy i/o load on an adapter with multiple devices could have caused the upper scsi layer to try to queue more i/o's than the driver had cbd's to store them in. Such i/o's would fail with EIO if they were started with SCSI_NOSLEEP (e.g. sdstart()) or were not queued within the specified retry limit. I/o's for devices 'later' on the bus would be more likely to trigger this behaviour, due to their inflated openings values. This is good candidate for -stable.
2002-12-22pfioc_changealtq is not needed anymore; queues will eventually beRyan Thomas McBride
referenced by number in DIOCCHANGEALTQ (like rule and pooladdress) "go for it" henning@
2002-12-22Define atagettrace_t type and use it instead of struct atagettrace.Alexander Yurchenko
ok costa@
2002-12-22No more magic wdc events types, give them names.Alexander Yurchenko
ok costa@
2002-12-22better handling of bigendian batteries; problem noticed by blovett@bsdguru.comMichael Shalayeff
2002-12-22Do not attempt to select keyboard layout until it has been determined fromMiod Vallat
the keyboard (oops). This also fixes a bad interaction with wskbd_cnattach that would hose the underlying sabtty device.
2002-12-22Flargs -> Flags.Artur Grabowski
Reported by Dave Steinberg <lists@redterror.net>
2002-12-22Cosmetic changes:Todd C. Miller
o Add a DPRINTF macro instead of using debugging #ifdefs all over the place o KNF says to use "return (foo)" not "return(foo)" o #define EIDRM and ENOMSG at the top instead of using #ifdefs to work around the fact that we don't have them later on.
2002-12-22Clear the high bit of ipc_perm.seq so msgget(3) never returns aTodd C. Miller
negative message queue id; Vladimir B.Grebenschikov
2002-12-22Handle rdr rules with unspecified proxy ports correctly. Also don'tRyan Thomas McBride
print the port number in pf_print_host if it's 0 (like when pf_print_host is called from pf_map_addr) ok dhartmei@
2002-12-22mv PF_RULESET_MAX into the enum, slightly less confusing.Ryan Thomas McBride
ok dhartmei@
2002-12-20replace struct assignment w/ bcopy w/ help and testing of millert@; henning@ ↵Michael Shalayeff
ok; fixes unaligned trap on alpha from pr3037
2002-12-20Clear error before jumping back to the input loop. If error was setTodd C. Miller
to EWOULDBLOCK it would otherwise not get cleared; Jim Geovedi
2002-12-20dino is atakenMichael Shalayeff
2002-12-20 - Clean up the defines in pool.hArtur Grabowski
- Allow a pool to be initialized with PR_DEBUG which will cause it to allocate with malloc_debug. - sprinkle some splassert.
2002-12-20Add a special malloc type M_DEBUG.Artur Grabowski
If the kernel is compiled with MALLOC_DEBUG, M_DEBUG will force the allocation to be done through malloc_debug.
2002-12-20user-defined stacks check is the same for grownups as for growndownsMichael Shalayeff
2002-12-20do not compile what we already get from libkern (size does not matter)Michael Shalayeff
2002-12-20those are gone nowMichael Shalayeff
2002-12-20no need for these to sit in their own dirs, there not gonna be any sources ↵Michael Shalayeff
there anyway, all code is in the particular bus adapter's source
2002-12-19make sure we are hitting user stack and not smth else here, make init show ↵Michael Shalayeff
normal vsz in ps now
2002-12-19regenHenning Brauer
2002-12-19more O2Micro PCI-Cardbus; FreeBSD via pamifer at terra.esHenning Brauer
2002-12-19arc4random seems better nowMichael Shalayeff
2002-12-19Protect WDCDEBUG_PRINT macro with do {} while (0)Alexander Yurchenko
ok costa@
2002-12-19Clear pf_state.nat_rule pointers when non-main nat rules are removed.Daniel Hartmeier
Unlike with filter rules, nat rules inside anchors might be pointed to.
2002-12-19Replace skip step calculation so it scales O(n) instead of O(n*n).Daniel Hartmeier
Loading large rulesets consists of two phases. First, the rules are parsed and added, one by one, to the inactive ruleset. The machine remains responsive during that phase. Then, the new ruleset is activated, and the skip steps are calculated. The machine locks up during that phase. This second phase is greatly reduced with the new algorithm. With the old one, calculation could take 30s for 12k rules, with the new one, 100k rules take less than 1s. For small rulesets (less than 1000 rules), the gain is insignificant. ok mcbride@, henning@
2002-12-19fix 'no nat/rdr/binat' evaluation. from mcbride@, slightly modified :)Daniel Hartmeier
2002-12-19Initialize pf_state.nat_rule to NULL if there's no translation used.Daniel Hartmeier
Found by markus@
2002-12-19fix a debugging printf on cmd wait timeoutMichael Shalayeff
2002-12-19proper barrier call in ie_ackMichael Shalayeff
2002-12-19comparam() does not need an spltty() for it, already called there.Michael Shalayeff
time-bound loops in com_common_cnputc() and lower to spltty(), which i guess is left from times when timeouts were processed at splhigh(). jason@ tested and ok, art@ ok
2002-12-19simplify stack grownups (growndowns are not touched)Michael Shalayeff