aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make the handling of the tcp window explicit for the SYN_SENT caseAndre Oppermann2007-06-091-4/+10
| | | | | | | | | | | | in tcp_outout(). This is currently not strictly necessary but paves the way to simplify the entire SYN options handling quite a bit. Clarify comment. No change in effective behavour with this commit. RFC1323 requires the window field in a SYN (i.e., a <SYN> or <SYN,ACK>) segment itself never be scaled. Notes: svn path=/head/; revision=170470
* Remove some bogosity from the SYN_SENT case in tcp_do_segmentAndre Oppermann2007-06-091-6/+8
| | | | | | | | | | | | | and simplify handling of the send/receive window scaling. No change in effective behavour. RFC1323 requires the window field in a SYN (i.e., a <SYN> or <SYN,ACK>) segment itself never be scaled. Noticed by: yar Notes: svn path=/head/; revision=170469
* Since locking in kern/subr_prof.c is changed a bit, we need nomore ofAttilio Rao2007-06-092-3/+1
| | | | | | | | | time_lock spinlock exported. Approved by: jeff (mentor) Notes: svn path=/head/; revision=170468
* Don't send pure window updates when the peer has closed the connectionAndre Oppermann2007-06-091-1/+4
| | | | | | | and won't ever send more data. Notes: svn path=/head/; revision=170467
* The current rusage code show peculiar problems:Attilio Rao2007-06-096-48/+26
| | | | | | | | | | | | | | | | | - Unsafeness on ruadd() in thread_exit() - Unatomicity of thread_exiit() in the exit1() operations This patch addresses these problems allocating p_fd as part of the process and modifying the way it is accessed. A small chunk of this patch, resolves a race about p_state in kern_wait(), since we have to be sure about the zombif-ing process. Submitted by: jeff Approved by: jeff (mentor) Notes: svn path=/head/; revision=170466
* Propagate volatile qualifier to make gcc4.2 happy.Matt Jacob2007-06-091-1/+1
| | | | Notes: svn path=/head/; revision=170465
* Handle a race condition on >2 core machines in tcp_timer() whenAndre Oppermann2007-06-091-2/+8
| | | | | | | | | | | | a timer issues a shutdown and a simultaneous close on the socket happens. This race condition is inherent in the current socket/ inpcb life cycle system but can be handled well. Reported by: kris Tested by: kris (on 8-core machine) Notes: svn path=/head/; revision=170464
* - Opps.. takes out debug printfs I accidentally left in :-(Randall Stewart2007-06-092-16/+0
| | | | Notes: svn path=/head/; revision=170463
* - fix send_failed notification contentsRandall Stewart2007-06-096-87/+99
| | | | | | | | | | - Reorder send failed to be in correct order. - Fixed calulation of init-ack to be right off mbuf lengths instead of the precalculated value. This will fix one 64 bit platform issue. Notes: svn path=/head/; revision=170462
* Adds support for SCTP.Randall Stewart2007-06-094-1/+719
| | | | Notes: svn path=/head/; revision=170461
* Make this compile.Ruslan Ermilov2007-06-091-1/+1
| | | | Notes: svn path=/head/; revision=170460
* Pointer to an ICMP header was getting left behind after doing a pullup.Darren Reed2007-06-091-0/+1
| | | | Notes: svn path=/head/; revision=170459
* Remove a comment I forgot to removeMatteo Riondato2007-06-091-1/+1
| | | | Notes: svn path=/head/; revision=170457
* Expand USB_ATTACH_SETUP inline.Warner Losh2007-06-092-8/+2
| | | | | | | Kill devinfo stuff. Notes: svn path=/head/; revision=170456
* Expand USB_ATTACH_SETUP inline + devinfo tweaksWarner Losh2007-06-091-2/+3
| | | | | | | | # looks like there's a chance that uaudio might compile on otherBSD, so leave # those #defines alone as well as make this change in a compatible way. Notes: svn path=/head/; revision=170455
* Remove devinfo junk.Warner Losh2007-06-0914-170/+11
| | | | | | | | | Remove bogus bzero/memset Expand USB_ATTACH_SETUP Minor nits Notes: svn path=/head/; revision=170454
* Remove lots of extra junk:Warner Losh2007-06-091-114/+2
| | | | | | | | o other bsd defines, there's no way this would work there o devinfo junk Notes: svn path=/head/; revision=170453
* Kill devinfo stuff. It is no longer needed.Warner Losh2007-06-095-43/+2
| | | | | | | | | Kill bogus bzero as necessary. Minor tidy. Expand USB_ATTACH_SETUP inline where needed. Notes: svn path=/head/; revision=170452
* Kill USB_MATCH_SETUP, since this is the only place it was used in the tree.Warner Losh2007-06-091-8/+2
| | | | | | | While I'm here, kill devinfo junk. Notes: svn path=/head/; revision=170451
* Try to set the data multiplexed feature, but don't care if there's anWarner Losh2007-06-091-46/+28
| | | | | | | | | | | | | | error doing so. It seems an increasing number of phones have this quirk, and we're not keeping up. There appears to be nothing bad that happens for non-quirked phones. Minor cleanups: o prefer device_printf over printf o kill devinfo stuff o minor other preening. Notes: svn path=/head/; revision=170450
* The devinfo stuff has been moved up into the parent bus. There's noWarner Losh2007-06-099-53/+4
| | | | | | | | | | need to do it at all anymore. Remove it from here. Expand USB_ATTACH_SETUP inline now that it is one line and we're moving away from the compat macros. Remove some bzero calls that turn out not be be necessary. Notes: svn path=/head/; revision=170449
* Updated tests for changed features.Greg Lehey2007-06-0924-10/+68
| | | | | | | Submitted by: edwin@ Notes: svn path=/head/; revision=170448
* Sort events by date.Greg Lehey2007-06-093-32/+119
| | | | | | | | | | | | Correct long-standing off-by-one error in -W option. Submitted by: edwin@ Shorten some long lines. These files are still not completely style(9) compliant. Notes: svn path=/head/; revision=170447
* Include calendar.dutch.Greg Lehey2007-06-091-0/+1
| | | | Notes: svn path=/head/; revision=170446
* Dutch calendar.Greg Lehey2007-06-091-0/+58
| | | | | | | Submitteed by: edwin@ Notes: svn path=/head/; revision=170445
* Physical memory regions can be larger than INT_MAX. Change size1Marcel Moolenaar2007-06-091-3/+4
| | | | | | | | from an int to a long to avoid printing negative byte and page counts. Notes: svn path=/head/; revision=170444
* Cleanup messages printed on attach. Since the description gets set toWarner Losh2007-06-081-31/+13
| | | | | | | | | what we print, don't print it anymore. And don't compute it anymore. And don't malloc/free memory for it anymore. While I'm here, prefer device_printf where appropriate. Notes: svn path=/head/; revision=170443
* Don't cast the command argument to ether_ioctl() to an int since its not anDoug White2007-06-081-1/+1
| | | | | | | | int anymore. This was causing all sorts of bad behavior when booting a system with an nve interface present. Notes: svn path=/head/; revision=170442
* Remove the MUTEX_WAKE_ALL option and make it the default behaviour for ourAttilio Rao2007-06-083-43/+0
| | | | | | | | | mutexes. Currently we alredy force MUTEX_WAKE_ALL beacause of some problems with the !MUTEX_WAKE_ALL case (unavioidable priority inversion). Notes: svn path=/head/; revision=170441
* Enable AUDIT by default in the GENERIC kernel, allowing security eventRobert Watson2007-06-087-0/+7
| | | | | | | | | | | auditing to be turned on without a kernel recompile, just an rc.conf option. Approved by: re (kensmith) Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=170440
* Add my copyright.Marcel Moolenaar2007-06-082-0/+56
| | | | | | | Requested by: pjd@ Notes: svn path=/head/; revision=170437
* Replace a constant with an already defined symbolic name for it.Yaroslav Tykhiy2007-06-081-1/+1
| | | | | | | Tested with: md5(1) Notes: svn path=/head/; revision=170435
* Add a sysctl for the purge run interval so that it canYaroslav Tykhiy2007-06-081-3/+8
| | | | | | | | be tuned along with the rest of hostcache parameters. The new sysctl name is `net.inet.tcp.hostcache.prune'. Notes: svn path=/head/; revision=170434
* Reset dc->paddr and dc->reset if we cannot read configuration ROM.Hidetoshi Shimokawa2007-06-081-1/+1
| | | | Notes: svn path=/head/; revision=170433
* Correct the definition of PFIL_HOOKED() so that it comparesAndrew Gallatin2007-06-081-1/+1
| | | | | | | | | | | | the value of ph_nhooks to zero, not the address. This removes extranious calls to pfil_run_hooks (and an rw lock) from the network stack's critical path when no pfil hooks are active. Reviewed by: csjp Sponsored by: Myricom Inc. Notes: svn path=/head/; revision=170432
* - Reduce number of atomic operations needed to be implemented in asm byPawel Jakub Dawidek2007-06-0819-3421/+565
| | | | | | | | | | implementing some of them using existing ones. - Allow to compile ZFS on all archs and use atomic operations surrounded by global mutex on archs we don't have or can't have all atomic operations needed by ZFS. Notes: svn path=/head/; revision=170431
* Missing atomic operations for ZFS/ia64.Pawel Jakub Dawidek2007-06-082-0/+108
| | | | | | | Submitted by: marcel Notes: svn path=/head/; revision=170430
* Double the WITNESS and DIAGNOSTIC benchmark warnings right before wePoul-Henning Kamp2007-06-081-0/+4
| | | | | | | go into userland to improve the chances of people noticing them. Notes: svn path=/head/; revision=170429
* - RTO was not being initialized to 0, thus the rtt calculationRandall Stewart2007-06-085-9/+23
| | | | | | | | | | algoritm would not go through the proper initialization. - The initialization was incorrect as well, causing problems in sat networks with > 1sec RTT - Get rid of magic numbers in RTT calculations. Notes: svn path=/head/; revision=170428
* Timestamp after sent.Hidetoshi Shimokawa2007-06-082-4/+4
| | | | Notes: svn path=/head/; revision=170427
* Don't invalidate dcons buffer on shutdown.Hidetoshi Shimokawa2007-06-081-0/+2
| | | | | | | We would like to keep connection after halt. Notes: svn path=/head/; revision=170426
* Fix a race after a bus reset.Hidetoshi Shimokawa2007-06-082-14/+16
| | | | | | | | - We are in FWBUSINIT state just after SID interrupt. - Do not pass normal xfers before bus probe is done. Notes: svn path=/head/; revision=170425
* In getblk(), before gbincore(), use BO_LOCK directly when lockingXin LI2007-06-081-2/+2
| | | | | | | | the bufobj, rather than using VI_LOCK, like what was done with revision 1.453. Notes: svn path=/head/; revision=170424
* Increase inputFS buffer. awk will not accept some old scriptsXin LI2007-06-081-4/+13
| | | | | | | otherwise. Notes: svn path=/head/; revision=170423
* Clean up escape sequence handling and add support forHidetoshi Shimokawa2007-06-082-24/+103
| | | | | | | resetting target and suspending dconschat. Notes: svn path=/head/; revision=170422
* Sync with other platforms: add kluge to use contigmalloc when theMarcel Moolenaar2007-06-081-6/+18
| | | | | | | | alignment is larger than the size and print a diagnostic when we didn't satisfy the alignment. Notes: svn path=/head/; revision=170421
* Add the address of IDT in the configuration ROM. (i386/amd64 only)Hidetoshi Shimokawa2007-06-082-0/+27
| | | | | | | | | | | | | | | A change to dconschat(8) will follow so that it can bomb this address over FireWire to reset a wedged system. Though this method is just a hack and far from perfection, it should be useful if you don't want to go machine room just to reset or to power-cycle a machine without remote-managed power supply. And much better than doing: # fwcontrol -m target-eui64 # dd if=/dev/zero of=/dev/fwmem0.2 bs=1m Notes: svn path=/head/; revision=170420
* gcc 4.2 thinks that tupleid is uninitialized. Or might be usedWarner Losh2007-06-081-1/+1
| | | | | | | | | | uninitialized. It gets passed into other routines that initialize it... Cope by initializing. Submitted by: mjacob Notes: svn path=/head/; revision=170419
* Replace breakpoint() with kdb_enter().Hidetoshi Shimokawa2007-06-081-2/+2
| | | | Notes: svn path=/head/; revision=170418
* - Fixed a problem that caused autonegotiation failures.David Christensen2007-06-081-1/+5
| | | | | | | | Submitted by: tor.egge@cvsup.no.freebsd.org MFC after: 4 weeks Notes: svn path=/head/; revision=170417