Slight change to the previous: just drop the packet in the self-connect
case. Sending an RST to ourselves is a little silly, considering that we'll just attempt to remove a non-existent compressed state entry and then drop the packet anyway.
This commit is contained in:
parent
ebd40d53e1
commit
9f18d18071
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tcp_input.c,v 1.35 1997/11/21 06:18:30 thorpej Exp $ */
|
||||
/* $NetBSD: tcp_input.c,v 1.36 1997/11/21 06:41:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994
|
||||
|
@ -471,9 +471,10 @@ findpcb:
|
|||
/*
|
||||
* LISTEN socket received a SYN
|
||||
* from itself? This can't possibly
|
||||
* be valid; send an RST.
|
||||
* be valid; drop the packet.
|
||||
*/
|
||||
goto badsyn;
|
||||
tcpstat.tcps_badsyn++;
|
||||
goto drop;
|
||||
}
|
||||
/*
|
||||
* SYN looks ok; create compressed TCP
|
||||
|
|
Loading…
Reference in New Issue