FreeBSD Bugzilla – Attachment 9796 Details for
Bug 19913
add SYN+FIN counter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 960 bytes, created by
hristo
on 2000-07-14 09:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
hristo
Created:
2000-07-14 09:30:01 UTC
Size:
960 bytes
patch
obsolete
>*** tcp_input.c.old Fri May 12 10:29:45 2000 >--- tcp_input.c Thu Jul 13 10:42:06 2000 >*************** >*** 127,134 **** >--- 127,137 ---- > > #ifdef TCP_DROP_SYNFIN > static int drop_synfin = 0; >+ static int drop_synfin_pkts = 0; > SYSCTL_INT(_net_inet_tcp, OID_AUTO, drop_synfin, CTLFLAG_RW, > &drop_synfin, 0, "Drop TCP packets with SYN+FIN set"); >+ SYSCTL_INT(_net_inet_tcp, OID_AUTO, drop_synfin_pkts, CTLFLAG_RD, >+ &drop_synfin_pkts, 0, "Dropped TCP packets with SYN+FIN set"); > #endif > > #ifdef TCP_RESTRICT_RST >*************** >*** 500,507 **** > * > * This is incompatible with RFC1644 extensions (T/TCP). > */ >! if (drop_synfin && (thflags & (TH_SYN|TH_FIN)) == (TH_SYN|TH_FIN)) > goto drop; > #endif > > /* >--- 503,512 ---- > * > * This is incompatible with RFC1644 extensions (T/TCP). > */ >! if (drop_synfin && (thflags & (TH_SYN|TH_FIN)) == (TH_SYN|TH_FIN)) { >! drop_synfin_pkts++; > goto drop; >+ } > #endif > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19913
: 9796