When calculating the sequence number to use in an ip6fw reset, remember to

add one if the SYN flag was set in the original packet. This seems to make
ip6fw reset work correctly for new and in-progress connections. Update
the man page to reflect the fact it now seems to work.

Glanced at by:	ume
MFC after:	2 weeks
This commit is contained in:
David Malone 2003-12-25 23:39:44 +00:00
parent dfa244fc22
commit 7028d20d07
2 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,6 @@ TCP packets only.
Discard packets that match this rule,
and try to send a TCP reset (RST) notice.
The search terminates
.Em ( "not working yet" ) .
.It Ar count
Update counters for all packets that match rule.
The search continues with the next rule.

View File

@ -810,6 +810,8 @@ got_match:
*m = 0;
break;
}
if (tcp->th_flags & TH_SYN)
ack++;
seq = 0;
flags = TH_RST|TH_ACK;
}