summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-05-28 11:03:53 +0000
committerandre <andre@FreeBSD.org>2007-05-28 11:03:53 +0000
commitb4b7eeb094a1d9171e9bc849d768dd1b422dc540 (patch)
tree8e95731f13820079df6dc3b4239da443ec06557b /sys/netinet/sctp.h
parent7d4dfa79424729c190b3b181ff89fc4c50530f22 (diff)
downloadFreeBSD-src-b4b7eeb094a1d9171e9bc849d768dd1b422dc540.zip
FreeBSD-src-b4b7eeb094a1d9171e9bc849d768dd1b422dc540.tar.gz
Refactor and rewrite in parts the SYN handling code on listen sockets
in tcp_input(): o tighten the checks on allowed TCP flags to be RFC793 and tcp-secure conform o log check failures to syslog at LOG_DEBUG level o rearrange the code flow to be easier to follow o add KASSERTs to validate assumptions of the code flow Add sysctl net.inet.tcp.syncache.rst_on_sock_fail defaulting to enable that controls the behavior on socket creation failure for a otherwise successful 3-way handshake. The socket creation can fail due to global memory shortage, listen queue limits and file descriptor limits. The sysctl allows to chose between two options to deal with this. One is to send a reset to the other endpoint to notify it about the failure (default). The other one is to ignore and treat the failure as a transient error and have the other endpoint retransmit for another try. Reviewed by: rwatson (in general)
Diffstat (limited to 'sys/netinet/sctp.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud