summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* switch to sysctl_int_arr(); ok itojun, henning, miod, deraadtmarkus2004-02-151-48/+15
|
* rename tcp sockopt TCP_SIGNATURE_ENABLE to TCP_MD5SIGhenning2004-01-311-3/+3
| | | | | requested by theo ok markus@ hshoexer@
* !sack_disable -> sack_enable; ok deraadt@markus2004-01-311-7/+7
|
* add support for getsockopt(..., TCP_SIGNATURE_ENABLEhenning2004-01-301-1/+6
| | | | | | so you can check wether a just accept()ed connection is md5sig'd ok deraadt@ markus@
* support for RFC3390 (Increasing TCP's Initial Window); ok deraadt, itojunmarkus2004-01-291-1/+4
|
* import netbsd's version of David Borman's syncache codemarkus2004-01-061-1/+7
| | | | http://www.kohala.com/start/borman.97jun06.txt; ok deraadt@, henning@
* de-register. deraadt okitojun2003-12-101-9/+9
|
* Mbuf tag tcp and udp packets which are translated to localhost, andmcbride2003-12-081-3/+3
| | | | | | | | | | | | | use the the presence of this tag to reverse the match order in in{6}_pcblookup_listen(). Some daemons (such as portmap) do a double bind, binding to both * and localhost in order to differentiate local from non-local connections, and potentially granting more privilege to local ones. This change ensures that redirected connections to localhost do not appear local to such a daemon. Bulk of changes from dhartmei@, some changes markus@ ok dhartmei@ deraadt@
* add in(6)_pcblookup_listen() and replace all calls to in_pcblookup()markus2003-11-041-7/+5
| | | | | | with either in(6)_pcbhashlookup() or in(6)_pcblookup_listen(); in_pcblookup is now only used by bind(2); speeds up pcb lookup for listening sockets; from Claudio Jeker
* backout following:itojun2003-06-091-2/+2
| | | | | | >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-2/+2
|
* Remove commons; inspired by netbsd.jason2003-02-121-1/+3
|
* KNF - return is not a function. sync w/kameitojun2002-09-111-2/+2
|
* redo socketbuf speedup.provos2002-08-081-3/+3
|
* backout the tree break. ok pb@, art@todd2002-08-081-3/+3
|
* socket buf speedup from thorpej@netbsd, okay art@ ericj@:provos2002-08-081-3/+3
| | | | | | | | | | | | | | | | Make insertion of data into socket buffers O(C): * Keep pointers to the first and last mbufs of the last record in the socket buffer. * Use the sb_lastrecord pointer in the sbappend*() family of functions to avoid traversing the packet chain to find the last record. * Add a new sbappend_stream() function for stream protocols which guarantee that there will never be more than one record in the socket buffer. This function uses the sb_mbtail pointer to perform the data insertion. Make TCP use sbappend_stream(). On a profiling run, this makes sbappend of a TCP transmission using a 1M socket buffer go from 50% of the time to .02% of the time. Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging assistance!
* whitespaceitojun2002-06-091-2/+2
|
* avoid is_ipv6 construct. a step towards IPv4-less kernelitojun2002-06-071-13/+13
|
* remove extra spaces, tabs, and semicolon.fgsch2002-05-261-12/+12
|
* bring in ECN support from KAME.kjc2002-05-161-1/+6
| | | | | | | | | | | | 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@
* First round of __P removal in sysmillert2002-03-141-2/+2
|
* use timeout(9) to schedule TCP timers. this avoid traversing allprovos2002-03-081-10/+2
| | | | tcp connections during tcp_slowtimo. apdapted from thorpej@netbsd.org
* disable immediate ack on TH_PUSH. make behaviour sysctl tuneable.provos2002-03-021-1/+4
| | | | | from netbsd; also fix a bug where setting TF_ACKNOW didn't actually result in an ack.
* Don't cast nonexistent return value from splx to (void). ok art@nordin2002-02-151-2/+2
|
* use macros to manage tcp timers; based on netbsdprovos2002-01-141-3/+3
|
* Restore inclusion of <sys/systm.h>.aaron2001-06-261-1/+2
|
* Cut down on include files.angelos2001-06-081-9/+1
|
* repair copyright notices for NRL & cmetz; cmetzderaadt2001-06-051-14/+38
|
* Remove unnecessary XXX comment.angelos2001-05-271-4/+1
|
* more random tcp sequence numbers. okay deraadt@, angelos@provos2000-12-131-5/+5
|
* nuke #ifdef TCP6 (no longer supported).itojun2000-12-111-2/+3
| | | | | | | validate ICMPv6 too big messages (pmtud) based on pcb. we accept certain amount of non-validated ones, as IPv6 mandates ICMPv6 (so even for traffic from unconnected pcb, we need pmtud). sync with kame
* implement net.inet.tcp.rstppslimit. rate-limits outbound TCP RST trafficitojun2000-10-141-1/+6
| | | | to less than N per 1 second.
* Lots and lots of changes.angelos2000-09-191-8/+2
|
* compute correct window scale when recvpipe option is set in route; basedprovos2000-07-111-4/+3
| | | | on diff from "Pete Kazmier" <pete@kazmier.com>
* completely remove ipv4 mapped cases from tcp_input().itojun2000-07-061-36/+1
| | | | cleanup (indentation, v4-or-v6 conditions)
* more cleanup for IPv4 mapped address support. there seem to be someitojun2000-07-051-4/+13
| | | | | | | | | inconsistency in corner cases (from NRL I believe). todd (fries) and I have seen panic, with the following call chain: ip6_input -> tcp_input -> tcp_respond -> ip_input -> bang! more cleanups should be done, to decrease complexity. for example, INP_IPV6_MAPPED should be nuked.
* permit compilation of non-V6 kernelsderaadt2000-06-181-5/+2
|
* support ipv6 for tcp_identbeck2000-06-181-11/+54
|
* for setsockopt/getsockopt, don't assume non-PF_INET6 address family asitojun2000-06-181-3/+10
| | | | PF_INET. we may see other family in the future... (pedant)
* correctly handle ctlinput messages for IPv6.itojun2000-06-031-2/+10
|
* option TCP_NEWRENO goes away, its the default case for TCP_SACK ifprovos1999-12-211-2/+2
| | | | SACK is disabled for the connection or via sysctl
* decide address family for {set,get}sockopt() by domain table,itojun1999-12-201-8/+2
| | | | | | | not from tcb. it will present more natural behavior. af for socket option obeys address family passed to bind(2).
* bring in KAME IPv6 code, dated 19991208.itojun1999-12-081-18/+66
| | | | | | | | | replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
* increase tcp_iss incrementprovos1999-09-011-2/+2
|
* Added support for TCP MD5 option (RFC 2385).cmetz1999-07-061-2/+28
|
* Significant cleanups in the way TCP is made to handle multiple networkcmetz1999-07-021-5/+23
| | | | | | | | | | | | | | | | | | protocols. "struct tcpiphdr" is now gone from much of the code, as are separate pointers for ti and ti6. The result is fewer variables, which is generally a good thing. Simple if(is_ipv6) ... else ... tests are gone in favor of a switch(protocol family), which allows future new protocols to be added easily. This also makes it possible for someone so inclined to re-implement TUBA (TCP over CLNP?) and do it right instead of the kluged way it was done in 4.4. The TCP header template is now referenced through a mbuf rather than done through a data pointer and dtom()ed as needed. This is partly because dtom() is evil and partly because max_linkhdr + IPv6 + TCP + MSS/TS/SACK opts won't fit inside a packet header mbuf, so we need to grab a cluster for that (which the code now does, if needed).
* Replace 'in6a_words' (old NRL convention) with 's6_addr32' (new BSDI et al.cmetz1999-03-241-3/+3
| | | | convention that is more common and more specific as to the access size)
* netinet merge of NRL stuff. some indent and shrinkage needed; NRL/cmetzderaadt1999-01-111-11/+105
|
* in_pcblookup() now takes ptr to both ip address argumentsderaadt1999-01-071-3/+3
|