History log of /freebsd/sys/netinet/tcp_syncache.c (Results 651 – 670 of 670)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 21c3b2fc 14-Jun-2002 Mike Silbersack <silby@FreeBSD.org>

Ensure that the syn cache's syn-ack packets contain the same
ip_tos, ip_ttl, and DF bits as all other tcp packets.

PR: 39141
MFC after: 2 weeks


# e98d6424 11-Jun-2002 Jeffrey Hsu <hsu@FreeBSD.org>

Every array elt is initialized in the following loop, so remove
unnecessary M_ZERO.


# f76fcf6d 10-Jun-2002 Jeffrey Hsu <hsu@FreeBSD.org>

Lock up inpcb.

Submitted by: Jennifer Yang <yangjihui@yahoo.com>


# f83c7ad7 14-May-2002 Robert Watson <rwatson@FreeBSD.org>

Modify the arguments to syncache_socket() to include the mbuf (m) that
results in the syncache entry being turned into a socket. While it's
not used in the main tree, this is required in the MAC tre

Modify the arguments to syncache_socket() to include the mbuf (m) that
results in the syncache entry being turned into a socket. While it's
not used in the main tree, this is required in the MAC tree so that
labels can be propagated from the mbuf to the socket. This is also
useful if you're doing things like transparent IP connection hijacking
and you want to use the syncache/cookie mechanism, but we won't go
there.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

show more ...


# 69c2d429 20-Mar-2002 Jeff Roberson <jeff@FreeBSD.org>

Switch vm_zone.h with uma.h. Change over to uma interfaces.


# 8355f576 19-Mar-2002 Jeff Roberson <jeff@FreeBSD.org>

This is the first part of the new kernel memory allocator. This replaces
malloc(9) and vm_zone with a slab like allocator.

Reviewed by: arch@


# 16aae019 14-Mar-2002 Robert Watson <rwatson@FreeBSD.org>

NAI DBA update


# b7d6d952 28-Feb-2002 Hajimu UMEMOTO <ume@FreeBSD.org>

- Set inc_isipv6 in tcp6_usr_connect().
- When making a pcb from a sync cache, do not forget to copy inc_isipv6.

Obtained from: KAME
MFC After: 1 week


# 6b33ceb8 20-Feb-2002 Jonathan Lemon <jlemon@FreeBSD.org>

When expanding a syncache entry into a socket, inherit the socket options
from the current listen socket instead of the cached (and possibly stale)
TCB pointer.


# 0cab7c4b 12-Feb-2002 Jonathan Lemon <jlemon@FreeBSD.org>

When a duplicate SYN arrives which matches an entry in the syncache,
update our lazy reference to the inpcb structure, as it may have changed.

Found by: dima


# 079b7bad 07-Feb-2002 Julian Elischer <julian@FreeBSD.org>

Pre-KSE/M3 commit.
this is a low-functionality change that changes the kernel to access the main
thread of a process via the linked list of threads rather than
assuming that it is embedded in the pro

Pre-KSE/M3 commit.
this is a low-functionality change that changes the kernel to access the main
thread of a process via the linked list of threads rather than
assuming that it is embedded in the process. It IS still embeded there
but remove all teh code that assumes that in preparation for the next commit
which will actually move it out.

Reviewed by: peter@freebsd.org, gallatin@cs.duke.edu, benno rice,

show more ...


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# d9b7cc1c 22-Jan-2002 Jonathan Lemon <jlemon@FreeBSD.org>

The ENDPTS_EQ macro was comparing the one of the fports to itself. Fix.

Submitted by: emy@boostworks.com


# 45a03290 21-Dec-2001 Jonathan Lemon <jlemon@FreeBSD.org>

If syncookies are disabled (net.inet.tcp.syncookies) then use the faster
arc4random() routine to generate ISNs instead of creating them with MD5().

Suggested by: silby


# e579ba1a 19-Dec-2001 Jonathan Lemon <jlemon@FreeBSD.org>

When storing an int value in a void *, use intptr_t as the cast type
(instead of int) to keep the 64 bit platforms happy.


# a9c96841 19-Dec-2001 Jonathan Lemon <jlemon@FreeBSD.org>

Extend the SYN DoS defense by adding syncookies to the syncache.
All TCP ISNs that are sent out are valid cookies, which allows entries
in the syncache to be dropped and still have the ACK accepted l

Extend the SYN DoS defense by adding syncookies to the syncache.
All TCP ISNs that are sent out are valid cookies, which allows entries
in the syncache to be dropped and still have the ACK accepted later.
As all entries pass through the syncache, there is no sudden switchover
from cache -> cookies when the cache is full; instead, syncache entries
simply have a reduced lifetime. More details may be found in the
"Resisting DoS attacks with a SYN cache" paper in the Usenix BSDCon 2002
conference proceedings.

Sponsored by: DARPA, NAI Labs

show more ...


# 04cad5ad 13-Dec-2001 Jonathan Lemon <jlemon@FreeBSD.org>

Undo one of my last minute changes; move sc_iss up earlier so it
is initialized in case we take the T/TCP path.


# 262c1c1a 02-Dec-2001 Matthew Dillon <dillon@FreeBSD.org>

Fix a bug with transmitter restart after receiving a 0 window. The
receiver was not sending an immediate ack with delayed acks turned on
when the input buffer is drained, preventing the transmitter

Fix a bug with transmitter restart after receiving a 0 window. The
receiver was not sending an immediate ack with delayed acks turned on
when the input buffer is drained, preventing the transmitter from
restarting immediately.

Propogate the TCP_NODELAY option to accept()ed sockets. (Helps tbench and
is a good idea anyway).

Some cleanup. Identify additonal issues in comments.

MFC after: 1 day

show more ...


# df896268 27-Nov-2001 Seigo Tanimura <tanimura@FreeBSD.org>

Clear a new syncache entry first, followed by filling in values. This
fixes route breakage due to uncleared gabage on my box.


# 419d3454 23-Nov-2001 Bruce Evans <bde@FreeBSD.org>

Fixed a buffer overrun. In my kernel configuration, tcp_syncache happens
to be followed by nfsnodehashtbl, so bzeroing callouts beyond the end of
tcp_syncache soon caused a null pointer panic when n

Fixed a buffer overrun. In my kernel configuration, tcp_syncache happens
to be followed by nfsnodehashtbl, so bzeroing callouts beyond the end of
tcp_syncache soon caused a null pointer panic when nfsnodehashtbl was
accessed.

show more ...


# be2ac88c 22-Nov-2001 Jonathan Lemon <jlemon@FreeBSD.org>

Introduce a syncache, which enables FreeBSD to withstand a SYN flood
DoS in an improved fashion over the existing code.

Reviewed by: silby (in a previous iteration)
Sponsored by: DARPA, NAI Labs


1...<<21222324252627