summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Ignore ICMP Source Quench messages meant for TCP connections. (Details infgont2005-05-241-2/+6
| | | | | http://www.gont.com.ar/drafts/icmp-attacks-against-tcp.html) ok markus frantzen
* csum -> csum_flagsbrad2005-04-251-2/+2
| | | | ok krw@ canacar@
* add tcp sack stats, similar to freebsd; ok deraadtmarkus2005-04-051-1/+4
|
* 1. tcp_xmit_timer(): remove extra rtt decrement (t_rtttime is 0-basedmarkus2005-02-271-2/+2
| | | | | | | | | | | while t_rtt was 1-based), update callers 2. define and use TCP_RTT_BASE_SHIFT instead of the hardcoded 2. 3. add missing shifts when t_srtt/t_rttvar are used. 4. update the comments: t_srtt uses 5 bits of fraction (not 3) and t_rttvar uses 4 bits 5. remove obsolete/unused macros TCP_RTT_SCALE and TCP_RTTVAR_SCALE 6. make sure rttmin is not > TCPTV_REXMTMAX parts from netbsd, ok mcbride, henning
* Modulate tcp_now by a random amount on a per-connection basis.mcbride2004-10-281-2/+2
| | | | ok markus@ frantzen@
* set the congestion window to two segments (instead of only one), this matchesmarkus2004-10-061-2/+2
| | | | the window size he have when entering the established state. ok deraadt@
* don't send partial segments if SS_ISSENDING is set, remembermarkus2004-09-161-4/+12
| | | | | TF_LASTIDLE across invocations of tcp_output (from freebsd); ok mcbride
* remove #ifdef TUBAitojun2004-06-201-12/+1
|
* factor out md5 code; ok+tests henning@, djm@, hshoexer@markus2004-06-081-68/+7
|
* set m_pkthdr.len early; ok mcbride, deraadtmarkus2004-06-051-3/+2
|
* work around an LP64 problem where we report an excessively large windowbrad2004-05-311-3/+3
| | | | | | | | due to incorrect mixing of types. From NetBSD ok cedric@ markus@
* Replace RSA-derived md5 code with code derived from Colin Plumb's PD version.millert2004-05-071-2/+2
| | | | | | This moves md5.c out of libkern and into sys/crypto where it belongs (as requested by markus@). Note that md5.c is still mandatory (dev/rnd.c uses it). Verified with IPsec + hmac-md5 and tcp md5sig. OK henning@ and hshoexer@
* - allow the user to force the TCP mss below the fail-safe 216 with a lowfrantzen2004-04-261-2/+2
| | | | | | | | interface MTU. - break a tcp_output() -> tcp_mtudisc() -> tcp_output() infinite recursion when the TCP mss ends up larger than the interface MTU (when the if_mtu is smaller than the tcp header). connections will still stall feedback from itojun@, claudio@ and provos and testing from beck@
* don't allocate a cluster if the header fits into a mbuf;markus2004-02-161-4/+4
| | | | ok itojun@, henning@, mcbride@
* check TF_SIGNATURE when calculating the mss; add TCPOLEN_SIGLEN andmarkus2004-02-101-3/+3
| | | | avoid magic constants; ok henning@
* !sack_disable -> sack_enable; ok deraadt@markus2004-01-311-11/+12
|
* add gettdbbysrcdst(), just like gettdb(), but compares tdb_src as well; ok mcbride@markus2004-01-221-11/+18
|
* es tanzt das KNFmarkus2004-01-151-3/+3
|
* syncache+ipv6 support for TCP_SIGNATURE; with itojun; ok deraadtmarkus2004-01-141-12/+28
|
* de-register. deraadt okitojun2003-12-101-6/+6
|
* do not flip ip_len/ip_off in netinet stack. deraadt ok.itojun2003-07-091-2/+2
| | | | (please test, especially PF portion)
* backout following:itojun2003-06-091-15/+4
| | | | | | >use m_pulldown not m_pullup2. fix some bugs in IPv6 tcp_trace(). PR 3283 fixed (confirmed)
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* use m_pulldown not m_pullup2. fix some bugs in IPv6 tcp_trace().itojun2003-05-291-4/+15
|
* don't send more than half of the send buffer space limit inmarkus2003-01-251-5/+14
| | | | | | one tcp segment, improves performance of tcp over interfaces with large mtu (e.g. lo0); based on similar change in netbsd; ok djm, henning, henric, millert, deraadt
* Fix a problem where passing NULL as a pointer with varargs does not promotepefo2002-08-281-2/+2
| | | | | | | | NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
* whitespaceitojun2002-06-091-34/+34
|
* avoid is_ipv6 construct. a step towards IPv4-less kernelitojun2002-06-071-7/+7
|
* bring in ECN support from KAME.kjc2002-05-161-1/+62
| | | | | | | | | | | | it consists of - ECN support in TCP - tunnel-egress and fragment reassembly rules in layer-3 not to lose congestion info at tunnel-egress and fragment reassembly to enable ECN in TCP, build a kernel with TCP_ECN, and then, turn it on by "sysctl -w net.inet.tcp.ecn=1". ok deraadt@
* use timeout(9) to schedule TCP timers. this avoid traversing allprovos2002-03-081-4/+5
| | | | tcp connections during tcp_slowtimo. apdapted from thorpej@netbsd.org
* remove tcp_fasttimo and convert delayed acks to the timeout(9) API instead.provos2002-03-011-2/+10
| | | | adapated from netbsd. okay angelos@
* when retransmitting a segment after FIN has been sent don't set FINprovos2002-02-051-2/+2
| | | | | unless we are transmitting the last of our data. report from jishac@grc.nasa.gov; pr/2368
* knfprovos2002-01-141-13/+13
|
* use macros to manage tcp timers; based on netbsdprovos2002-01-141-25/+25
|
* KNFderaadt2001-11-241-3/+3
|
* Always defer output TCP checksumming until ip_output() (or hardware,angelos2001-06-251-43/+8
| | | | | if it exists). Cuts down on code a bit, and we don't need to look at the routing entry at TCP. Based on NetBSD. UDP case to follow.
* Use in_cksum_phdr() rather than in_cksum() -- from NetBSDangelos2001-06-251-2/+8
|
* Likewise, only use outgoing TCP/UDP hardware checksumming if theangelos2001-06-231-2/+3
| | | | interface is not in bridge mode.
* Keep stats on TCP/UDP hardware checksumming.angelos2001-06-231-1/+2
|
* TCP/UDP hardware checksumming. Untested, since txp dies when it triesangelos2001-06-231-1/+18
| | | | to compute the checksums. Still, it shouldn't affect anything.
* fix up mtu for routes and ongoing tcp connection when if mtu changesprovos2001-06-231-1/+11
| | | | from FreeBSD; fixes pr/1878
* Cut down on include files.angelos2001-06-081-4/+1
|
* repair copyright notices for NRL & cmetz; cmetzderaadt2001-06-051-14/+38
|
* Two fixes from Stevens via davidg@freebsd, bug report byprovos2001-05-311-5/+8
| | | | | | | | | | armin@wolfermann.org - set the persist timer so that connections in CLOSING state timeout - honor keep-alive timer in CLOSING state. Fixes the problem in simulaneous close situation where connections would never leave the CLOSING state and stay arround indefinitly.
* on expiry of pmtu route, retry higher mtu. okay angelos@provos2000-09-251-3/+2
|
* correctly calculate mssprovos2000-09-201-2/+6
|
* Path MTU discovery based on NetBSD but with the decision to use the DFprovos2000-09-181-2/+4
| | | | | flag delayed to ip_output(). That halves the code and reduces most of the route lookups. okay deraadt@
* various fixes to SACK and FACK from adesai@cisco.com, tomh@tomh.org andprovos2000-09-051-2/+22
| | | | osuga@mml.yrp.nttdocomo.co.jp
* TCP SACK fixes via Tom Henderson (tomh@cs.berkeley.edu):provos2000-02-211-21/+32
| | | | | | | | | | | | - tcp_sack_adjust() was completely rewritten, since it was erroneously referencing receiver side sequence numbers and comparing with sender side sequence numbers (thanks to Arun Desai (adesai@cisco.com) who discovered the problem) - in tcp_output(), moved assignment of sendalot=0 to the piece of code immediately following the search for sack-eligible retransmissions (bug identified by Arun Desai). - tcp_input() was not clearing t_dupacks if fewer than three dupacks arrived between acks of new data. (bug identified by Gaurav Banga (gaurav@netapp.com))
* s/memset/bzero/itojun2000-01-071-2/+2
| | | | From: Michael Shalayeff <mickey@lucifier.dial-up.user.akula.net>