diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1995-07-31 13:58:35 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1995-07-31 13:58:35 +0000 |
commit | 9b39baf16c840dc5f3fdd08306c956894cdc45e8 (patch) | |
tree | e8b282bce2a83c8e312ab210b26ff19268347b79 /sys | |
parent | b6ccb9009ac731bcfa2691926d47c850c895e0c3 (diff) | |
download | FreeBSD-src-9b39baf16c840dc5f3fdd08306c956894cdc45e8.zip FreeBSD-src-9b39baf16c840dc5f3fdd08306c956894cdc45e8.tar.gz |
Try to make the `syn' blocking code act a bit more sensibly - don't
block `syn' packets that have `ack' set.
Reviewed by:
Submitted by:
Obtained from:
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 51488e6..b15dc97 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -11,7 +11,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id$ + * $Id: ip_fw.c,v 1.21 1995/07/23 05:36:29 davidg Exp $ */ /* @@ -153,7 +153,7 @@ ip_fw_chk(m, ip, rif, chain) dprintf1("TCP "); src_port = ntohs(tcp->th_sport); dst_port = ntohs(tcp->th_dport); - if (tcp->th_flags & TH_SYN) + if ((tcp->th_flags & TH_SYN) && !(tcp->th_flags & TH_ACK)) notcpsyn = 0; /* We *DO* have SYN ,value FALSE */ prt = IP_FW_F_TCP; break; |