Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Replace RSA-derived md5 code with code derived from Colin Plumb's PD version. | 2004-05-07 | 1 | -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@ | |||||
* | The tcp specific routing metrics are almost never used so reduce the routing | 2004-05-04 | 1 | -60/+4 | ||
| | | | | | | | table from these metrics. struct rt_msghdr used by the routing socket is not affected and so most userland apps don't need to be changed. some man page polishing by jmc@ OK henning@ markus@ theo@ | |||||
* | - allow the user to force the TCP mss below the fail-safe 216 with a low | 2004-04-26 | 1 | -3/+5 | ||
| | | | | | | | | 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@ | |||||
* | add tcps_rcvacktooold; ok deraadt | 2004-04-20 | 1 | -2/+2 | ||
| | ||||||
* | Unbreak INET6less kernels. | 2004-04-15 | 1 | -2/+3 | ||
| | | | | ok markus | |||||
* | allow TCP packet with IPv4 option (we have been dropping these). | 2004-04-15 | 1 | -45/+15 | ||
| | | | | simplify some of the codepath by using IP6_EXTHDR_GET. markus ok | |||||
* | syn_cache_get: send RST instead of RST+ACK in response to ACK; ok deraadt | 2004-04-14 | 1 | -3/+2 | ||
| | ||||||
* | factor out dropafterack_ratelim code, use ratelimit | 2004-04-12 | 1 | -15/+25 | ||
| | | | | for tcps_rcvacktoomuch, too; drop very old ACKs; ok deraadt@ | |||||
* | on in-window SYN, send back rate-limited ACK; ok dhartmei frantzen markus | 2004-04-04 | 1 | -3/+11 | ||
| | ||||||
* | typo in comment (fragment->segment); ok itojun@ | 2004-03-17 | 1 | -3/+3 | ||
| | ||||||
* | limit total number of queued out-of-order packets to NMBCLUSTERS/2; ok mcbride | 2004-03-02 | 1 | -8/+20 | ||
| | ||||||
* | implement tcp_drain() similar to ip_drain(); ok mcbride@ | 2004-02-27 | 1 | -1/+8 | ||
| | ||||||
* | make mss signed; avoids large mss if ifp==NULL; ok itojun@ | 2004-02-11 | 1 | -2/+2 | ||
| | ||||||
* | check TF_SIGNATURE when calculating the mss; add TCPOLEN_SIGLEN and | 2004-02-10 | 1 | -2/+6 | ||
| | | | | avoid magic constants; ok henning@ | |||||
* | take RFC2460 section 5 last paragraph into consideration when we compute MSS | 2004-02-05 | 1 | -5/+14 | ||
| | | | | | (if path MTU < 1280, use 1280 as packet size and attach fragment header). markus ok | |||||
* | !sack_disable -> sack_enable; ok deraadt@ | 2004-01-31 | 1 | -17/+16 | ||
| | ||||||
* | reset TCPT_KEEP to tcp_keepidle when switching to ESTABLISHED; | 2004-01-29 | 1 | -2/+4 | ||
| | | | | ok henning, deraadt | |||||
* | turn off TF_SIGNATURE on the listen socket if there is no matching SA. | 2004-01-29 | 1 | -10/+23 | ||
| | | | | | allows using a single listen socket for both tcpmd5 and plain tcp. ok aaron, henning. | |||||
* | support for RFC3390 (Increasing TCP's Initial Window); ok deraadt, itojun | 2004-01-29 | 1 | -9/+10 | ||
| | ||||||
* | don't increase the cwnd on syn-ack; ok itojun@, deraadt@ | 2004-01-29 | 1 | -10/+1 | ||
| | ||||||
* | add gettdbbysrcdst(), just like gettdb(), but compares tdb_src as well; ok mcbride@ | 2004-01-22 | 1 | -19/+30 | ||
| | ||||||
* | es tanzt das KNF | 2004-01-15 | 1 | -55/+54 | ||
| | ||||||
* | move call to tcp_mss_update() from syn_cache_add() to syn_cache_get(), | 2004-01-15 | 1 | -12/+4 | ||
| | | | | | when the 3-way handshake completes (and not on the listen pcb). ok itojun, dhartmei | |||||
* | syncache+ipv6 support for TCP_SIGNATURE; with itojun; ok deraadt | 2004-01-14 | 1 | -33/+153 | ||
| | ||||||
* | bring back the old TCP_SIGNATURE code from tcp_input.c rev 1.45 | 2004-01-13 | 1 | -8/+148 | ||
| | | | | and make it compile (does not work yet); ok deraadt@ | |||||
* | pass pcb and not socket to ip_output; #ifdef SACK; ok itojun@ | 2004-01-13 | 1 | -13/+7 | ||
| | ||||||
* | decrease min mss to (256 - 40); ok deraadt | 2004-01-09 | 1 | -3/+3 | ||
| | ||||||
* | crank mss limit from 64 to 256; ok itojun@, dhartmei@ | 2004-01-07 | 1 | -3/+3 | ||
| | ||||||
* | cleanup obsolete comment from NRL code. markus ok | 2004-01-07 | 1 | -50/+32 | ||
| | ||||||
* | import netbsd's version of David Borman's syncache code | 2004-01-06 | 1 | -385/+1289 | ||
| | | | | http://www.kohala.com/start/borman.97jun06.txt; ok deraadt@, henning@ | |||||
* | check for multicast early, remove redundant checks; ok itojun, mcbride | 2003-12-21 | 1 | -34/+20 | ||
| | ||||||
* | switch to CIRCLEQ_FOREACH_REVERSE in tcpdropoldhalfopen() and | 2003-12-08 | 1 | -9/+5 | ||
| | | | | avoid dropping youngest TCB; ok henning deraadt | |||||
* | Mbuf tag tcp and udp packets which are translated to localhost, and | 2003-12-08 | 1 | -3/+5 | ||
| | | | | | | | | | | | | | 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() | 2003-11-04 | 1 | -6/+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 | |||||
* | use random number generator to generate IPv6 fragment ID/flowlabel. | 2003-10-01 | 1 | -5/+3 | ||
| | | | | cleanup IPv6 flowlabel handling. deraadt ok | |||||
* | do not flip ip_len/ip_off in netinet stack. deraadt ok. | 2003-07-09 | 1 | -5/+1 | ||
| | | | | (please test, especially PF portion) | |||||
* | backout following: | 2003-06-09 | 1 | -87/+139 | ||
| | | | | | | >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 Berkeley | 2003-06-02 | 1 | -6/+2 | ||
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | |||||
* | use IN6_LINKMTU for IPv6 link MTU. sync w/kame | 2003-05-29 | 1 | -1/+10 | ||
| | ||||||
* | use m_pulldown not m_pullup2. fix some bugs in IPv6 tcp_trace(). | 2003-05-29 | 1 | -139/+87 | ||
| | ||||||
* | Bad switch condition used for SO_DEBUG, ok itojun@ | 2003-05-19 | 1 | -2/+2 | ||
| | ||||||
* | Fix logic error introduced when importing a Stevens' bug fix in r1.20; | 2003-04-29 | 1 | -2/+2 | ||
| | | | | from provos@, ok dhartmei@ | |||||
* | Fix an mbuf leak, where each incoming IPv6 TCP connection (to a listening | 2003-02-14 | 1 | -2/+2 | ||
| | | | | socket) would leak one MT_SONAME mbuf. ok deraadt@, henning@ | |||||
* | fix pointer signedness mixup. | 2002-09-11 | 1 | -3/+3 | ||
| | ||||||
* | never append data to shutdown(s, SHUT_RD) socket. can lead to unexpected | 2002-09-05 | 1 | -5/+13 | ||
| | | | | kernel resource consumption. NetBSD PR 18185 | |||||
* | be consistent with other KAME source, use "ip6" for ip6_hdr, not "ipv6". | 2002-08-19 | 1 | -22/+22 | ||
| | ||||||
* | merge in IPv6 deprecated address handling from KAME. | 2002-08-19 | 1 | -1/+43 | ||
| | ||||||
* | redo socketbuf speedup. | 2002-08-08 | 1 | -4/+4 | ||
| | ||||||
* | backout the tree break. ok pb@, art@ | 2002-08-08 | 1 | -4/+4 | ||
| | ||||||
* | socket buf speedup from thorpej@netbsd, okay art@ ericj@: | 2002-08-08 | 1 | -4/+4 | ||
| | | | | | | | | | | | | | | | | 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! |